Environment data
- VS Code version: 1.44.1
- Extension version (available under the Extensions sidebar): 2020.3.71659
- OS and version: Windows 10 Pro
- Python version (& distribution if applicable, e.g. Anaconda): N/A
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Expected behaviour
"Run Python file in Terminal" should trigger a command such as:
>C:/tools/miniconda3/envs/test/python.exe c:/_repos/test1/test.py
Actual behaviour
The powershell version of the run command with the leading "&" is used :
>& C:/tools/miniconda3/envs/test/python.exe c:/_repos/test1/test.py
& était inattendu
which would translate into "& was unexpected"
I face the same issue whatever the Python interpreter I use. Be it a conda one or not.
Steps to reproduce:
- Create a simple python project
- Set terminal.integrated.shell.windows to powershell at the user level.
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
- Override the setting at the workspace level with cmd.exe.
"terminal.integrated.shell.windows": "${env:SystemRoot}\system32\cmd.exe"
Run the script in Terminal => an & is front of the run command.
Misc
Tried older versions of the extension. Problem seems to have been introduced in 2020.2.62710.
It seems a similar issue was fixed in the past : #5913 , #5916
Environment data
Expected behaviour
"Run Python file in Terminal" should trigger a command such as:
>C:/tools/miniconda3/envs/test/python.exe c:/_repos/test1/test.pyActual behaviour
The powershell version of the run command with the leading "&" is used :
which would translate into "& was unexpected"
I face the same issue whatever the Python interpreter I use. Be it a conda one or not.
Steps to reproduce:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe","terminal.integrated.shell.windows": "${env:SystemRoot}\system32\cmd.exe"
Run the script in Terminal => an & is front of the run command.
Misc
Tried older versions of the extension. Problem seems to have been introduced in 2020.2.62710.
It seems a similar issue was fixed in the past : #5913 , #5916