I had the same issue (at least it seemed the same), however it is possible to work around it if you are using the Python extension in conjunction with Remote Debugging.
You can ignore the extension's activation failure if that is your primary use, since VSCode is still able to debug remotely using Python Remote Attach.
After some more work on this, I found that updating the Python Extension to the pre-release version cleared up the various errors that came with the recent updates.
Answer from Zachary Barnett on Stack OverflowI had the same issue (at least it seemed the same), however it is possible to work around it if you are using the Python extension in conjunction with Remote Debugging.
You can ignore the extension's activation failure if that is your primary use, since VSCode is still able to debug remotely using Python Remote Attach.
After some more work on this, I found that updating the Python Extension to the pre-release version cleared up the various errors that came with the recent updates.
You could roll back to the historical version in the extension store to solve this problem.
If you want, you can also follow this issue on github, it's the same problem.

Here is my package.json
Whatever I do it doesn't work on the published version. When I start the "Start Debugging (F5)" from vscode it correctly triggers the activate method exported in my extention.js file!
But when it is published only my declared grammar works
I've watched other source's code and I feel like I do things correctly but VSCode just doesn't want to
Please help!
Hey everyone,
I'm running into a persistent issue with the Jupyter extension in VS Code and I'm hoping someone can point me in the right direction.
I'm trying to run a simple Python cell in a .ipynb notebook, but I can't execute anything because the Jupyter extension fails to start. As you can see in the screenshot, I keep getting the error notification: Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
What I've Tried So Far:
-
Reinstalling: I have completely uninstalled and reinstalled the Jupyter extension (and its related dependencies like the Python extension) multiple times.
-
Restarts: I have closed and reopened VS Code, and even restarted my computer.
-
New Environments: I've created fresh virtual environments (using
venv) and installedipykernelwithin them, but the issue persists no matter which interpreter I select. -
Different Files: This happens with any notebook file, even a brand new one with a single
print()statement.
I feel like I'm missing something obvious, but I can't figure out what
I fix it doing a complete uninstall of VS Code:
Use the uninstall: "%USERPROFILE%/AppData/Local/Programs/Microsoft VS Code/uninst000.exe"
Delete directory "%USERPROFILE%/AppData/Roaming/Code"
Delete directory "%USERPROFILE%/.vscode"
Source: Uninstall visual studio code in windows
For me, the solution was to run a profile on the extension host
The profile will probably get stuck, so I cancelled it by clicking on the profiling task in the status bar at the bottom of VS Code, and then saw that the profile had got stuck on a single extension. You can check this by running > Developer: Show Running Extensions in the command palette.
I uninstalled that extension, restarted the extension host, and all was resolved.
The extension causing issues for me was danilopolani.yet-another-phpunit
I had this same issue and finally got it fixed!
If you are on an Linux and are using an Arch-based distro with AUR support, simply install the code-features package using:
yay -S code-features
or any AUR helper of your choosing.
On other operating systems, you should do the following:
Open your VSCode's product.json. I do not know where this file is on your operating system, so please do some research.
Look for the following line:
"extensionAllowedProposedApi": [ ...
Add the following entry to that array:
"ms-toolsai.jupyter": ["notebookConcatTextDocument",
"notebookControllerKind", "notebookDebugOptions", "notebookDeprecated",
"notebookEditor", "notebookEditorDecorationType", "notebookEditorEdit",
"notebookMessaging", "notebookMime", "notebookCellExecutionState",
"portsAttributes", "textDocumentNotebook", "quickPickSortByLabel"]
For example, if the line was originally:
"extensionAllowedProposedApi": [ "extension1", "extension2" ]
Then change it to:
"extensionAllowedProposedApi": [ "extension1", "extension2",
"ms-toolsai.jupyter": ["notebookConcatTextDocument",
"notebookControllerKind", "notebookDebugOptions", "notebookDeprecated",
"notebookEditor", "notebookEditorDecorationType", "notebookEditorEdit",
"notebookMessaging", "notebookMime", "notebookCellExecutionState",
"portsAttributes", "textDocumentNotebook", "quickPickSortByLabel"] ]
Note that with the second method, you will need to edit product.json every time you update VSCode.
Just ran into this today (I'm on MacOS for my work computer). In my case, upgrading to the pre-release version of the Jupyter extension (v2022.5.1001281006) solved it right away.
If you're not an experienced programmer/software engineer, as is the case for me, I suggest trying to upgrade (or roll back) either VS code or the plugin itself before going with your own dev code for the plugin, as with @CAG2 pt2 answer. (Personally, I had trouble finding a 'product.json' file; perhaps you need an insider's build of VS code for that kind of thing [edit]: https://code.visualstudio.com/api/advanced-topics/using-proposed-api, in which case I think you'd be editing 'package.json').
I'm trying to open and execute some ipynb files in Code on Arch Linux. Installed Python and Jupyter extensions.
Whenever I try to run code in the ipnyb file, I get this nagging error message for the Jupyter extension saying
Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.
I tried switching the interpreter to the default Python 3.10.2 and also the Python 3.9.x installation in the Anaconda custom environment, but still no luck. Any idea how to fix this?