Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

VS Intellicode support fails to load for Python #7472

Answered by code-asher
aalok-sathe asked this question in Q&A
Discussion options

This isn't a bug per se, so asking a Q here rather than as an issue, but this is something I don't really know how to go about solving:
My code-server has no intellicode support, i.e., I cannot select symbols, load their docstrings, find original implementations of symbols whether they're from other local files within the current project or from installed packages and so on---the usual stuff that's been around for decades now.

I took a peek at the debug log and it appears there's issues:

Acquiring model
Acquiring model 'intellisense-members-lstm-pylance' for python
Acquiring model 'intellisense-members-lstm-pylance' for python
vs-intellicode-python was passed a model: {}.
Found bundled model for python
Activating Python extension
Language server extension command failed. Exception: Error: command 'python.intellicode.loadLanguageServerExtension' not found
 at N7e.n ([server-url]/44621/stable-34b8d2ed69811c3315a465f01492e9448c9254aa/static/out/vs/code/browser/workbench/workbench.js:1288:1341)
 at N7e.executeCommand ([server-url]/44621/stable-34b8d2ed69811c3315a465f01492e9448c9254aa/static/out/vs/code/browser/workbench/workbench.js:1288:1273)
Error while activating Python: {}
You must be logged in to vote

This is one of Microsoft's closed sourced plugins right? These typically have a hard time activating on open source builds of VS Code like code-server (and sometimes the license prohibits it).

I imagine you installed it manually? It looks like it might be depending on an extension that is not installed or activated. Did you add all the extension's dependencies? If it depends on the Pylance extension it may not be possible to get it working on code-server.

This one might work better with code-server, although I have not tried it: https://github.com/DetachHead/basedpyright

Replies: 1 comment 1 reply

Comment options

This is one of Microsoft's closed sourced plugins right? These typically have a hard time activating on open source builds of VS Code like code-server (and sometimes the license prohibits it).

I imagine you installed it manually? It looks like it might be depending on an extension that is not installed or activated. Did you add all the extension's dependencies? If it depends on the Pylance extension it may not be possible to get it working on code-server.

This one might work better with code-server, although I have not tried it: https://github.com/DetachHead/basedpyright

You must be logged in to vote
1 reply
Comment options

Yes, I do believe it's MS's proprietary extension. basedpyright is an excellent suggestion, thank you---it works.

Answer selected by aalok-sathe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /