Command 'python.analysis.restartLanguageServer' already exists
See original GitHub issue- Issue Type:
Bug
- Extension Name:
python
- Extension Version:
2020.8.101144
- OS Version:
Darwin x64 19.6.0
- VSCode version:
1.48.0
{
"messages": [],
"activationTimes": {
"codeLoadingTime": 966,
"activateCallTime": 367,
"activateResolvedTime": 2853,
"activationReason": {
"startup": false,
"extensionId": {
"value": "ms-python.python",
"_lower": "ms-python.python"
},
"activationEvent": "onLanguage:python"
}
},
"runtimeErrors": [
{
"name": "Error",
"message": "command 'python.analysis.restartLanguageServer' already exists"
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
eclipse/openvsx - Gitter
Hi there! I currently work at Coder and we maintain code-server, which is an open-source fork of Code built for use in the...
Read more >Language Server Extension Guide - Visual Studio Code
The analysis tool can be implemented in any languages, as long as it can communicate with the Language Client following the Language Server...
Read more >Autocomplete and Syntax Highlighting do not work for matplotlib
I am using VS Code for coding python and I am having an issue regarding Matplotlib: Usually Autocomplete and Syntax Highlighting work fine ......
Read more >3. The Menu Bar — GNAT Studio 24.0w documentation
Export all messages listed in the Locations view to an editor. ... Open (or reuse if it already exists) the 'Preferences' view ......
Read more >GoLang and VSCode errors are driving me mad - Reddit
Now imagine there are a lot of constant definitions, ... ctrl+shift+p to open VSCode's command bar and run the Go: Restart Language Server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, I don’t know how that happens either. Maybe something to do with multi-root workspaces and being called for each workspace?
In any case, it doesn’t happen when using Pylance.
Thank you for the clarification and the repro steps @leonhx!
"python.languageServer": "Microsoft"
was the missing piece, I could repro the issue with this setting, but not when using Pylance, which is a new and more performant language server we recently introduced (blog post).You can download it from the marketplace and install it alongside the core Python extension. Because our team’s development efforts have shifted to support the new language server, we’d encourage you to try it out.
@jakebailey In which repo do you want this issue to live? This is an MPLS-related bug, but the issue is with command registration, which happens in the extension.