-
Notifications
You must be signed in to change notification settings - Fork 646
When gopkgs
fails to get packages, there is no user notification
#1471
Comments
Hi @ramya-rao-a, I made some changes for this issue but before a PR, I am trying to test/debug locally. Can you suggest a way to get I tried renaming the Then tried ^Space, and actually it looks like I'm still able to get import suggestions somehow, but no console message: Also played with GOPATH a bit but really just not sure how to simulate this issue. Thanks very much for your work on this plugin! |
Not sure how to make it fail. The empty result will happen only when there is no packages on the GOPATH or GOROOT, which kind a weird. This is more like a panic mode, things that impossible. It is possible but the go extension will also fail. But if really want to make it fail
|
Or maybe modify |
…icrosoft#1471" This reverts commit 801ac6f.
Two commits more than it should've taken but I think I got it. Thanks for the tips @ramya-rao-a and @uudashr! Hacking |
gopkgs
is used to get packages that are used bu the auto-completion feature to provide the completions for unimported packages. Whengopkgs
fails, we log a message to the console (See https://github.com/Microsoft/vscode-go/blob/0.6.72/src/goPackages.ts#L103).This is not enough, there should be a user notification about the same.
gopkgs
gets called for every auto-completion request, but this error should not be notified for every request. Once for a VS Code session will do.PRs are welcome
The text was updated successfully, but these errors were encountered: