-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: -remote causes the first run with Helix to not work for a few seconds #70298
Comments
FYI @findleyr I'm happy to share screen recordings or do a brief video call if you would like me to show this behavior, get you more detailed logs, or try different things. For now, as Alan suggested, I no longer use |
@mvdan I think in general we do not need to advertise I'd also like to prioritize switching to jsonrpc2_v2 over this, since it may affect the symptoms (I almost got it working in my idle time a couple weeks ago: #52838 (comment)). |
Thank you for the report though: |
One further quick thought: I might try running gopls in a terminal with
|
Yes, my use of I'll try your suggestions and report back. |
With
|
I should note that this is perhaps different from |
I mostly agree with removing Yes, it sounds like the problem may be in the initial connection to the auto-started daemon. |
If we are deprecating or removing -remote=auto then I'm perfectly fine to close this as won't fix - and perhaps one more reason why it should go away. I definitely won't use this mode again, so I don't care that the bug exists at all. |
What did you do?
Running gopls with https://helix-editor.com/ and with
-remote=auto
, I open a Go file inside a Go module for the first time without gopls already running in remote mode, and ask gopls a question very quickly, such as go-to-definition or the workspace symbol picker.What did you expect to see?
It should work, even if it takes a few seconds to give an answer due to the LSP loading the module.
What did you see instead?
An error from Helix:
This error seems to come from the editor, so it may not be a gopls bug. However, if I remove
-remote=auto
as suggested by @alandonovan, then the bug disappears - I can kill gopls, open a file and very quickly list all workspace symbols, and the UI pops up immediately without a problem, even if it takes a couple of seconds for the symbols to show up.Presumably an editor like Helix starting the LSP causes a handshake to happen for the editor to know which features the LSP supports, so I wonder if this doesn't work too well when
-remote=auto
is used, causing the editor to think a Go LSP is not supported or present while it is still loading.Build info
The text was updated successfully, but these errors were encountered: