-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Debugging fails when using a pipenv environment that gets activated with pipenv shell
#4203
Comments
Got this issue since today. Was perfectly fine before.
is all it does when I open up debugging. |
Temporary work around
|
I just started having this issue today, and noticed the debug command was being cut off. Adding the |
I changed the launch.json to the following thinking it would resolve the problem. But no luck. It would be cool if the pythonPath was specified in the launch configuration, the tool would use it and not look any harder for other solutions
I then added a file specific debug entry, so it had both. The file specific debug launcher worked, great! And then the current file entry started working as well. Crazy.
Maybe there is another bug dealing with caching as well. |
This setting python.pythonPath in vscode/settings.json is coming into play as well. So my last comment is off base. If the python.pythonPath is set to a pipenv python:
Hit the debug button, debugging does not work, even if the launch config specifies the pythonPath to use, wierd, this is what I see in the Terminal window:
If you happen to have python installed somewhere else you can set python.pythonPath to that location, and initialize the launch configuration to the FQN of the pipenv python. If you don't have another copy of python handy then create one:
|
For the issues that I'm having with this, it seems like it runs Seems to me like what needs to happen is that |
My issues with this also seem to involve Powershell (and one of examples someone provided above also appears to be in Powershell). If I switch to Command Prompt as my default terminal it works fine. Although if I keep using Powershell and set |
pipenv shell
Prescribed solution |
having similar issues, sorry for popping this one to the top, but my issue seems to be that vscode starts the debug session with pipenv and if i press stop or restart then it spawns a new terminal with the same environment again, not shutting down the other instances, after a while i get the error that there are too many files open inside the environment and it wont work, sometimes it is like vscode is not running the entire command at once and rather splitting it into 3 different commands, |
We reverted old implementation #4394 |
In my case, |
Closing as we no longer use |
microsoft/vscode#67692
The text was updated successfully, but these errors were encountered: