Comments (9)
Sorry, I cannot reproduce it using latest nvim-treesitter.
Are you using nvim lazy?
nevermind, i didn't know i need to :TSUpdate the plugin, i thought it updates itself, i forgot it, it works, thanks for your reply :)
from vim-matchup.
Sorry, I cannot reproduce it using latest nvim-treesitter.
Are you using nvim lazy?
from vim-matchup.
I encountered the same problem, how did it solve? @I-Own-You
from vim-matchup.
I encountered the same problem, how did it solve? @I-Own-You
do :TSUpdate, if it doesnt help, then do TSUpdateSync
from vim-matchup.
do :TSUpdate, if it doesnt help, then do TSUpdateSync
I am using lunarvim in Windows, and this command still has no effect. However, I do not need lunarvim anymore, as there is no problem with the new configuration. Thank you for your reply.
from vim-matchup.
Unfortunately, I seem to be hitting this issue now. It only hits Python files, so I think it's specific to any queries for that language/maybe an issue with that parser. I am using lazy
as my plugin manager, although both vim-matchup
and nvim-treesitter
are not lazy-loaded.
nvim --version:
NVIM v0.10.0-dev-605+g2493815290
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/lib/ccache/bin/cc -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=always -fstack-protector-strong -DUNIT_TESTING -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/usr/include/luajit-2.1 -I/usr/include -I/tmp/makepkg/neovim-git/src/build/src/nvim/auto -I/tmp/makepkg/neovim-git/src/build/include -I/tmp/makepkg/neovim-git/src/build/cmake.config -I/tmp/makepkg/neovim-git/src/neovim/src
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
checkhealth (relevant output):
nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- OK `tree-sitter` found 0.20.8 (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v20.3.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (GCC) 13.1.1 20230429
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "x86_64",
release = "6.3.9-arch1-1",
sysname = "Linux",
version = "#1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- cpp ✓ ✓ ✓ ✓ ✓
- dockerfile ✓ . . . ✓
- julia ✓ ✓ ✓ ✓ ✓
- latex ✓ . ✓ . ✓
- markdown ✓ . ✓ ✓ ✓
- python ✓ ✓ ✓ ✓ ✓
- yaml ✓ ✓ ✓ ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
vim.treesitter: require("vim.treesitter.health").check()
- Nvim runtime ABI version: 14
- OK Parser: bash ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/bash.so
- OK Parser: cpp ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/cpp.so
- OK Parser: dockerfile ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/dockerfile.so
- OK Parser: julia ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/julia.so
- OK Parser: latex ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/latex.so
- OK Parser: markdown ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/markdown.so
- OK Parser: python ABI: 14, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/python.so
- OK Parser: yaml ABI: 13, path: /home/wil/.local/share/nvim/lazy/nvim-treesitter/parser/yaml.so
Full error:
Error detected while processing function <SNR>23_timer_callback[20]..4[71]..matchup#delim#get_current[1]..<SNR>54_get_delim_multi[3
]..matchup#ts_engine#get_delim[3]..<SNR>47_forward:
line 1:
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 730 for l
anguage python
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/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:46: in function 'fn'
/usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:385: in function 'for_each_tree'
...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:40: in function 'fn'
...im/lazy/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:380: in function 'get_matches'
...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:102: in function 'fn'
...im/lazy/nvim-treesitter/lua/nvim-treesitter/ts_utils.lua:380: in function 'get_active_nodes'
...vim/lazy/vim-matchup/lua/treesitter-matchup/internal.lua:221: in function 'get_delim'
[string "luaeval()"]:1: in main chunk
from vim-matchup.
from vim-matchup.
Indeed it does - sorry, I should've checked the PRs before trying to debug it myself. Thanks!
from vim-matchup.
Merged the PR, thanks.
from vim-matchup.
Related Issues (20)
- Feature: Option to set motion timeouts HOT 5
- [Feature Request]: Hybrid winbar/statusline option for offscreen matches HOT 11
- Treesitter integration broken on Javascript HOT 26
- Matchup error with treesitter in javascript files HOT 1
- Latest tree-sitter-c parser breaks vim-matchup HOT 1
- Add support for statuscolumn and foldcolumn in offscreen matches
- Error since last update → If treesitter matchup is enabled HOT 2
- Feature request: disable closing hint HOT 3
- offscreen doesn't display
- Wrong matching across strings HOT 2
- Crash when shell case is incomplete
- Matchup adding random characters on the beginning of the buffer. HOT 8
- clarification about lazy loading on keys HOT 6
- Incompatibility with nvim-cmp snippet completion HOT 8
- Matching string and char delimeters HOT 2
- how to activate ruby's `|` delimeter for block arguments HOT 4
- MatchParen(Cur) Highlight persists in virtual fold text
- invalid node type for language perl
- invalid node type for language bash HOT 5
- Svelte error was reported after treesitter's commit of svelte parsing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-matchup.