Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Commands get run before python environment is activated #48

Open
User087 opened this issue Jun 4, 2023 · 1 comment
Open

Commands get run before python environment is activated #48

User087 opened this issue Jun 4, 2023 · 1 comment

Comments

@User087
Copy link

User087 commented Jun 4, 2023

When the "python.terminal.activateEnvironment": true setting is present, the Python environment in use is supposed to be automatically activated in all new terminals that get created. I find that with Run in Terminal, when running assigned commands for the first time since opening the editor (such that a run-in-terminal isn't already open), the assigned commands get executed in the new terminal first and then the automatic command to activate the environment gets executed, so only subsequent runs of the Run in Terminal commands get executed within the environment, but the first run doesn't. Can this be fixed so that the first time the commands are run, they only get executed after the environment is activated?

@kortina
Copy link
Owner

kortina commented Jun 5, 2023

hmm, this does seem like a problem. Does anyone have ideas how other extensions handle this / if there is a canonical way of achieving this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants