x/tools/gopls: embed errors don't always appear #44342
Open
Comments
Lines 174 to 273 in c73232d |
Change https://golang.org/cl/295415 mentions this issue: |
Change https://golang.org/cl/295412 mentions this issue: |
Change https://golang.org/cl/296549 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This program shows no error on the embed pattern:
When I add an import, the error appears, but only if it's not in the stdlib:
At first I thought this was because we should invalidate metadata when a
//go:embed
comment changes, but even when I restart gopls the IWL doesn't pick up the error. So there's something weird going on here that I didn't dig into. (We should probably still invalidate metadata on embed comment changes, or implement embed pattern checking ourselves.)Reported by @myitcv in Slack.
The text was updated successfully, but these errors were encountered: