Skip to content

Run Python file in Terminal with error "& was unexpected at this time." #13466

Closed
@bububut

Description

@bububut

Environment data

  • VS Code version: 1.48.0
  • Extension version (available under the Extensions sidebar): v2020.8.101144
  • OS and version: Windows 10 Pro 2004 build 19041.450

Expected behaviour

right click in Python file and choose "Run Python File in Terminal" to get the file run

Actual behaviour

it inserts a '&' symbol at the beginning of the command and the commands failed with "& was unexpected at this time."

my terminal is cmd.exe

It's the same problem as #5916
I believe it has been solved and that issue is closed, don't know why it happens again now

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions