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: gopls reports Internal error when run from Emacs' eglot #39896
I'm new to eglot (an Emacs interface to language servers), gopls, and Go modules, so I'm not sure how to debug this.
What did you do?
This happens whenever I start eglot from within Emacs on my machine at home.
This happens all the time, but here's a simplfiied version:
If you aren't an Emacs user, this starts Emacs bypassing my config file, inits the package manager (so eglot, an add-on is available), does the same with go-mode. Load any Go file and turn eglot on, and it fails.
What did you expect to see?
Eglot start up and be able to call various language server features.
What did you see instead?
Emacs shows an error, and reports this in its internal log:
[eglot] Connected! Server
If I go a step further, and enable the -rpc.trace option, I can get the following in gopls' log file. In this case, I was trying to run eglot on .../godoc/godoc.go, but I got this to happen on everything I tried to attach to.
At @heschik's suggestion, I wonder if this error response comes from the