formulahendry / formulahendry/vscode-code-runner

Python Interpreter Path Error in Code Runner Mapping

Open
#422 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

I am trying to set the python path in code runner and map it in User Settings.
I am using this format where I also escaped the space between Program Files by enclosing \" around the path. Below is the .json mapping

```
code-runner.executorMap":{
"python": "\"C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\python.exe\""
},
```
But even then, the .py file is unable to find the path and execute. Below is the error recived.

```

PS D:\VSCode\Python> "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "d:\VSCode\Python\twoSum.py"
At line:1 char:72
+ ... in\Python\envs\arcgispro-py3\python.exe" "d:\VSCode\Python\twoSum.py"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '"d:\VSCode\Python\twoSum.py"' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.