luckasRanarison / nvim-devdocs

Neovim DevDocs integration
MIT License
270 stars 20 forks source link

`:DevdocsInstall cpp` raises `attempt to perform arithmetic on local 'cod_len' (a nil value)` #32

Closed Pagliacii closed 1 year ago

Pagliacii commented 1 year ago

Just run :DevdocsInstall cpp, and this error occurred:

   Error  15:58:22 msg_show.lua_error Error executing vim.schedule lua callback: ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/transpiler.lua:340: attempt to perform arithmetic on local 'col_len' (a nil value)
stack traceback:
    ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/transpiler.lua:340: in function 'eval_table'
    ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/transpiler.lua:225: in function 'eval'
    ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/transpiler.lua:388: in function 'fn'
    ...t/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:472: in function 'for_each_tree'
    ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/transpiler.lua:383: in function 'html_to_md'
    ...l/nvim-data/lazy/nvim-devdocs/lua/nvim-devdocs/build.lua:39: in function 'build_docs'
    ...m-data/lazy/nvim-devdocs/lua/nvim-devdocs/operations.lua:72: in function 'cb'
    vim/_editor.lua:324: in function <vim/_editor.lua:323>