golang/go

x/tools/gopls: nil deref panic in go.test code action

Closed this issue · 3 comments

Change https://go.dev/cl/658556 mentions this issue: gopls/internal/golang: fix crash in source.test code action

As I commented on the CL, I don't think this is that surprising. needPkg was added recently, and only matters if invoked with an only= filter that excludes other code actions requiring a package.

Thanks for the fix.