Skip to content

Debugging fails when using a pipenv environment that gets activated with pipenv shell #4203

Description

Activity

  1. Adanteh commented on Jan 30, 2019

    @Adanteh

    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.

  2. DonJayamanne commented on Jan 30, 2019

    @DonJayamanne
    Author

    Temporary work around

    • Go into settings (workspace settings, .vscode/settings.json)
    • Add the following:
      "python.terminal.activateEnvironment": false,
  3. Handsome2734 commented on Jan 31, 2019

    @Handsome2734

    Temporary work around

    • Go into settings (workspace settings, .vscode/settings.json)
    • Add the following:
      "python.terminal.activateEnvironment": false,

    This works for the first time. But the issue still happens after "Restart" debugger.
    debug console after Restart
    And I think I heard a beep after I clicked Restart...

  4. JoBrad commented on Jan 31, 2019

    @JoBrad

    I just started having this issue today, and noticed the debug command was being cut off. Adding the python.terminal.activateEnvironment setting corrected this, but I can only execute the script completely - line-by-line debugging doesn't work (tried in VS Code Insiders and stable).

  5. 20 remaining items

  6. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Mar 11, 2020
  7. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Mar 11, 2020
  8. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Mar 11, 2020
  9. DonJayamanne commented on Mar 29, 2020

    @DonJayamanne
    Author

    We reverted old implementation #4394

  10. GBrachetta commented on Dec 3, 2020

    @GBrachetta

    In my case, "python.terminal.activateEnvironment": false doesn't prevent pipenv from starting a new shell.
    My workaround is to temporarily rename Pipfile before 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!

  11. karrtikr commented on Oct 22, 2021

    @karrtikr

    Closing as we no longer use pipenv shell command: #10611 (comment)

  12. locked as resolved and limited conversation to collaborators on Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-debuggingarea-terminalbugIssue identified by VS Code Team member as probable bugregressionBug didn't exist in a previous releaseverifiedVerification succeeded

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions