-
Notifications
You must be signed in to change notification settings - Fork 647
Debugging unit tests does not honor "go.gopath" setting #1768
Comments
Static debug configuration for unit tests is a known issue. #1749 solved it in regards to delve support, I´ll take a look at this Preferably, "go.gopath" will override the environment gopath, which is the one vscode is using for default on the test debug codelns |
@lggomez for me the most strange that go.gopath was respected in normal debug mode and when running test. The only case where gopath was taken from env - debugging unittest... |
@lggomez Are you able to reproduce this issue? https://github.com/Microsoft/vscode-go/blob/0.6.84/src/goDebugConfiguration.ts#L42-L47 ensures that as long as there is no gopath specified in the debug configuration, the gopath used while debugging will be the same as what you see when you run the command |
This issue has been closed automatically because it needs more information and has not had recent activity. Thank you for your contributions. |
I have followed all instructions and I can run/debug and run unit tests of my application.
However, when I try to debug unit tests, it looks like "go.gopath" setting is ignored (it uses GOPATH from environment).
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: