Skip to content

terminal does not auto-reveal when running script #1128

@amunger

Description

@amunger

Set "python.useEnvironmentsExtension": true in your settings
Set "python-envs.terminal.autoActivationType": "command" in your settings
Create a virtual environment in your workspace: python -m venv .venv
Select the .venv as your Python interpreter for the workspace

Pretty sure this caused a regression: if a new terminal needs to be created, it will not show until the script has completed.

with the above prereqs, close all terminals and use run python file in terminal with an input:

import time

c = int(input("Enter a number: "))
for i in range(c):
    print(i)
    time.sleep(.1)

🐛 terminal never reveals (if you open the terminal, you can see the script has been running)

Originally posted by @amunger in #640

Metadata

Metadata

Assignees

Labels

area-terminalEnvironment extension specific terminal issues.bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions