-
Notifications
You must be signed in to change notification settings - Fork 6.2k
VS Intellicode support fails to load for Python #7472
-
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: {}
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, I do believe it's MS's proprietary extension. basedpyright
is an excellent suggestion, thank you---it works.
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1