You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2021.5.842923320
OS and version: windows10
Python version (& distribution if applicable, e.g. Anaconda): 3.8
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): n/a
Relevant/affected Python packages and their versions: n/a
Relevant/affected Python-related VS Code extensions and their versions: n/a
Value of the python.languageServer setting: Microsoft
[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
when I run python from vscode it gives me an error
& was unexpected at this time.
it seems related to the new way that vscode handle the terminal setting
it is "terminal.integrated.defaultProfile.windows": "Command Prompt"
Actual behaviour
if I switch to "terminal.integrated.shell.windows": "c:\windows\System32\cmd.exe" in vscode settings
it works fine
however vs code mark this setting be deprecated, eventually there will be no way to avoid this issue.
Steps to reproduce:
open vscode, edit settings in json delete "terminal.integrated.shell.windows" if any
then use vscode menu to select "Termnal:Select Default Termnal" to select "command prompt" (git bash, or power have same issue)
Then run any python file.
Conda activate works, but then second line to call python pops above error.
The text was updated successfully, but these errors were encountered:
Same issue with Git Bash as I'm using it everywhere - bash: syntax error near unexpected token `&'.
terminal.integrated.defaultProfile.windows uses the default activation command for PowerShell. The only workaround I'm using is also terminal.integrated.shell.windows.
This is occurring since VSCode 1.56 I believe where default terminal profiles were added.
Environment data
python.languageServer
setting: Microsoft[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
when I run python from vscode it gives me an error
& was unexpected at this time.
it seems related to the new way that vscode handle the terminal setting
it is "terminal.integrated.defaultProfile.windows": "Command Prompt"
Actual behaviour
if I switch to "terminal.integrated.shell.windows": "c:\windows\System32\cmd.exe" in vscode settings
it works fine
however vs code mark this setting be deprecated, eventually there will be no way to avoid this issue.
Steps to reproduce:
open vscode, edit settings in json delete "terminal.integrated.shell.windows" if any
then use vscode menu to select "Termnal:Select Default Termnal" to select "command prompt" (git bash, or power have same issue)
Then run any python file.
Conda activate works, but then second line to call python pops above error.
The text was updated successfully, but these errors were encountered: