Skip to content

Nvim + treesitter gives error "Invalid node type php_end_tag" on every cursor move #448

Description

@smarechal-paragin

Explain the issue

Using a fully updated Nvim (0.12.4) and fully updated treesitter, I get the following error whenever my cursor moves in a PHP file:

Error in CursorMoved Autocommands for "*"..function 3[3]..4[71]..matchup#delim#get_current[1]..<SNR>59_get_delim_multi[3]..matchup#ts_engine#get_delim[3]..<SNR>55_forward:
line    1:
E5108: Lua: ...x-x86_64/share/nvim/runtime/lua/vim/treesitter/query.lua:374: Query error at 3:2. Invalid node type "php_end_tag":
(php_end_tag) @close.php
 ^

stack traceback:
        [C]: in function '_ts_parse_query'
        ...x-x86_64/share/nvim/runtime/lua/vim/treesitter/query.lua:374: in function 'fn'
        ...inux-x86_64/share/nvim/runtime/lua/vim/func/_memoize.lua:82: in function 'fn'
        ...inux-x86_64/share/nvim/runtime/lua/vim/func/_memoize.lua:82: in function 'get'
        ...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:68: in function 'get_lang_matches'
        ...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:144: in function 'get_matches'
        ...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:330: in function 'get_delim'
        [string "luaeval()"]:1: in main chunk

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions