Skip to content

Commit ed4884c

Browse files
ndmitchellfacebook-github-bot
authored andcommitted
Change documentation and logging strings
Summary: Less Pyre2. Reviewed By: kinto0 Differential Revision: D72446798 fbshipit-source-id: 6e490f197460a2c0b3c78be8b1f9cc0f90a83887
1 parent cf1316d commit ed4884c

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

conformance/conformance_output.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def get_conformance_output(directory: str) -> Dict[str, List[Dict[str, Any]]]:
244244
def get_conformance_output_separate(directory: str) -> Dict[str, List[Dict[str, Any]]]:
245245
"""
246246
Run minpyre on conformance test suite, parse and group the output by file
247-
This function runs Pyre2 separately for each file, which is slower but more robust to failures
247+
This function runs Pyrefly separately for each file, which is slower but more robust to failures
248248
"""
249249
files_to_check = []
250250
for root, _, files in os.walk(directory):
@@ -303,7 +303,7 @@ def main() -> None:
303303
"--mode", "-m", choices=["update", "check", "compare"], default="update"
304304
)
305305
parser.add_argument(
306-
"--separate", action="store_true", help="run Pyre2 separately for each case"
306+
"--separate", action="store_true", help="run Pyrefly separately for each case"
307307
)
308308
args = parser.parse_args()
309309
if args.separate:

debug.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Pyre2 debugger</title>
4+
<title>Pyrefly debugger</title>
55
<style type="text/css">
66
body {
77
font-family: sans-serif;
@@ -150,7 +150,7 @@
150150
</head>
151151
<body onload="load()">
152152
<input id="search" placeholder="Search: e.g. '3-5' or 'foo'" />
153-
<h1>Pyre2 debugger</h1>
153+
<h1>Pyrefly debugger</h1>
154154
<h2>Errors</h2>
155155
<ul id="errors"></ul>
156156
<h2>Keys</h2>

lsp/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Pyre2 VS Code LSP extension
1+
# Pyrefly VS Code LSP extension
22

33
:warning: **Extension is very work in progress**, please use at your own risk!
44

@@ -29,15 +29,15 @@ Based on a combination of:
2929
- Select `Run Installed Extension (pyre2)` from the drop down.
3030
- Run the launch config.
3131
- By default, stderr of the language server will appear in the output pane of
32-
VSCode under "Pyre2 language server".
32+
VSCode under "Pyrefly language server".
3333
- Add `"pyre2.trace.server": "verbose"` to the VSCode config. Then all the LSP
3434
JSON requests and responses will be logged together with stderr of language
3535
server in the output pane.
3636

3737
## Installing
3838

3939
- Follow steps in Pre-requisites section.
40-
- Build the Pyre2 binary with
40+
- Build the Pyrefly binary with
4141
`buck2 build pyre2 @fbcode//mode/opt --show-output` or `cargo build` and
4242
either:
4343

lsp/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
],
3939
"commands": [
4040
{
41-
"title": "Restart Pyre2 Client",
41+
"title": "Restart Pyrefly Client",
4242
"category": "pyre2",
4343
"command": "pyre2.restartClient"
4444
}

lsp/src/extension.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function activate(context: ExtensionContext) {
5050
// Create the language client and start the client.
5151
client = new LanguageClient(
5252
'pyre2',
53-
'Pyre2 language server',
53+
'Pyrefly language server',
5454
serverOptions,
5555
clientOptions
5656
);
@@ -63,7 +63,7 @@ export function activate(context: ExtensionContext) {
6363
await client.stop();
6464
client = new LanguageClient(
6565
'pyre2',
66-
'Pyre2 language server',
66+
'Pyrefly language server',
6767
serverOptions,
6868
clientOptions
6969
);

pyre2/lib/commands/lsp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ impl<'a> Server<'a> {
358358
diags.entry(path.to_owned()).or_default().push(Diagnostic {
359359
range: source_range_to_range(e.source_range()),
360360
severity: Some(lsp_types::DiagnosticSeverity::ERROR),
361-
source: Some("Pyre2".to_owned()),
361+
source: Some("Pyrefly".to_owned()),
362362
message: e.msg().to_owned(),
363363
code: Some(lsp_types::NumberOrString::String(
364364
e.error_kind().to_name().to_owned(),

scripts/fetch_typeshed.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
"""
1010
Tools for pulling an upstream typeshed archive from github, cleaning out
11-
irrelevant data, and producing artifacts that can be bundled into Pyre2 executable.
11+
irrelevant data, and producing artifacts that can be bundled into Pyrefly executable.
1212
"""
1313

1414
import argparse
@@ -186,7 +186,7 @@ def run(specified_url: str | None, output_dir: pathlib.Path) -> None:
186186

187187
def main() -> None:
188188
parser = argparse.ArgumentParser(
189-
description="Fetch typeshed from a given URL and trim out files that are not needed for Pyre2 bundling."
189+
description="Fetch typeshed from a given URL and trim out files that are not needed for Pyrefly bundling."
190190
)
191191
parser.add_argument(
192192
"-u",

website/scripts/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# This source code is licensed under the MIT license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
# This should be a singular script which does everything needed to start the pyre2 website locally. By Default
7+
# This should be a singular script which does everything needed to start the Pyrefly website locally. By Default
88
# The website will be accessible on localhost:3000.
99
# This script currently:
1010
# 1) runs the wasm build script in the pyrefly_wasm folder, we expect the wasm file to get copied over to the website folder
1111
# 2) build and serve the website locally (done through yarn start)
1212
#
13-
# If there are more steps needed to building the Pyre2 website, they should be included here.
13+
# If there are more steps needed to building the Pyrefly website, they should be included here.
1414
#
1515
../pyrefly_wasm/build.sh
1616
echo "copying wasm files from pyrefly_wasm/ to website/"

website/scripts/start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# This source code is licensed under the MIT license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
# This should be a singular script which does everything needed to start the pyre2 website locally. By Default
7+
# This should be a singular script which does everything needed to start the Pyrefly website locally. By Default
88
# The website will be accessible on localhost:3000.
99
# This script currently:
1010
# 1) runs the wasm build script in the pyrefly_wasm folder, we expect the wasm file to get copied over to the website folder
1111
# 2) build and serve the website locally (done through yarn start)
1212
#
13-
# If there are more steps needed to building the Pyre2 website, they should be included here.
13+
# If there are more steps needed to building the Pyrefly website, they should be included here.
1414
#
1515
../pyrefly_wasm/build.sh
1616
echo "copying wasm files from pyrefly_wasm/ to website/"

0 commit comments

Comments
 (0)