x/tools/gopls: neovim vim.lsp.buf.server_ready() crashes gopls server #43462
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What did you do?
Running neovim's
vim.lsp.buf.server_ready()
crashes the gopls server. The payload appears to send parameters of unexpected type, causing a panic to happen during interface assertion for nonstandard requestsTo reproduce, we can start neovim with this minimal config
edit a
.go
file, and run:echo luaeval('vim.lsp.buf.server_ready()')
. The result should returntrue
and gopls should crash. We can see Neovim's debug log by runningWhat did you expect to see?
The server should not panic and should instead return an error
What did you see instead?
Here's the stack trace from neovim:
Build info
I am on commit
63754364767c38e3e7b8aa74d2e3b2342e49ee76
The text was updated successfully, but these errors were encountered: