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.

Python extension fails to load due to some other extension

See original GitHub issue

Environment data

  • VS Code version: 1.34.0
  • Extension version (available under the Extensions sidebar): 2019.6.17064-dev
  • OS and version: Xubuntu x64 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): Python3.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv
  • Relevant/affected Python packages and their versions: N/A

Expected behaviour

Plugin loads and shows the virtualenv that is active in the lower left status bar.

Actual behaviour

Stays on a spinner and the text Python extension loading... and never resolves.

Steps to reproduce:

  1. Open a Python project folder
  2. Open a Python file in the editor (if existing files are not open then the issue does not occur)
  3. Open command pallet and type Reload Window

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python): Empty

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

[Extension Host] Python Extension: extension activation failed Error: Missing required @injectable annotation in: d.
	at l (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:22015)
	at Object.module.exports.t.getDependencies (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:23677)
	at /var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:20708
	at Array.forEach (<anonymous>)
	at e (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:20522)
	at Object.module.exports.t.plan (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:20806)
	at module.exports.e._planAndResolve (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:17690)
	at e.module.exports.e._get (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:17599)
	at e.module.exports.e.get (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:24:16290)
	at o.get (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:83:687946)
	at /var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:9:98534
	at /var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:9:99297
	at module.exports.t.activate (/var/home/bdeeming/.vscode/extensions/ms-python.python-2019.5.15582-dev/out/client/extension.js:9:102021)
	at Function._callActivateOptional (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:731:936)
	at Function._callActivate (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:731:625)
	at define._doActivateExtension.Promise.all.then.e (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:730:635)
t.log @ workbench.main.js:238
workbench.main.js:3855 Activating extension 'ms-python.python' failed: Missing required @injectable annotation in: d..
_logMessageInConsole @ workbench.main.js:3855

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
bdeemingcommented, May 31, 2019

Yep indeed it appears to be the case (it worked after removing the other extensions). I’ve run out of time right now, but will narrow it down to which one on Tuesday next week and report back. Thanks for your help.

0reactions
bdeemingcommented, Jun 4, 2019

Narrowed it down to matthewferreira.cppcheck-0.2.2, which turns out to not even be on the market place anymore (unfortunately VS Code doesn’t tell you when a plugin goes away… 😞).

Sorry for taking your time, and thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How would I fix the issue of the python extension loading and ...
1 Answer 1 · Uninstall Python extension (if you have pylance uninstall it first). · Close all instances of VS Code. · Go...
Read more >
Python - Visual Studio Marketplace
Extension for Visual Studio Code - IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), Jupyter Notebooks, code formatting, refactoring, ...
Read more >
1. Extending Python with C or C++ — Python 3.11.1 ...
The C extension interface is specific to CPython, and extension modules do not work on other Python implementations. In many cases, it is...
Read more >
How to install and manage Azure CLI extensions
If the extension is from an external resource or you have a direct link to it, provide the source URL or local path....
Read more >
Issues Loading Python Extension : r/vscode - Reddit
You can look into the OUTPUT panel, and choose these channels in the right drop-down list to get some helpful information: 'Python', 'Python...
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