Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Can`t debug a Go program with mutil GOPATH which is set in configurations.env #1196

Closed
ansencumt opened this issue Sep 6, 2017 · 6 comments

Comments

@ansencumt
Copy link

It works fine for the past 2 weeks. But today I update the go extensions to 0.6.64, it can`t run any more.
The launch.json:
image

Then the error:
image

In fact, I have the package "bitbucket.org/ansenwork/ilog" in my GOPATH "E:\golang\golibs;".
From the error message, It seems that the debugger doesn`t scan the GOPATH which I set in the configurations.env.

@ansencumt ansencumt changed the title Can`t debug a Go program with mutil GOPATH which is set by configurations.env Can`t debug a Go program with mutil GOPATH which is set in configurations.env Sep 6, 2017
@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Sep 6, 2017

In this case what is your ${workspaceRoot} ?
Is it e:\Work\yunkai\robot ?

@ansencumt
Copy link
Author

ansencumt commented Sep 6, 2017

Yes, that is right.
but even if I replace ${workspaceRoot} to e:\Work\yunkai\robot, it also can not debug.

@ramya-rao-a
Copy link
Contributor

I have a fix in master, can you try it out?

You will need to download https://github.com/Microsoft/vscode-go/blob/master/Go-latest.vsix and then run code --install-extension Go-latest.vsix from the location where you downloaded that file.
Then reload VS Code window

@ramya-rao-a
Copy link
Contributor

@ansencumt Does the fix in #1196 (comment) work for you?

@ramya-rao-a
Copy link
Contributor

The fix for this issue has been released with the latest update to the Go extension (0.6.65)

@ansencumt
Copy link
Author

The Go extension(0.6.65) work fine. Thx

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants