Closed chrisnappin closed 2 years ago
Hi @chrisnappin , yes the plugin explicitly set GO111MODULE=on
if
So if you don't need go module on, please consider disabling those 2 places.
Yes, we have those settings off. GO111MODULE=off is set as a global environment variable, and "Enable Go modules integration" is disabled in the GoLand IDE for each project we setup. However the plugin doesn't pick this up and doesn't work. I've restarted GoLand as a whole several times?
If I run "go env" in a GoLand terminal window it also reports "GO111MODULE=off" so I am confident the global environment variable is set.
Our code builds in GoLand, so I am confident the "Enable Go modules integration" option is disabled, because without that GoLand doesn't compile our imports properly.
thanks, seems a bug, checking
Hi @chrisnappin , does the latest release fixed this problem?
Brilliant, yes @xxpxxxxp this issue is now resolved in the v1.6.1 release.
Many thanks for the prompt fix, we're now able to use the plugin!
Hi,
I'm using v1.6.0 of the plugin with GoLand 2022.2.2 (Build #GO-222.3739.57 built on August 16,2022) and we're getting the commonly reporting "Go linter running error Please make sure no syntax or config error, then run 'go mody tidy' to ensure deps ok" error.
Our environment is as follows:
Our project builds and runs within GoLand and at the command line, and golangci-lint happily runs at the command line.
The IDE error log is as follows (some details anonymised):
I notice that the plugin seems to be setting GO111MODULE=on??