Skip to content

Lsp signature fails for Solargraph #162

@pBorak

Description

@pBorak

Describe the bug
With LSP signature help enabled there's an error for some LSP, namely Solargraph. The issue is well-known issue and comes down to how Solargraph reports activeParamete. Some users have already reported it in another nvim plugin that gives this signature help functionality here and here.

To Reproduce
Steps to reproduce the behavior:

  1. Trigger LSP signature in Ruby file with Solargraph LSP.

Expected Behavior
Lsp signature pop-ups without highlighting active parameters.

Screenshots

Screenshot 2022-10-29 at 09 27 56

Noice Log
Please include any related errors from the Noice log file. (open with :Noice log)

Noice log

Sat Oct 29 09:27:53 2022
...e/pack/packer/opt/noice.nvim/lua/noice/lsp/signature.lua:118: attempt to index field 'parameters' (a nil value)

stack traceback:
[C]: in function 'pcall'
.../site/pack/packer/opt/noice.nvim/lua/noice/util/call.lua:140: in function '__index'
...e/pack/packer/opt/noice.nvim/lua/noice/lsp/signature.lua:118: in function 'active_parameter'
...e/pack/packer/opt/noice.nvim/lua/noice/lsp/signature.lua:155: in function 'format_signature'
...e/pack/packer/opt/noice.nvim/lua/noice/lsp/signature.lua:169: in function 'format'
...m/site/pack/packer/opt/noice.nvim/lua/noice/lsp/init.lua:193: in function <...m/site/pack/packer/opt/noice.nvim/lua/noice/lsp/init.lua:179>
[C]: in function 'xpcall'
.../site/pack/packer/opt/noice.nvim/lua/noice/util/call.lua:145: in function 'signature'
...e/pack/packer/opt/noice.nvim/lua/noice/lsp/signature.lua:91: in function 'handler'
...w/Cellar/neovim/0.8.0/share/nvim/runtime/lua/vim/lsp.lua:1390: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions