-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
${workspaceFolder} does not convert correct path to gdb in WSL #1660
Comments
From @vscodebot[bot] on March 9, 2018 16:10 (Experimental duplicate detection) |
Following the answer from Weinand in the old issue topic (vscode #45418): weinand commented:
|
If we can get a hook to resolve variables for tasks.json and launch.json, then we could define additional variables that would allow you to do this. The syntax might be slightly different, but it would at least give our extension some control over variable resolution. We have no way to do this right now. Would you mind adding your scenario to this issue and upvoting it? microsoft/vscode#43782 |
Sure, I already added my scenario to the issue. |
Any workaround for this issue? |
I recently created a VS Code extension: WSL workspaceFolder, which may help. |
Originally I want to use @lfurzewaddock 's extension because it seems very conveience. However it only supports workspaceFolder. I wonder what if the extension can support more paths such as $fileDirname or $file, etc. That makes the extension more popular. |
@alan23273850 |
Thanks! I've originally added that line but it seemed useless on my computer so I commented it out. |
I solved the issue by using @alan23273850's setup. Here is the full snippet, ready to copy-paste into launch.json's configurations!
|
We recommend using VS Code's integrated support for WSL. We won't be making any major changes to our "non-remote" implementation going forward. |
From @ajssousa on March 9, 2018 16:10
Hi.
I have the WSL using Ubuntu and want to use gdb installed on WSL through the VSC.
Evertything works fine if i use the full path like in WSL (e.g. /mnt/c/Users/..)
The problem is if i want to use relative paths, the VSC is not converting an passing right to gdb inside WSL.
Steps to Reproduce:
1.
My setup:
It says Unexpected GDB output from command "-environment-cd"
Using the ${workspaceFolder} or even using the Linux relative paths (../) he is not converting correctly to send to gdb. If the put the full path as a Linux style, no problem (e.g. of full path that works: /mnt/e/edws/svn-edws/s3/S3Trunk/S3/S3Mains ).
Copied from original issue: microsoft/vscode#45418
The text was updated successfully, but these errors were encountered: