x/tools/gopls: Error in newest VSCode: You are outside of a module and outside of $GOPATH/src #46625
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
I am currently developing a library that is used by another CLI application. For this, we are using Go as language and VSCode as the main IDE.
Since the latest update I am getting an error, and thus autocompletion does not work anymore. Furthermore, saving takes several seconds.
The project is located in the following directory on my Mac:
~/go/src/github.com/kyma-project/hydroform
What did you expect to see?
No Error, autocompletion, and fast saving.
What did you see instead?
The following Error.
Error loading workspace: You are outside of a module and outside of $GOPATH/src. If you are using modules, please open your editor to a directory in your module. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new.
The text was updated successfully, but these errors were encountered: