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
I've opened an issue here microsoft/vscode-go#2579
It seems that the current directory while running gopls is very important.
If the current directory is not inside my project, gopls doesn't work.
I guess it's used in order to find the go.mod file.
What did you expect to see?
gopls should run even if the current directory is not inside my project.
What did you see instead?
See the other Github issue.
The text was updated successfully, but these errors were encountered:
@pierrre: In your linked issue, you mentioned working in a directory outside your $GOPATH, which leads me to believe that you are using modules. In this case, you will need to open each module root as a separate workspace root. VSCode-Go sends a "rootURI" to gopls on initialization, which gopls treats as the module root. We hope to improve the user experience for editing multiple modules simultaneously in the future (see #32394).
What version of Go are you using (
go version
)?go1.12.6 linux/amd64
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I've opened an issue here microsoft/vscode-go#2579
It seems that the current directory while running gopls is very important.
If the current directory is not inside my project, gopls doesn't work.
I guess it's used in order to find the
go.mod
file.What did you expect to see?
gopls should run even if the current directory is not inside my project.
What did you see instead?
See the other Github issue.
The text was updated successfully, but these errors were encountered: