Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: show error message if nested module is not root #38089
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.
What did you expect to see?
The following types are resolved without errors:
What did you see instead?
Undefined errors on each types.
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