Skip to content

Unexpected token 'resolve' in expression or statement. #966

@rzhao271

Description

@rzhao271

On Windows 11, when I run the command "Python: Run Python Environment Tool (PET) in Terminal...", select "Resolve Environment", and give it a path, it runs a pwsh terminal and emits the following error:

PS C:\Users\raymondzhao\work\endgame\testworkspace3> "c:\Users\raymondzhao\.vscode-insiders\extensions\ms-python.vscode-python-envs-1.11.13081015-win32-x64\python-env-tools\bin\pet.exe" resolve "C:\Users\raymondzhao\work\endgame\testworkspace3\.venv-1\Scripts"
ParserError: 
Line |
   1 |  … 1.11.13081015-win32-x64\python-env-tools\bin\pet.exe" resolve "C:\Use …
     |                                                          ~~~~~~~
     | Unexpected token 'resolve' in expression or statement.

The same error occurs when I add \python.exe to the end of that absolute path.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions