-
Notifications
You must be signed in to change notification settings - Fork 18k
x/tools/gopls: show error message if nested module is not root #38089
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
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. |
Thanks for the detailed report! This issue is due to the fact that the metrics directory is a nested module. Right now, I know that this is not the ideal behavior, and we are working on resolving this issue for |
Actually, I'll reopen this issue for now - we should show a better error message in this case. |
@stamblerre Thank you for the work around. It worked! |
We are moving towards eliminating this issue with #37720 coming the near future, so I think this is no longer necessary. |
Awesome! |
Please answer these questions before submitting your issue. Thanks!
What did you do?
I was developing a new package on VSCode + gopls and found VSCode constantly shows undefined error though they are defined in the package.
Reproducible code sets are here.
https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/tree/b628ab9ba3d8fe893ed9dcb63d07a75fe56a8b10
What did you expect to see?
The following types are resolved without errors:
options
in metrics.go L69labelValue
in metrics.go L90 and so on. (InnewMetricsExporter
)sanitize
in metrics.go L102What did you see instead?
Undefined errors on each types.
Build info
Go info
The text was updated successfully, but these errors were encountered: