Home > Blockchain >  gopls returns the error "gopls: no packages returned: packages.Load error" for github.com/
gopls returns the error "gopls: no packages returned: packages.Load error" for github.com/

Time:04-08

I've checked out the main branch of enter image description here

From the command line, if I try to gopls that file, I get a similar error:

> gopls check functional_consumer_group_test.go 
gopls: no packages returned: packages.Load error

I suspect this has something to do with the build constraints (enter image description here

CodePudding user response:

Have you tried go clean -cache?

And this link may help: https://github.com/golang/go/issues/42353

  • Related