Closed kapral18 closed 3 weeks ago
Linking to the other ticket for visibility https://github.com/nvim-neo-tree/neo-tree.nvim/issues/1574
For me this happens without neo-tree being even loaded (as per :Lazy
).
Here's my error output:
Error 16:29:36 msg_show.lua_error Error executing vim.schedule lua callback: ...vim-treesitter-context/lua/treesitter-context/render.lua:107: Could not apply exmtark to { 0, 0, 0, 6 }: Invalid 'end_col': out of range
stack traceback:
[C]: in function 'error'
...vim-treesitter-context/lua/treesitter-context/render.lua:107: in function 'add_extmark'
...vim-treesitter-context/lua/treesitter-context/render.lua:159: in function 'fn'
...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:491: in function 'for_each_tree'
...vim-treesitter-context/lua/treesitter-context/render.lua:127: in function 'highlight_contexts'
...vim-treesitter-context/lua/treesitter-context/render.lua:417: in function 'open'
.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:101: in function 'f'
.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:32: in function <.../lazy/nvim-treesitter-context/lua/treesitter-context.lua:32>
I get the same error, but not with NeoTree, for me it's when opening recently closed files with Telescope's "Oldfiles" picker.
The error pops up when the picker is opened. I guess it's either due to change of focus from the buffer to the picker, or when trying to get the context in the Telescope preview.
Also it doesn't happen always, sometimes the picker opens without the error appearing at all. I would say 1 out of 5 times it's okay.
Sorry, the bug was introduced in my PR. https://github.com/nvim-treesitter/nvim-treesitter-context/pull/481
I have created another PR that fixes the problem. @lewis6991, can you review it, please? https://github.com/nvim-treesitter/nvim-treesitter-context/pull/497
Description
When opening NeoTree treesitter-context fails and I am not sure if it's their bug or your bug.
Neovim version
NVIM v0.10.1 Build type: Release LuaJIT 2.1.1727870382 Run "nvim -V1 -v" for more info
Expected behavior
no error
Actual behavior
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua