-
Notifications
You must be signed in to change notification settings - Fork 797
tools: replace use of 'gopkgs' with 'go list all' #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Change https://golang.org/cl/240001 mentions this issue: |
Thanks @marwan-at-work for investigation and offering the fix. I want to know if I understand the issue right - since I can't reproduce the issue myself yet. Here is the screenshot. What's the gopkgs version? $ go version -m ~/go/bin/gopkgs |
and here's what i get when trying to run the command: |
@marwan-at-work thanks - interesting. So, does Also confirm that you do not have any special settings enabled, and the extension is using the In general, I think switching to |
Hi there, the reason why we create and use Nowadays after cleanup by go installation, using On my machine there are 393 packages inside gopath and goroot
|
Change https://golang.org/cl/379235 mentions this issue: |
I think golang/go#48545 should close out this issue as well? cc: @hyangah |
Change https://golang.org/cl/379494 mentions this issue: |
For #258 Change-Id: I37b00f29bf9bc2d3fee789c3e187a8d8f1efd847 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/379235 Trust: Jamal Carvalho <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]>
Change https://golang.org/cl/382475 mentions this issue: |
Removed remaining references in the codebase to gopkgs. For #258. Change-Id: I9257b87316f193f960bd121bfdcc5cd890ac73d4 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/382475 Trust: Jamal Carvalho <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
This is finished with CL 382457. |
|
Currently, if you
cmd+shift+P
and chooseGo: Add Import
. The list of imported file looks incorrect. For example, packages within the same module do not show up.To reproduce, go into a module repo such as
golang.org/x/tools
and open a Go file such asinternal/lsp/source/rename.go
.Try to run the
Go: Add Import
and notice the list does not include most of the packages that you expect within thetools
repo. Or even sometimes you get this error:As a solution, I don't think we have to call out into
gopkgs
anymore as we can just callgo list
directly to get all importable paths within a directory.The text was updated successfully, but these errors were encountered: