-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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/internal/lsp: crash on acme-lsp startup #34212
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting section of the gopls Wiki page, and make sure that you have provided all of the relevant information here. |
Looks like acme-lsp is sending a didopen call before initialized, which it is not allowed to do. |
Thanks, I'll take this over to the acme-lsp issue. |
We need to send a `initialized` notification after we receive the result of `initialize`. The spec doesn't mention anything about this in the [initialize](https://microsoft.github.io/language-server-protocol/specification#initialize) section, but it's documented here: https://microsoft.github.io/language-server-protocol/specification#initialized Fixes #16 Update golang/go#34212
acme-lsp wasn't sending the
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When using acme-lsp with gopls, gopls crashes with a panic on startup.
What did you expect to see?
Not to panic.
What did you see instead?
A panic:
This appears to be caused by this recent change. Gopls works fine with acme-lsp on the commit prior.
The text was updated successfully, but these errors were encountered: