#"gopls was not able to find modules in your workspace"

5 messages · Page 1 of 1 (latest)

deep flower
#

I'm using vscode and got this when attempting to create a new project in GOPATH/fuzz
I read online that the issue can be circumvented by adding "build.experimentalWorkspaceModule": true to gopls but i wanted to verify this is the actual solution and not something that would cause me issues later on.

#

all that was done

#

i'm still inside gopath so i don't understand the issue

vivid fractal
#

It isn't necessary create your modules inside the Gopath, you can create them in any folder with the command go mod init .....name...... I don't use VsCode but I think you are opening the folder Go like your workspace but you need to open the folder fuzz like your workspace because there you have the go.mod file.

lone creek
#

Could you share your go.mod file?