-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
"Configured debug type 'python' is installed but not supported in this environment" if using shellExecutionSupported in package.json #136712
Comments
I can reproduce this in VS Code 1.62 (Stable) and 16.3 (Insiders). However, running Python programs works fine... The Python extension uses this when clause: @alexr00 I noticed that "npm tasks" are controlled by a @isidorn since you've recommended to use the |
@weinand I set |
@alexr00 Thanks, that would explain it. What should we do? |
@weinand is there a way you can listen for the appropriate context change and and then update your contributions? Worth noting: I named those contexts after kinds of tasks, so it feels a little strange to use them in other places. |
@alexr00 thanks for the suggestion I agree that it was not a good idea to recommend piggy-backing on I think we have two options now:
@alexr00 @aeschli @roblourens opinions? |
Seeing this pop up in my launch.json is a little perplexing, I don't follow the comments above, and from what I can see, the settings seem to apply to executing in a browser maybe? My apps are server-side command line apps, so the stuff being mentioned here seems to not even be germane to me. |
the "popup in your launch.json" is just wrong - it's a bug in VS Code. |
I have run into this issue as well. I was following a Django tutorial on YouTube and one of the steps was to create a launch.json file and then run the debugger. It is giving me the error:
I think I am in a shell virtual environment as well if that helps. Any input would be helpful. |
I downgraded to the previous version, which solved the problem, including crashing of integrated terminal |
@Olsthoorn that got rid of the error. Thanks for the suggestion! |
What are we trying to capture by using this context key? Is it, "the EH has 'real' compute"? I see that the context key initially is false when we evaluate it to add that message to the debug adapter's schema, but becomes true later. |
@kimadeline above you said:
Does this mean that the |
@weinand I would opt for option 1, where |
Would be nice to have some end user advice on this - right now it's all insider talk about resolution. Agreed that this is necessary but I hate having a non-empty problem list. |
As suggested above by @Olsthoorn:
|
@kimadeline I agree with @alexr00 that our earlier recommendation was wrong and that the context key I suggest that you remove the If the reason for adding |
@weinand our current |
@kimadeline so |
afaik |
@kimadeline please file a feature request for a new context key for this situation. |
@weinand Regardless of which content key we recommend, debug needs to listen for changes to the context key is depends on and trigger a schema update. Example. @kimadeline Until we conclude whether we need a new key or not, you can always define your own context key in the extension matching exactly your use case. Here is an example to that. |
@aeschli you said:
That shows exactly the problem: context keys are not scoped, so the Python extension can use Task's and if @kimadeline would introduce their own context key in the Python extension, how could Debug listen for that? |
@weinand The set of context variable that can be used in |
We don't listen to updates for individual context keys, we just listen to any change in the context and update the schema to show or hide the warning. |
Sorry, needed to refresh the page and didn't see the latest |
When does the fix get released. I had to downgrade two versions to remove the message. |
So magic! Works for me. Thanks very much. |
Strange, but for me I also had to uninstall and reinstall python in addition to Jupyter. In any case, uninstalling was definitely the nudge in the right direction. (Thanks @hunglnguyen) |
Uninstalling and reinstalling Jupyter also worked for me.
|
Had to uninstall Python and Jupyter and restart VS Code and reinstall both. It worked! Thank you |
Any idea about how to get rid of this error without dealing with Jupyter? |
Not working for me... :( EDIT: Sorry guys, I just had to delete the whole launch.json file from my folder, which was created during this struggle... It works now like a charm! :) |
Lol, very unexpected fix |
Does this issue occur when all extensions are disabled?: No
(originally reported in microsoft/vscode-python#17952)
We recently added
shellExecutionSupported
to thewhen
clause of features of the Python extension that shouldn't be exposed in virtual workspaces following the recommendation in microsoft/vscode-python#17493 (comment).However, this now causes a
Configured debug type 'python' is installed but not supported in this environment
warning to be displayed:Steps to Reproduce:
Python File
launch.json
and note the squiggles under the configuration type.If I remove the
&& shellExecutionSupported
part on https://github.com/microsoft/vscode-python/blob/5f46b3daf288e91e825e03adf83516f35b8cc457/package.json#L1490 and rebuild the extension, the squiggles won't appear.The text was updated successfully, but these errors were encountered: