-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyls does not work on Python 3.11 #1300
Comments
Yup, besides |
Do we know which tests are expected to fail as a result of this? Can we conditionally xfail and/or skip them for now? |
These tests fail for me with python 3.11, but it's possible there are other factors at play:
|
I think only the |
Upstream issue: palantir/python-language-server#959 |
I think we should consider switching to https://github.com/python-lsp/python-lsp-server Pyright is not really a replacement for pyls; it is just a static type checker (Mypy replacement). The VSCode/Microsoft LSP that does auto-completion, refactoring, etc is |
I am aware that pyright and pylance are not the same, but pyright also has a langserver that gives autocompletions and such. It is usable without pylance, and probably enough for Porcupine without pylance. At least this is my understanding of pyright's langserver. Feel free to prove me wrong :) |
Huh, you appear to be correct: https://microsoft.github.io/pyright/#/features?id=language-server-support I do wonder then what Pylance does that Pyright doesn't. |
That said, I prefer Mypy to Pylance pretty strongly for type checking specifically, so if possible I would vote that we retain Mypy support regardless of what language server we go with :) |
Mypy support would be retained of course, the same way as you can use it now: open the run dialog and run Mypy from there. |
Porcupine uses pyls as the default langserver for Python. It does not work at all on Python 3.11. This means that you don't get jump-to-definition or reasonable autocompletions, unless you run Porcupine on an older python version.
I really should consider switching to pyright (#560)
The text was updated successfully, but these errors were encountered: