ray-x / lsp_signature.nvim

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

lsp_signature.nvim/lua/lsp_signature/helper.lua:633: col value outside range #212

Closed vanarok closed 2 years ago

vanarok commented 2 years ago

Error executing vim.schedule lua callback: ...cker/opt/lsp_signature.nvim/lua/lsp_signature/helper.lua:633: col value outside range stack traceback: [C]: in function 'nvim_buf_set_extmark' ...cker/opt/lsp_signature.nvim/lua/lsp_signature/helper.lua:633: in function 'highlight_parameter' ...packer/opt/lsp_signature.nvim/lua/lsp_signature/init.lua:501: in function 'handler' /usr/share/nvim/runtime/lua/vim/lsp.lua:1370: in function '' vim/_editor.lua: in function <vim/_editor.lua:0> 2022-08-13T13:25:11,199345723+04:00 In this buffer i have lsp servers copilot, null_ls, volar It's annoying, I don't know what to do.

vanarok commented 2 years ago

lsp-signature.log

vanarok commented 2 years ago
NVIM v0.8.0-dev-818-g0d9e09bf6
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-10 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/cmake.config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az241-479
ray-x commented 2 years ago

|3: { activeParameter = 0, activeSignature = 0, signatures = { { documentation = "", label = "string[] foo()", parameters = {} } } } seems the log and your function likecomment() not match. foo() also throws an error as well?

vanarok commented 2 years ago

lsp-signature.log

vanarok commented 2 years ago

2022-08-15T14:34:41,678055220+04:00

vanarok commented 2 years ago

|3: { activeParameter = 0, activeSignature = 0, signatures = { { documentation = "", label = "string[] foo()", parameters = {} } } } seems the log and your function likecomment() not match. foo() also throws an error as well?

I don't have such a function foo(), no idea where it comes from in the logs. In fact, there are a lot of places where this error occurs.

ray-x commented 2 years ago
image

If the signature is URL, it looks good to me.

For some reason, volar can not start on my laptop. I am using vuels.

ray-x commented 2 years ago

As the line in your screenshot is a debug log. So I remove it in https://github.com/ray-x/lsp_signature.nvim/commit/e65a63858771db3f086c8d904ff5f80705fd962b Would you give it a try?

vanarok commented 2 years ago

I don't notice an error in either likeComment() or new URL(), So far, it's working smoothly. Thank you.