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

Solargraph: .vim/bundle/lsp_signature.nvim/lua/lsp_signature.lua:168: attempt to get length of field 'parameters' (a nil value) #42

Closed
renatolond opened this issue Jul 9, 2021 · 2 comments

Comments

@renatolond
Copy link

Build info:

NVIM v0.5.0
Build type: Release
LuaJIT 2.0.5

I have lspconfig setup with https://github.com/hrsh7th/nvim-compe and solargraph
With a ruby script like so:

# frozen_string_literal: true

puts()

Trying to see the signature for puts returns

Error executing vim.schedule lua callback: ...ond/.vim/bundle/lsp_signature.nvim/lua/lsp_signature.lua:168: attempt to get length of field 'parameters' (a nil value)

I tried positioning the cursor after the ( and then doing lua require'lsp_signature'.signature(), and it gives me the same error.

@mortezadadgar
Copy link

mortezadadgar commented Jul 9, 2021

facing exact same issue with solargraph configured as lsp

@ray-x
Copy link
Owner

ray-x commented Jul 9, 2021

Has some fix for this.
But FYI, solargraph does support active parameter. The LSP does not event provide parameter... So the plugin can only show signature without highlight.

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