mfussenegger / nvim-jdtls

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

Goto definition of external libraries not working #532

Closed paulkre closed 1 year ago

paulkre commented 1 year ago

LSP client configuration

nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition')

Eclipse.jdt.ls version

1.25.0

Steps to Reproduce

When I try to access the definition of a symbol defined in an external library with vim.lsp.buf.definition nothing happens. It works as expected when I run the function on symbols defined in the local project.

It should be possible to reproduce this by running gd on the String class from Java's standard library.

Expected Result

The definition of the String class should be opened in a new buffer.

Actual Result

Nothing happens (not even an error).

mfussenegger commented 1 year ago

Works fine for me. Check the logs and troubleshooting steps

paulkre commented 1 year ago

Whoops I thought this was the Mason plugin. Works now, thanks!