x/tools/gopls: VS Code extension showing warning in Terratest #38590
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.
Milestone
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 Go VS Code extension are you using
0.14.0
What did you do?
I am working on Terratest, and therefore my directory looks more or less like this:
I have VS Code open at the
terraform
directory level, I am working in themain_unit_test.go
file.What did you see?
A warning:
You are neither in a module nor in your GOPATH. If you are using modules, please open your editor at the directory containing the go.mod.
What did you expect to see?
Go
extension in VS Code working properly. Mygo.mod
file is buried in a subdirectory, but I'm not able to open VS Code in that directory - I need to see the files I'm working on outside of thetest
directory. I wish there was a way to configure the extension to look forgo.mod
somewhere else.The text was updated successfully, but these errors were encountered: