You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran an upgrade of all my plugins earlier today. Now I'm having trouble working with some files that are incorrectly formatted. I'm getting constant errors when attempting navigation. Copied the trace into the "actual behavior" section.
My solution for now was to go back to the commit prior to recent changes to context.lua around like 17, where the stack trace starts, and all is well. Figured I would open an issue since others may also be experiencing the same
Neovim version
NVIM v0.9.5
Expected behavior
No response
Actual behavior
Error detected while processing CursorMoved Autocommands for "*":
Error executing lua callback: ...im-treesitter-context/lua/treesitter-context/context.lua:17: attempt to index local 'tree' (a nil value)
stack traceback:
...im-treesitter-context/lua/treesitter-context/context.lua:17: in function 'get_parent_nodes'
...im-treesitter-context/lua/treesitter-context/context.lua:250: in function 'get_context'
...start/nvim-treesitter-context/lua/treesitter-context.lua:101: in function 'f'
...start/nvim-treesitter-context/lua/treesitter-context.lua:27: in function <...start/nvim-treesitter-context/lua/treesitter-context.lua:21>
Minimal config
localplugins= {
ts='https://github.com/nvim-treesitter/nvim-treesitter',
ts_context='https://github.com/nvim-treesitter/nvim-treesitter-context',
-- ADD ADDITIONAL PLUGINS THAT ARE _NECESSARY_ TO REPRODUCE THE ISSUE
}
forname, urlinpairs(plugins) dolocalinstall_path='/tmp/nvim/site/'..nameifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endvim.o.runtimepath=install_path..','..vim.o.runtimepathend-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUErequire'nvim-treesitter.configs'.setup {
ensure_installed= { "yaml" },
}
Steps to reproduce
Open some file with bad formatting with neovim nvim --clean -u minimal.lua bad.yaml
here's a bad yaml example:
key1:
key2: valuebadkey: value
Attempt navigation around "badkey" and stack traces should go crazy.
The text was updated successfully, but these errors were encountered:
Description
I ran an upgrade of all my plugins earlier today. Now I'm having trouble working with some files that are incorrectly formatted. I'm getting constant errors when attempting navigation. Copied the trace into the "actual behavior" section.
My solution for now was to go back to the commit prior to recent changes to context.lua around like 17, where the stack trace starts, and all is well. Figured I would open an issue since others may also be experiencing the same
Neovim version
NVIM v0.9.5
Expected behavior
No response
Actual behavior
Minimal config
Steps to reproduce
nvim --clean -u minimal.lua bad.yaml
here's a bad yaml example:
The text was updated successfully, but these errors were encountered: