You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Debugger, "Run Python File", etc. fails when launched into a new terminal #950
When doing something that launches a command in a new terminal (e.g. pressing the debug button on a test as I was doing right now), the env activation command seems to block execution of the launch. I'm left with an interactive prompt and nothing happens:
I am using OS X, zsh (with prezto if that is relevant). Worth noting is also that the env doesn't get activated either, so basically the two commands seem to cancel each other in some way.
I tried changing python-envs.terminal.autoActivationType to shellStartup instead of command, but then the env doesn't get activated at all. It does however solve the issue at hand. If the command happens to launch into an existing terminal it also works fine.
Anthony Kim (@anthonykim1) No, I am not able to replicate the original issue. If I have python-envs.terminal.autoActivationType set to shellStartup, the env seems to be activated and it works to start the debugger. Likewise, if python-envs.terminal.autoActivationType is set to command, the debugger launches, but before the environment has been activated (it still works since the full interpreter path is used). The env activation command seems to run after the debugger has exited in that case.
Thanks for fixing this! As a side note I still have prezto enabled, but it seems like maybe the prompt is messing things up for the terminal integration. When I mouse over the terminal tab I see Prompt input: | my-git-branch-name ✭ ✱ ◼ whereas it shows only Prompt input: | if I disable the prezto prompt.
Emil Styrke (@estyrke) that means prezto isn't compatible with vscode's shell integration currently. This means some features won't work properly like terminal intellisense or other things that depend on extracting the prompt input.
Just for anyone else finding this thread: I believe this isn't a problem with prezto itself, just with the specific prompt I was using, which contains text at the right edge of the line. I switched to a different prompt which doesn't have that, and then it works fine as far as I can see.
Activity
anthonykim1 commentedon Dec 12, 2025
Can you try again with latest insiders and latest pre-release of Python env extension.
Also, do you have shell integration enabled?
Insiders build?
anthonykim1 commentedon Dec 12, 2025
Try not using prezto prompt, also hover over terminal tab to see shell integration is rich or something else.
anthonykim1 commentedon Feb 2, 2026
Emil Styrke (@estyrke) Are you still able to replicate?
Plan is to make shell startup as default: #962
estyrke commentedon Feb 3, 2026
Anthony Kim (@anthonykim1) No, I am not able to replicate the original issue. If I have
python-envs.terminal.autoActivationTypeset toshellStartup, the env seems to be activated and it works to start the debugger. Likewise, ifpython-envs.terminal.autoActivationTypeis set tocommand, the debugger launches, but before the environment has been activated (it still works since the full interpreter path is used). The env activation command seems to run after the debugger has exited in that case.Thanks for fixing this! As a side note I still have prezto enabled, but it seems like maybe the prompt is messing things up for the terminal integration. When I mouse over the terminal tab I see
Prompt input: | my-git-branch-name ✭ ✱ ◼whereas it shows onlyPrompt input: |if I disable the prezto prompt.Tyriar commentedon Feb 3, 2026
Emil Styrke (@estyrke) that means prezto isn't compatible with vscode's shell integration currently. This means some features won't work properly like terminal intellisense or other things that depend on extracting the prompt input.
estyrke commentedon Feb 4, 2026
Just for anyone else finding this thread: I believe this isn't a problem with prezto itself, just with the specific prompt I was using, which contains text at the right edge of the line. I switched to a different prompt which doesn't have that, and then it works fine as far as I can see.