Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix compatibility with ms-python #915

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OdinZhang
Copy link

Fixes #878 #855 #576 #434
Many python users like to use conda or something else to control the virtual environment. But code runner does not supprot it. When ms-python extension has been installed, it will firstly execute the command and then activate the virtual environment, so it won't work well with python at the first execution.
I just add an option to make users to choose whether to execute the command with official python extension.

@browneye1826
Copy link

browneye1826 commented Feb 11, 2022

Having this issue too. Strange. Only started recently. Even though the Conda environment is set in the workspace, code-runner is still trying to execute with a different Python version, resulting in errors (missing modules etc.).

@OdinZhang
Copy link
Author

Having this issue too. Strange. Only started recently. Even though the Conda environment is set in the workspace, code-runner is still trying to execute with a different Python version, resulting in errors (missing modules etc.).

Actually, code runner try to excute the command directly after terminal started, if you use default environment it won't be a problem. When you use another environment, the environment will be activated only after the first execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]
2 participants