Repository navigation
Debugging fails when using a pipenv environment that gets activated with pipenv shell #4203
Description
Activity
Got this issue since today. Was perfectly fine before.
PS <path> pipenv shell Loading .env environment variables… Launching subshell in virtual environment… Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.is all it does when I open up debugging.
Reacted by AndreaDonJayamanne commented
on Jan 30, 2019 AuthorMore actionsTemporary work around
- Go into settings (workspace settings,
.vscode/settings.json) - Add the following:
"python.terminal.activateEnvironment": false,
Reacted by Felipe Lube de Bragança, JoBrad, olegasdo, Russell Davis, 里丰, Pedro Igor, Roman Lukomskyi, Roman Kornev and Bao HoReacted by 里丰- Go into settings (workspace settings,
- addedimportantIssue identified as high-priorityIssue identified as high-priority
on Jan 30, 2019 - Reacted by Felipe Lube de Bragança and Adanteh
I just started having this issue today, and noticed the debug command was being cut off. Adding the
python.terminal.activateEnvironmentsetting corrected this, but I can only execute the script completely - line-by-line debugging doesn't work (tried in VS Code Insiders and stable).Reacted by Felipe Lube de Bragança- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugand removed
on Jan 31, 2019 20 remaining items
- ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 11, 2020 - ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 11, 2020 - ghost addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 11, 2020 - added and removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 11, 2020 DonJayamanne commented
on Mar 29, 2020 AuthorMore actionsWe reverted old implementation #4394
- addedregressionBug didn't exist in a previous releaseBug didn't exist in a previous release
on Apr 7, 2020 In my case,
"python.terminal.activateEnvironment": falsedoesn't prevent pipenv from starting a new shell.
My workaround is to temporarily renamePipfilebefore running the debugger, and that's the only way to get it working as far as I can tell.
I'd love to know if the launch.json file could be tweaked to sort this issue more elegantly!Closing as we no longer use
pipenv shellcommand: #10611 (comment)- locked as resolved and limited conversation to collaborators
on Nov 26, 2021

microsoft/vscode#67692