x/tools/gopls: Your workspace is misconfigured: <package> has no metadata. #38201
Please answer these questions before submitting your issue. Thanks!
What did you do?
VS Code Go extension, attempts to compile the openshift/origin repo. Fails to compile the
What did you expect to see?
What did you see instead?
"Your workspace is misconfigured" message. This did not exist in prior versions of gopls.
The text was updated successfully, but these errors were encountered:
I'm also getting this error. What part of the check command do you need to see? I can't post the whole thing because it's an internal project.
I can't seem to reproduce the issue after the one time it happened, and I don't see anything interesting in the check command.
I believe this happened when I opened a new _test.go file in an existing package.
I have been having this problem lately. I have updated my go tools but the problem persists. Here is my error message:
The code in the workspace failed to compile (see the error message below). If you believe this is a mistake, please file an issue: https://github.com/golang/go/issues/new. github.com/henryas/gobootstrap/components/texts [github.com/henryas/gobootstrap/components/texts.test] has no metadata
I wonder what that github.com/henryas/gobootstrap/components/texts.test is all about. I write the tests inside the package texts as under package texts_test. Is this the root of the problem?
I wonder whether everybody else is having this problem.