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: reloading metadata for test packages fails (internal/lsp/cmd) #36556
https://golang.org/cl/214717 should not be necessary. It seems that there are
This could also be tied to the fact that we are using a real module in go/packages/packagestest, because there were a number of errors that looked like:
It looks like we invalidate metadata because the initial workspace diagnostics have not completed before the snapshot is cloned, so none of the files have "known" file handles. Therefore, all of the tests effectively run from scratch. The real fix here would be to make sure at least the package handles are created before the initial workspace load is considered complete. I wonder if that will have a noticeable effect in the editor.