-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorry, something went wrong activating IntelliCode support for Python #50
Comments
This may happen when IntelliCode (1.2.9+) sends command to Pylance while Pylance is not loaded. IntelliCode checks for "python.languageServer": "Pylance" Have you seen it once, such as right after install of Pylance (and reload window perhaps helped) or is it consistent? |
No, I see this constantly. |
I'm also constantly getting the same message, with the following output from VS Intellicode:
on Arch Linux with Python 3.8.3 and code 1.47.0. |
Same problem here, and the settings editor is not accepting "Pylance" as a valid value for "python.languageServer":
This is with the Pylance extension installed and enabled. i tried uninstalling and reinstalling Pylance but it's the same situation. Ubuntu 20.04, code 1.47.1 |
I also get the same error in the settings. However, in another issue I found a mention that this is expected and does not affect the functioning of Pylance, and I can confirm Pyright type checking still works despite this error. I belive this error is not related to the issues with IntelliCode support. |
I can report the same issue here: IntelliCode Output
Python output
My setup:
|
@crisbal Your issue is different; as the python output is stating, Pylance is only available in the official VS Code builds. #135 (comment) (On Arch, you can build a package with |
@vvvlad and @mvaaltola - are you still seeing the issue? We've made some improvements so I am wondering if they worked for you. They should be at least in insiders channel. |
@mvaaltola thank you - i see issue #16 now |
@MikhailArkhipov still having this issue after updating to Code 1.47.3. |
Just to be clear @mvaaltola, you are using an official build of VS Code, correct? And not one built from scratch? "Code" sounds like an unofficial build, and Pylance doesn't work on those. |
@mvaaltola - the change is in insiders build of Python extension. Try setting this to |
I am having the same problem, and I don't think it's PyLance related. I flipped to daily insiders build as suggested by @MikhailArkhipov and also uninstalled PyLance. Neither fixed it... |
So, what is the IntelliCode output with insiders daily + Pylance? |
Just a quick update. I tried installing the latest Visual Studio Code insiders with the Python, Pylance, and IntelliCode extensions, and setting I suspect the original issue may at least for me be related to an "unofficial" build as @jakebailey suggested. I'm running "Code - OSS" from the |
@mvaaltola - so, you are running latest ans still get the intellicode error? |
@MikhailArkhipov ah, perhaps I should've been a bit more clear. I get no errors on the latest official VS Code Insiders with freshly installed Python, Pylance and IntelliCode plugins, everything seems to work fine. I only get the error on my main "Code - OSS" build with the latest Pylance and Python extensions. They're not daily builds (can't seem to install them on my vscode build), but neither was the version I tried on the insiders build. I assume the error has something to do with the "Code - OSS" build not being officially supported by Pylance. |
Yes, that might be the case. |
OK, I am going to close the issue since Pylance works with stock VS Code. Other builds are not supported and Python extension most probably falls back to Jedi language support which is not compatible with IntelliCode. |
Ive started getting this error as well. Ive tried deleting pylance, python, and intellicode extensions a couple of times. Are their other ideas to solve this issue? |
same with joshuamwolfe |
@longer-is-better The above user opened #1118 to cover their issue; if yours is the same we can comment there, otherwise this is an old unrelated issue and we'd appreciate a new one instead. |
For me the issue was, if the value for |
Release
|
Nothing changed in our IntelliCode support between those versions; the only explanation I can come up with is that the IC extension is sending some command too early or something. In any case, the current issue for this is: #1664 Any info you can provide from your logs would be helpful there. |
what cause the problem for me was iupdating the extensions python and pylance so i downgrade both of them and that solved the problem |
This is what worked for me after 2hours of searching. |
Downgraded as well. This is such a shame. |
In my case, this issue happened because Pylance was disabled. I enabled it and everything started working fine after 2 days of trying. |
Currently, I also had undergone same issue. However, it can be easily resolved with just downgrading the version of python extension. Try it if you face this problem. |
Why is this issue marked as closed? Please mark as unresolved! I had to downgrade to v2023.22.1 as mentioned above by other to resolve the issue: |
@leonk-sportsbet , This issue is really old. You should open a new issue if you want help resolving your problem. There's likely a different cause for the problem. |
I faced the same issue. In my case, pylance extension, which is required for intellicode was not active. I found out that the pylance for my vscode version was not supported anymore. Updating the VS code to the latest version fixed this error. |
Getting the following error after installing pylance
Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.
Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:17:14.222Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0
python 3.8.2
macos catalina
Environment data
Language server is set to Pylance.
Acquiring model
Acquiring model 'intellisense-members-lstm' for python
Querying IntelliCode service for available models.
vs-intellicode-python was passed a model: {}.
Cached model is up to date.
Activating Python extension
Language server extension command failed. Exception: Error: command 'python.intellicode.loadLanguageServerExtension' not found
at e._tryExecuteCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3900:893)
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:3900:774
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:85:5)
Error while activating Python: {}
Expected behaviour
Not getting any errors.
Actual behaviour
Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.
The text was updated successfully, but these errors were encountered: