Cannot get Pyright nor Pyrefly working with code-server. #7641
Unanswered
JacekHoleczek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.1", "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