Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: add regtests for adding/deleting files #38407
What version of Go are you using (
I'm not able to reproduce this - this is the error I see:
What directory did you have open when you saw this? It's possible that if the file wasn't in the directory at the root of your workspace, then
If you still have the full logs for this, those would be helpful to see.
Hey @stamblerre, thanks for the quick response!
I'm not quite up on the lingo for what a VSCode Workspace means, but here's my project's directory structure. I opened it with
The file with the syntax error is
I'm sadly not able to reproduce this issue reliably and I don't have the logs anymore. If I open VSCode fresh, it does properly show the error:
What I can say is that over time, as I'm adding and deleting files, it eventually stops reporting. It sounds like 0.5.0 might provide a solution for this issue?
Also let me know if you need more from me or if you already know what the issue is. I can try and create a better reproduction.
Ah, ok so then it looks like your workspace is configured correctly and the diagnostics should be propagating. In the future when this happens, I'd suggest capturing detailed
The process of cache invalidations after adding and deleting files is not perfect yet, so it's likely that that was the cause. I will be adding more integration tests soon, so I'll retitle this issue to make sure I add a few cases for adding and deleting files.