vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

fix compatibility with ms-python

Open AustinZhang1024 opened this issue 3 years ago • 2 comments

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.

AustinZhang1024 avatar Jan 30 '22 05:01 AustinZhang1024

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.).

browneye1826 avatar Feb 11 '22 22:02 browneye1826

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.

AustinZhang1024 avatar Feb 16 '22 12:02 AustinZhang1024