Cannot get Pyright nor Pyrefly working with code-server. #7641
Replies: 2 comments
-
|
I would try https://github.com/detachhead/basedpyright instead. From what I understand, Pyright is proprietary and only works on proprietary VS Code (not open source VS Code which code-server is based on). |
Beta Was this translation helpful? Give feedback.
-
|
In a (standalone) " In a " |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to play with the
code-serveron a Ubuntu 22.04 / x86_64 machine (Python 3.10.12).I tried three recent versions: "
v4.108.2", "v4.107.1", and "v4.106.3".I manually install/unpack the
code-server-*-linux-amd64.tar.gzfile and run it using the~/.../code-server-*-linux-amd64/bin/code-servercommand.For each version, I always start with a "clean" environment:
rm -rf ~/.local/share/code-server/ ~/.config/code-server/ ~/.cache/Microsoft/ ~/.cache/pip/ ~/.ipython/ ~/.jupyter/ ~/.local/share/jupyter/ ~/.cache/jedi/I connect to the server using
Firefox(a "new private window").I install the "
Python (ms-python)", "Jupyter (ms-toolsai)", "Pyright (ms-pyright)", and "Pyrefly - Python Language Tooling (meta)" extensions.I can then selectively "Disable" and "Enable" the "
Pyright" and "Pyrefly".When I open a "
.ipynb" file ...... "
Pyright" never works ...... "
Pyrefly" works only with "v4.106.3".No warnings or errors are reported in the
code-server's console.The command "Python: Restart Language Server" results in an error "command 'python.analysis.restartLanguageServer' not found".
This is a problem when I need to change the kernel to another "Python Environment" (the LSP server should "switch" to a different set of Python packages available in the new "virtual environment").
What am I possibly missing?
Beta Was this translation helpful? Give feedback.
All reactions