Latest VS Code terminal settings for Windows Command Prompt cause "Start REPL" to fail #16169
Labels
area-terminal
bug
Issue identified by VS Code Team member as probable bug
investigating
We are looking into the cause of the issue
Environment data
python.languageServer
setting: Pylance[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (
python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]Expected behaviour
The REPL starts.
Actual behaviour
The REPL fails to start because PowerShell syntax is used ("& D:/Python/Python39/python.exe"), and Command Prompt doesn't understand this (error message: "& was unexpected at this time.").
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
The problem does not occur if PowerShell is selected as the default terminal, or if the now deprecated terminal setting is used to select Command Prompt (
"terminal.integrated.shell.windows": "${env:windir}\\Sysnative\\cmd.exe"
).Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)None
The text was updated successfully, but these errors were encountered: