-
Notifications
You must be signed in to change notification settings - Fork 647
Remote debugging has unverified breakpoints and fails to set breakpoint if local GOPATH partially matches remote GOPATH #1009
Comments
Can you please try if this fix works for you? |
I do not really think this is proper solution to the problem. From other parts of code it looks like trailing slashes are removed but here they're added. And in my case I think that paths shouldn't be touched at all. |
@mariusgrigaitis Ack. Please let me know once you tried it. |
I've tried it. Looks like it works Config:
Verbose log:
I've also tried running same against latest master, was able to reproduce |
Thanks, @mariusgrigaitis. I'd like to test another edge-case and I'll do a PR once I'm back home. |
It's PR #1014 |
Thanks for reporting @mariusgrigaitis @roblourens The PR looks good to me, but since you tested @f0zi 's previous related changes, can you take a look as well? |
Looks ok to me |
The fix is now available in the latest update (0.6.62) |
VS Code Version 1.12.2 (1.12.2)
vscode-go v0.6.61
Local GOPATH:
/Users/mgrigaitis/go
Project:
/Users/mgrigaitis/go/src/github.com/org/repo
Remote GOPATH:
/go
Project:
/go/src/github.com/org/repo
workspaceRoot = /Users/mgrigaitis/go/src/github.com/org/repo
in launch.json:
In such case remotePath gets set to empty string '' in https://github.com/Microsoft/vscode-go/blob/4beecf1db2aaa18b336be2ee64476b56202fc959/src/debugAdapter/goDebug.ts#L435
After it gets set to empty string, paths mismatches and breakpoints does not get set. It passes this if: https://github.com/Microsoft/vscode-go/blob/4beecf1db2aaa18b336be2ee64476b56202fc959/src/debugAdapter/goDebug.ts#L517
Error on CreateBreakpoint gets thrown.
One known workaround that I found to "overcome" this issue is add trailing "/" to remotePath. Then remotePath does not match local path and remotePath remains intact, trailing / gets removed.
Might be related to #941 #360
Looks like introduced by #742
The text was updated successfully, but these errors were encountered: