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:
"program": "${workspaceRoot}",
"remotePath": "/go/src/github.com/org/repo"
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
VS Code Version 1.12.2 (1.12.2)
vscode-go v0.6.61
Local GOPATH:
/Users/mgrigaitis/goProject:
/Users/mgrigaitis/go/src/github.com/org/repoRemote GOPATH:
/goProject:
/go/src/github.com/org/repoworkspaceRoot = /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