Skip to content

Shell type is detected incorrectly after VSCode update #16175

@mattkellymt

Description

@mattkellymt

Error: & was unexpected at this time

Workaround: #16175 (comment)

When I run a python script, without ever changing a setting in vs code after its installation, it uses powershell as the default terminal profile and there is no issue.

image

But when I change the default terminal profile from powershell to command prompt

image
image

I get the "& was unexpected at this time." error

image

I've seen people say I should type ctrl+shift+p then type "select default terminal" to change my terminal from powershell to the command prompt, but this isn't an option in the 2021-05-06 version of Visual Studio Code

image
image

I am using a fresh Windows 10 install with nothing but miniconda and visual studio code.

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions