Skip to content
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

Plugin does not works with nvim_jdtls #141

Closed
rishabh3 opened this issue Dec 19, 2021 · 5 comments
Closed

Plugin does not works with nvim_jdtls #141

rishabh3 opened this issue Dec 19, 2021 · 5 comments

Comments

@rishabh3
Copy link

I use nvim_jdtls for java integration and tried to use this plugin. I have added the code require'lsp_signature'.on_attach() in jdtls on_attach function, but this plugin always gives the following error.
Error executing vim.schedule lua callback: ...cker/start/lsp_signature.nvim/lua/lsp_signature/init.lua:221: attempt to index local 'actSig' (a nil value) stack traceback: ...cker/start/lsp_signature.nvim/lua/lsp_signature/init.lua:221: in function 'handler' ...l/Cellar/neovim/0.6.0/share/nvim/runtime/lua/vim/lsp.lua:957: in function 'cb' vim.lua:285: in function <vim.lua:285>
I know this plugin does not support nvim_jdtls, but can this be added as enhancement or this is something not feasible?

@andersevenrud
Copy link

I get a very similar error with omnisharp/mono but only sometimes.

Error executing vim.schedule lua callback: ...cker/start/lsp_signature.nvim/lua/lsp_signature/init.lua:221: attempt to index local 'actSig' (a nil value)
stack traceback:
        ...cker/start/lsp_signature.nvim/lua/lsp_signature/init.lua:221: in function 'handler'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:964: in function ''
        vim.lua: in function <vim.lua:0>

@ray-x
Copy link
Owner

ray-x commented Dec 19, 2021

Please check this issue: #97
I think jdtls dose not enable active parameter by default. You need to setup the jdtls to enable it.
As for omnisharp, would you send me the function signature so I can reproduce it? I think it might be incorrect format of omnisharp response. thanks!

@andersevenrud
Copy link

andersevenrud commented Dec 19, 2021

@ray-x

Created a new issue for this: #142

@rishabh3
Copy link
Author

rishabh3 commented Dec 20, 2021

Hi @ray-x ,
I did try to go through the issue you had tagged, in your previous comment. What I see is that although I have signature help enabled, I still see the same issue I have reported above when I add the require'lsp_signature'.on_attach() call in my jdtls config.
Here is a link to my java config: https://github.com/rishabh3/nvim/blob/new_structure/ftplugin/java.lua#L85
I do get lsp_signature from jdtls and the documentation as well, but it does not work with this plugin.

@rishabh3
Copy link
Author

Updating the plugin works, seems i was running some old version or something was missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants