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.
The text was updated successfully, but these errors were encountered:
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