Skip to content

Commit 1fd90fe

Browse files
authored
Link to correct pyright binary (#2)
It won't work calling the main pyright binary, as the language server is implemented in a separate one.
1 parent 4945a43 commit 1fd90fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Add something like the following configuration to your Claude Desktop settings (
6666
"--workspace",
6767
"/Users/you/dev/yourpythoncodebase",
6868
"--lsp",
69-
"/opt/homebrew/bin/pyright",
69+
"/opt/homebrew/bin/pyright-langserver",
7070
"--",
7171
"--stdio"
7272
],
@@ -81,7 +81,7 @@ Add something like the following configuration to your Claude Desktop settings (
8181
Replace:
8282

8383
- `/Users/you/dev/yourpythoncodebase` with the absolute path to your project
84-
- `/opt/homebrew/bin/pyright` with the path to your language server (found using `which` command e.g. `which pyright`)
84+
- `/opt/homebrew/bin/pyright-langserver` with the path to your language server (found using `which` command e.g. `which pyright-langserver`)
8585
- Any aruments after `--` are sent as arguments to your language server.
8686
- Any env variables are passed on to the language server. Some may be necessary for you language server. For example, `gopls` required `GOPATH` and `GOCACHE` in order for me to get it working properly.
8787
- `DEBUG=1` is optional. See below.

0 commit comments

Comments
 (0)