-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Command 'Python: Restart Language Server' resulted in an error (command 'python.analysis.restartLanguageServer' not found) #13474
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
Comments
Looks like we have some issue with command registration. See related (but reverse issue) #13441 |
I'm getting this even with language server = pylance |
@JP01 Try this and see if it helps. Some times it is just a bad install.
|
Thanks @karthiknadig, that seemed to work but, honestly, I tried VS a couple of years ago and because of issues like that I gave up and went back to Eclipse, yep. Now I'm trying again, I was quite happy until now... Is there any method to keep the latest working |
This issue seems to happen to me every time I try to use |
@alanwilter There is a option to sync your settings. This is a good question to ask on the VS Code repository.
|
Thanks @karthiknadig, not my intention to hijack this issue. Stackoverflow, e.g., does not know yet about |
I am also seeing that the Python language server is failing to start (even with Pylance installed and enabled). I've tried the following:
If I try to run Please let me know if I can provide any more useful information for diagnosing this. |
Ah, after I re-created my virtualenv (I'm using pyenv+pyenv-virtualenv), restarted VS Code, then re-selected the interpreter using |
Solved my problem. |
Hello, there!
I just saw the news in the release notes of 2020.8.101144: 'Add "Restart Language Server" command.' and was excited!
This way I just got the notion about a completely new background Language Server, as a dedicated replacement for Jedi? 👍
I see that note about the new language server and the possible relation but this seems like a feature above the language server itself! So yes: If I set
python.languageServer
to Pylance there are other issues but I can restart with this command 👍Now if it's
vscode-python
that starts Jedi as a language server. That command should be able to restart it?Environment data
python.languageServer
setting: Jedi[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
Language Server restarts
Actual behaviour
Error message:
Steps to reproduce:
Python: Restart Language Server
The text was updated successfully, but these errors were encountered: