Closed AnthonyPoschen closed 1 week ago
i have experimented with my config to ensure i don't need custom tags, and now with a proper schemastore setup for cloudformation the results when trying to view docs is still presenting errors when selecting autocompletes for doco on schemastore output from yamlls
stack traceback:
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:161: in function 'get_code_block_range'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:217: in function 'extract_detail_from_doc'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:20: in function 'render_detail_and_documentation'
...m/lazy/blink.cmp/lua/blink/cmp/windows/documentation.lua:61: in function 'fn'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:86: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'resolve'
...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130: in function <...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130>
Error 17:31:21 msg_show.lua_error Error executing vim.schedule lua callback: ...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:161: attempt to index local 'line' (a nil value)
stack traceback:
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:161: in function 'get_code_block_range'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:217: in function 'extract_detail_from_doc'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:20: in function 'render_detail_and_documentation'
...m/lazy/blink.cmp/lua/blink/cmp/windows/documentation.lua:61: in function 'fn'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:86: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'resolve'
...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130: in function <...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130>
Error 17:31:23 msg_show.lua_error Error executing vim.schedule lua callback: ...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:161: attempt to index local 'line' (a nil value)
stack traceback:
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:161: in function 'get_code_block_range'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:217: in function 'extract_detail_from_doc'
...e/nvim/lazy/blink.cmp/lua/blink/cmp/windows/lib/docs.lua:20: in function 'render_detail_and_documentation'
...m/lazy/blink.cmp/lua/blink/cmp/windows/documentation.lua:61: in function 'fn'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:86: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'cb'
.../nvim/lazy/blink.cmp/lua/blink/cmp/sources/lib/async.lua:44: in function 'resolve'
...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130: in function <...zy/blink.cmp/lua/blink/cmp/sources/lib/provider/init.lua:130>
edit: more context below
https://github.com/user-attachments/assets/7f028483-21bd-47f9-8b69-b4ad4f72b230
Thanks for the detailed report! This seems like a duplicate of #270, main
should be working
Make sure you have done the following
blink.cmp
Bug Description
when opening documentation in yaml the following error occurs when custom yamlls tags are configured
minimum reproduction yml file ( realistically it can be anything even an empty file )
when documentation is opened for anything in yaml via autoshow or keypress if the list will present the custom yaml tags the above error log will appear.
those yaml tags that cause the issue is defined inside my mason-lspconfig with the following yamlls config
the config above is for removing errors when writing cloudformation for aws.
Relevant configuration
neovim version
NVIM v0.10.2 Build type: Release LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info
blink.cmp
version: branch, tag, or committag v0.5.1