workspaceRoot invalid on Git Bash and WSL #24072
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
*duplicate
Issue identified as a duplicate of another issue(s)
WSL
Issue when using WSL
Milestone
Steps to Reproduce:
${workspaceRoot}
Here's an example launch config:
Running this with the Powershell terminal works just fine. When running in WSL or Git Bash, the
${workspaceRoot}
uses backslashes in the path and fails:Note that these commands will work in Git Bash if the backslashes are converted to the proper forward-slashes:
Converting the slashes doesn't fix WSL, though. In Git Bash the drives are mounted like
/c/
forc:\
. In WSL they're mounted at/mnt/c/
, so it may require changing the drive part of${workspaceRoot}
depending on the shell you have selected. We could hard-code the workspace root, but that forces everyone to use a *nix based shell and have the project in the same path on their different machines.The text was updated successfully, but these errors were encountered: