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/cmd/gopls: inconsistent results from Completion #31822
What version of Go are you using (
Actually this is my mistake. I misread the test failure I was getting. The test failure was actually in a test that verifies completion results post a file outside the editor being changed.
It's highly likely the test was being flakey because of a race between the handling of a the file watcher event and the completion request.
"Fixed" by adding a generous sleep: