mfussenegger / nvim-jdtls

Extensions for the built-in LSP support in Neovim for eclipse.jdt.ls
GNU General Public License v3.0
1.05k stars 61 forks source link

vim.lsp.buf.definition could cause nvim to crash from 0.8.1 #445

Closed qianwch closed 1 year ago

qianwch commented 1 year ago

LSP client configuration

I am using nvim-jdtls. And I will call lua vim.lsp.buf.definition() to navigate classes. But it will cause nvim to crash from nvim 0.8.1 to 0.8.2, it is fine with 0.8.0. Here is the log: image

BTW: it is a Mac os 13.2.1 box

Eclipse.jdt.ls version

No response

Steps to Reproduce

Open any java spring project, move cursor any Jdt or Spring library class. Call lua vim.lsp.buf.definition(), nvim 0.8.1~0.8.3 will crash.

Expected Result

Just jump to the library class.

Actual Result

Nvim crashed!

mfussenegger commented 1 year ago

vim.lsp.buf.definition is implemented in neovim core, not in this plugin.

You'll have to report it there. Ideally with a core dump and git bisect to find the offending commit.