-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completely breaks in my Ubuntu 22.04 in WSL2 #289
Comments
I have now tried this minimal config:
with the same behavior! nvim is: NVIM v0.10.0-dev |
You know what's crazy, I get similar errors, but what looks like a totally different set of stack traces, when I went back to a different commit (this is 6c8909b)
Super curious, here, the errors come up on startup but matchup seems to continue working beyond that. and moving around or hitting keys bound to matchup does not seem to cause any more errors. |
OK i think this might not be specific to this plugin. something about recent changes between nvim, lazy, lua syntax, and possibly ubuntu 22.04 and WSL2 here. |
can you let me know if commenting out specific queries in the query files (after/queries) fixes it? I can't reproduce it for some reason. |
I met this problem, too. But only in lua files. Removing after/queries/lua fixs that. |
Same here. It is throwing this error only for lua files. Error detected while processing CursorMoved Autocommands for "*"..function 3[3]..4[71]..matchup#delim#get_current
[1]..<SNR>48_get_delim_multi[3]..matchup#ts_engine#get_delim[3]..<SNR>45_forward:
line 1:
E5108: Error executing lua ...im/0.9.0/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node t
ype at position 6 for language lua
stack traceback:
[C]: in function '_ts_parse_query'
...im/0.9.0/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'
...lazy/opt/vim-matchup/lua/treesitter-matchup/internal.lua:46: in function 'fn'
...0/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:324: in function 'for_each_tree'
...lazy/opt/vim-matchup/lua/treesitter-matchup/internal.lua:40: in function 'fn'
|
Thanks for the comments. @Martinits and @ravitemer are you both on Ubuntu in WSL2? @andymass i definitely cannot reproduce this in any form from my Mac, my Linux box will be back up in a little bit |
Can anyone try removing specific queries from after/queries/lua/matchup.scm until it works? |
I'm on archlinux. After some trying, commenting out the first line |
@Martinits Did you try to do a :TSUpdate? |
Oh, I forgot. Seems everything's fine after update. |
Oh wow TSUpdate also fixed it over here. Thanks. |
I will post additional details as I troubleshoot. But once I remove matchup from my plugin list, I have no problems. Here is what comes up in the console, every time I move the cursor:
The text was updated successfully, but these errors were encountered: