New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: Your workspace is misconfigured: <package> has no metadata. #38201
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
I'm not able to reproduce this. Can you share the output of |
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. |
This warning should've been removed in |
I likewise haven't seen this issue crop up since updating |
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. Thanks. Henry |
@henryas: There's no problem with the structure of your code, this is a |
@stamblerre Many thanks. It fixed the problem. |
Upgrading resolved the issue for me as well. |
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
test/extended
package with error in $subject.What did you expect to see?
Successful compilation
What did you see instead?
"Your workspace is misconfigured" message. This did not exist in prior versions of gopls.
Build info
Go info
The text was updated successfully, but these errors were encountered: