${workspaceRoot} not supported
See original GitHub issueI realize code-runner supports using $workspaceRoot
in the paths, but there are two problems with it, and they are possibly related:
-
It doesn’t work with python virtual environments when used. It gets stuck and has to be stopped.
-
{$workspaceRoot}
is the syntax MS uses. So, maybe this is related to whatever causes 1)
. The syntax VS Code uses for this is ${workspaceRoot}
, as in:
"python.pythonPath": "${workspaceRoot}\\learning_pytest\\Scripts\\python.exe"
Could code-runner be updated to support ${workspaceRoot}
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
${workspaceRoot} in launch.json is not the Folder path #1104
${workspaceRoot} in launch.json is not the project Folder path that contains task.json. OS: Windows: Programming Language: C++
Read more >Variables reference - Visual Studio Code
The variable ${workspaceRoot} was deprecated in favor of ${workspaceFolder} to better align with Multi-root Workspace support. Why aren't variables in tasks.
Read more >VSCode environment variables besides ${workspaceRoot}
The following predefined variables are supported: ${workspaceFolder} - the path of the folder opened in VS Code; ${workspaceFolderBasename} - ...
Read more >Using with MS Visual Studio Code - Sming Framework
While not as sophisticated in C/C++ support as full featured Visual Studio, ... ${workspaceRoot} below is the directory with your project, this notation...
Read more >CMakeSettings.json schema reference - Microsoft Learn
remoteBuildRoot : Specifies the directory on the remote machine in which CMake generates build scripts for the chosen generator. Supported ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I see. You need to use
"code-runner.executorMap": {"python": $workspaceRoot\\.env\\Scripts\\python.exe $fullFileName"}
(If you use any customized parameters, $fullFileName will not be auto added)OK yes thank you!
It wasn’t the main issue but if
${workspaceFolderBasename}
worked with code-runner paths, the previous inquiry of mine should be possible. It would be nice if that worked someday.Thank you for helping me!