question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kimadelinecommented, Sep 28, 2020

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.

1reaction
kimadelinecommented, Sep 28, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found