Closed Tal500 closed 2 months ago
Please check your other plugins; the error message refers not to nvim-treesitter.
Please check your other plugins; the error message refers not to nvim-treesitter.
But it is! The previous error message happen when I was opening the file via neotree. Here is the error when I open it directly with :e exmple.R
, which doesn't leave the neotree trails:
:e example.R
Error detected while processing BufNewFile Autocommands for "*":
Error executing lua callback: .../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35: Error executing lua: .../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:36: BufNewFile Autocommands for "*"..F
ileType Autocommands for "*": Vim(append):Error executing lua callback: ...vim-0.10/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 12:2. Invalid node type "if":
(if
^
stack traceback:
[C]: in function '_ts_parse_query'
...vim-0.10/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn'
...neovim-0.10/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn'
...neovim-0.10/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get_query'
...r-textobjects/lua/nvim-treesitter/textobjects/shared.lua:99: in function 'available_textobjects'
...r-textobjects/lua/nvim-treesitter/textobjects/select.lua:173: in function 'attach'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:509: in function 'attach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <...vim/lazy/nvim-treesitter/lua/nvim-treesitter/configs.lua:132>
[C]: in function 'nvim_cmd'
.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:36: in function <.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35: in function <.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_cmd'
.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:36: in function <.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35>
[C]: in function 'nvim_buf_call'
.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35: in function <.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:10>
stack traceback:
[C]: in function 'nvim_buf_call'
.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:35: in function <.../local/other/neovim-0.10/share/nvim/runtime/filetype.lua:10>
Please check your other plugins; the error message refers not to nvim-treesitter.
OK, you were right. I uninstalled nvim-treesitter-textobjects
plugin and now it works....
That were hard to find in the logs, I really thought it's all just nvim-treesitter
and plain nvim
Please check your other plugins; the error message refers not to nvim-treesitter.
OK, you were right. I uninstalled
nvim-treesitter-textobjects
plugin and now it works.... That were hard to find in the logs, I really thought it's all justnvim-treesitter
and plain nvim
@clason can you please migrate this issue and reopen it in the project nvim-treesitter-textobjects
instead?
I can not; it's better to open a fresh issue using their issue template, with the fresh knowledge that their queries are outdated. (Or, better yet, try opening a PR!)
Verified - it is fixed by the PR https://github.com/nvim-treesitter/nvim-treesitter-textobjects/pull/645
Describe the bug
after updating nvim-treesitter, .R files yield nvim-treesitter lua errors:
To Reproduce
Update nvim-treesitter to the latest version, and then:
Expected behavior
No response
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
No response