ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.07k stars 57 forks source link

malformed pattern (missing ']') #165

Closed baltitenger closed 2 years ago

baltitenger commented 2 years ago

I'm getting the following error while using omnisharp (c#):

Error executing vim.schedule lua callback: .../plugged/lsp_signature.nvim/lua/lsp_signature/helper.lua:435: malformed pattern (missing ']')
stack traceback:
        [C]: in function 'match'
        .../plugged/lsp_signature.nvim/lua/lsp_signature/helper.lua:435: in function 'cal_woff'
        ...im/plugged/lsp_signature.nvim/lua/lsp_signature/init.lua:326: in function 'handler'
        /usr/share/nvim/runtime/lua/vim/lsp.lua:964: in function 'cb'
        vim.lua:285: in function <vim.lua:285>

Example situation when this happens:

string[] foo() { ... }

string bar = foo(|

(the | is the cursor)

ray-x commented 2 years ago

I tried a few times but til failed to install omnisharp on my laptop. Could you enable debug mode and send me the logs?

baltitenger commented 2 years ago

Sorry, I forgot about this :)

lsp_signature.log

ray-x commented 2 years ago

Should be fixed.