x/tools/gopls: panics on master when attempting to jump to a definition in a module not in a loaded workspace #37045
Please answer these questions before submitting your issue. Thanks!
What did you do?
attempting to follow a definition to a function in a module not in a loaded workspace
What did you expect to see?
either for it to work, or not to work (maybe with an info message if not working)
What did you see instead?
gopl crashes. I have enabled -rpc.trace.
the immediate error is
The text was updated successfully, but these errors were encountered:
I'm getting this as well. Notably, if you then restart
Add regression tests for GoToDefinition. In particular, exercise the panic from golang/go#37045. Updates golang/go#37045 Updates golang/go#36879 Change-Id: I67b562acd293f47907de0435c14b62c1a22cf2ee Reviewed-on: https://go-review.googlesource.com/c/tools/+/218322 Run-TryBot: Robert Findley <email@example.com> TryBot-Result: Gobot Gobot <firstname.lastname@example.org> Reviewed-by: Rebecca Stambler <email@example.com>