andymass / vim-matchup

vim match-up: even better % :facepunch: navigate and highlight matching words :facepunch: modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
https://www.vim.org/scripts/script.php?script_id=5624
MIT License
1.68k stars 68 forks source link

Recent errors showing up #350

Open Thanatermesis opened 3 months ago

Thanatermesis commented 3 months ago

Installing it recently gives this error which didn't existed before

Nvim version 0.9.5

     Error  10:49:30 AM msg_show.lua_error  q Error detected while processing WinEnter Autocommands for "*"..function 4[71]..matchup#delim#get_current[1]..<SNR>32_get_delim_multi[3]..<SNR>32_get_delim[166]..matchup#delim#skip[13]..matchup#ts_syntax#skip_expr[1]..matchup#ts_syntax#lang_skip[1]..<SNR>59_forward:
  10:49:30 AM msg_show  q line    1:
  10:49:30 AM msg_show  q E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 228 for language typescript
  stack traceback:
      [C]: in function '_ts_parse_query'
      /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:55: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:142: in function 'prepare_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:339: in function 'iter_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:351: in function 'collect_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:23: in function 'update_cached_matches'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:31: in function 'get_matches'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:26: in function 'get_skips'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:60: in function 'lang_skip'
      [string "luaeval()"]:1: in main chunk
     Error  10:49:30 AM msg_show.lua_error  q E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 228 for language typescript
  stack traceback:
      [C]: in function '_ts_parse_query'
      /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:55: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:142: in function 'prepare_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:339: in function 'iter_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:351: in function 'collect_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:23: in function 'update_cached_matches'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:31: in function 'get_matches'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:26: in function 'get_skips'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:60: in function 'lang_skip'
      [string "luaeval()"]:1: in main chunk
     Warn  10:49:36 AM msg_show.wmsg W10: Warning: Changing a readonly file
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:36 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:36 AM msg_show 225 lines yanked into "+
  10:49:37 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
  10:49:37 AM msg_show 225 lines yanked into "+
  10:49:37 AM msg_show.echomsg clipboard: error invoking xclip: Authorization required, but no authorization protocol specified  Error: Can't open display: :0.0
     Error  10:49:45 AM msg_show.lua_error Error detected while processing CursorMoved Autocommands for "*"..function 3[3]..4[71]..matchup#delim#get_current[1]..<SNR>32_get_delim_multi[3]..<SNR>32_get_delim[166]..matchup#delim#skip[13]..matchup#ts_syntax#skip_expr[1]..matchup#ts_syntax#lang_skip[1]..<SNR>59_forward
  10:49:45 AM msg_show line    1:
  10:49:45 AM msg_show E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 228 for language typescript
  stack traceback:
      [C]: in function '_ts_parse_query'
      /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:55: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:142: in function 'prepare_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:339: in function 'iter_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:351: in function 'collect_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:23: in function 'update_cached_matches'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:31: in function 'get_matches'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:26: in function 'get_skips'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:60: in function 'lang_skip'
      [string "luaeval()"]:1: in main chunk
     Error  10:49:45 AM msg_show.lua_error Error detected while processing CursorMoved Autocommands for "*"..function 3[3]..4[71]..matchup#delim#get_current[1]..<SNR>32_get_delim_multi[3]..<SNR>32_get_delim[171]..matchup#delim#skip[13]..matchup#ts_syntax#skip_expr[1]..matchup#ts_syntax#lang_skip[1]..<SNR>59_forward
  10:49:45 AM msg_show line    1:
  10:49:45 AM msg_show E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 228 for language typescript
  stack traceback:
      [C]: in function '_ts_parse_query'
      /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:55: in function 'get_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:142: in function 'prepare_query'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:339: in function 'iter_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:351: in function 'collect_group_results'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:23: in function 'update_cached_matches'
      ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:31: in function 'get_matches'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:26: in function 'get_skips'
      .../nvim/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:60: in function 'lang_skip'
      [string "luaeval()"]:1: in main chunk
     Error  10:49:45 AM msg_show.lua_error Error detected while processing CursorMoved Autocommands for "*"..function 3[3]..4[89]..matchup#delim#get_matching[20]..<SNR>32_get_matching_delims[86]..matchup#delim#skip0[2]..matchup#ts_syntax#skip_expr[1]..matchup#ts_syntax#lang_skip[1]..<SNR>59_forward:
  10:49:45 AM msg_show line    1:
boydkelly commented 2 months ago

I've also been getting this with .js NVIM v0.10.0 Build type: RelWithDebInfo LuaJIT 2.1.1713773202


6│   Error  05:33:03 msg_show.lua_error Error detected while processing CursorMoved Autocommands for "*"..function 3[3]. │       
    15│05:33:03 msg_show line    1:                                                                                            │       
    14│05:33:03 msg_show E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: Query error at 1 │       
   13│  (function_expression "function" @open.function)                                                                       │       
    12│   ^                                                                                                                    │       
    11│                                                                                                                        │       
    10│stack traceback:                                                                                                        │       
     9│  [C]: in function '_ts_parse_query'                                                                                    │       
     8│  /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:252: in function 'fn'                                            │       
     7│  /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'fn'                                                │       
     6│  /usr/share/nvim/runtime/lua/vim/func/_memoize.lua:58: in function 'get_query'                                         │       
     5│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:55: in function 'get_query'                               │       
    4│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:142: in function 'prepare_query'                          │       
     3│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:339: in function 'iter_group_results'                     │       
     2│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:351: in function 'collect_group_results'                  │       
     1│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:23: in function 'update_cached_matches'                   │       
   152│  ...vim-matchup/lua/treesitter-matchup/third-party/query.lua:31: in function 'get_matches'                             │       
     1│  ...im-nv/lazy/vim-matchup/lua/treesitter-matchup/syntax.lua:26: in function 'get_skips'