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/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
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 <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Rebecca Stambler <firstname.lastname@example.org>