- 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"
}
]
}
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.