x/tools/gopls: can't add new file to existing package #35605
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
On master (4191b8c) when I add a new file to an existing package I get
no ParseGoHandle for file://...
when I try to use gopls functionality in the new file.Note that in my editor the new file comes pre-populated with the package name based on the file's directory name (i.e. the bug only reproduces if the initial "didOpen" message already contains the "package foo" line). If I subsequently edit the package name then the file gets loaded normally.
Below is an RPC trace starting from opening the new file through the first "no ParseGoHandle" error:
The text was updated successfully, but these errors were encountered: