gopls times out when using :lsp-restart #13418
Unanswered
Nintron27
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Many times I need to run
:lsp-restart
while working in Go, as I have sqlc generated files that change. I noticed that recently though if I run:lsp-restart
the Go LSP never finishes reloading, and instead I get timed out errors. However, if I run:lsp-restart
then followed up with:set-language go
it will restart the LSP correctly and work fine. This is an annoying fix though, and it only fixes the current buffer, so I must run:set-language go
on every single open buffer that I am working in.My
languages.toml
is unchanged (as far as Go goes with gopls). My gopls version isv0.18.1
and my Helix version is25.01.1 (e7ac2fcd)
.I feel like it only started happening in the last update or two to Helix (and or gopls). I may try reverting back a few versions and see if it is fixed, if I do this, I'll post an update.
helix.log
Restarting the LSP, and then trying to read the hover documentation provides this error:

Beta Was this translation helpful? Give feedback.
All reactions