neoclide / coc-java

Java extension for coc.nvim
Eclipse Public License 1.0
453 stars 39 forks source link

Workspace symbols and tagFunc do not work with coc-java #80

Closed rickysaurav closed 4 years ago

rickysaurav commented 4 years ago
chemzqm commented 4 years ago

It's expected.

rickysaurav commented 4 years ago

Is there a way to get workspace symbols via jdt.ls in coc.nvim ? I think the language server supports workspaceSymbols.I have used it via emacs lsp-java previously. Is there a specific reason it doesn't work with coc.nvim?

chemzqm commented 4 years ago

Should be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel. You may using different version of jdt.ls or your emacs does workpsace symbols support without jdt.ls.

rickysaurav commented 4 years ago

I am using the latest release of jdt.ls, I am pretty sure emacs does not support workspace symbols of its own via lsp. I just tested workspace symbol with vscode-java, it seems to support workspace symbols. I'll try to post the communication traces via coc.nvim and vscode.

chemzqm commented 4 years ago

Hm, I found it's registered in request from jdt.ls.

chemzqm commented 4 years ago

Fixed on latest release branch of coc.nvim.

rickysaurav commented 4 years ago

Tested. Works as expected. Thanks for the prompt response. Cheers.

rickysaurav commented 4 years ago

Do we have a fix for CocTagFunc for coc-java or is it the expected behaviour?

chemzqm commented 4 years ago

CocTagFunc works as expected for me, try test goto definition feature first. Also checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel