x/tools/gopls: opening an empty file crashes when gc_details is enabled #54199
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
When the gc_details codelens is enabled, asking for codelenses on an empty buffer crashes gopls due to a position error. This is a regression since v0.9.0, bisected to https://go.dev/cl/409935 (before that CL it was a bug report, so the root cause is likely to predate v0.9.0, but the crash is a regression).
Have a repro'ing regtest. Will send a fix.
The text was updated successfully, but these errors were encountered: