You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GOPATH=$PWD/go
cd go/src/github.com/DazWilkin/basic-personality
GO111MODULE=on go get ./...
code --new-window .
What did you expect to see?
No import errors.
Ability to navigate to godocs
Code completion|help
What did you see instead?
And both the non-standard library imports error:
could not import github.com/google/trillian (no parsed files for package github.com/google/trillian)
could not import google.golang.org/grpc (no parsed files for package google.golang.org/grpc)
If, instead, I import old-school:
GO111MODULE=off go get ./...
It works.
I suspect I'm missing something either with this solution or with Go Modules (or both) but I'm expecting to be able to use the Go Modules (GO111MODULE=on) approach with this solution.
Is it because I'm still working under ${GOPATH} and have it set?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Updated VS Code settings per instructions:
https://github.com/Microsoft/vscode-go/wiki/Go-modules-support-in-Visual-Studio-Code
https://github.com/golang/go/wiki/gopls#vscode
go.mod:
What did you expect to see?
What did you see instead?
And both the non-standard library imports error:
If, instead, I import old-school:
It works.
I suspect I'm missing something either with this solution or with Go Modules (or both) but I'm expecting to be able to use the Go Modules (GO111MODULE=on) approach with this solution.
Is it because I'm still working under
${GOPATH}
and have it set?Perhaps related to #32762 ?
The text was updated successfully, but these errors were encountered: