Search code examples
pythonvisual-studio-coderuntime-error

Python error in VSCode :Sorry, something went wrong activating IntelliCode support for Python


My code is not working in vscode when I click to run code I see this error:

Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.

and when I tried to rerun the code I saw this message;

Code is already running

The code doesn't stop when I click on ctrl+c so I have to close the editor and open it back. I don't understand why this happened, please help.


Solution

  • I would just like to add a few helpful links:

    Intellicode Issue 57

    Intellicode Issue 266

    Gitmemory issue 486082039

    For a lot of people, it just began working after a few tries randomly. See this text (quoted from issue 57):

    There's a race condition in the activation of both the IntelliCode and Python language server extensions. Even if the Python extension is loaded, the language server that the extension spins up might not be fully initialized yet. So if the Python extension loads, then the IntelliCode extension, then the Python language server initializes, we will have this problem.

    For some people, it was working to reload VS Intellicode pack following the reinstall the Python extension pack.

    Thank you.