3
hinst
2y

I've got a question for people who understand GO:

Why do I get this error in one of my projects but not in the other?

> gopls requires a module at the root of your workspace

Both projects lack module at the root of my workspace, but only one of them refuses to cooperate...

Bother.

Comments
  • 0
    There is not enough info to help you.
    Try to isolate the problem in another project.
  • 1
    Have never seen error before unfortunately. I can imagine that you either need to have a valid go.mod file set up or the project needs to be in the appropriate place in $GOPATH
Add Comment