Coder Social home page Coder Social logo

Comments (9)

I-Own-You avatar I-Own-You commented on June 12, 2024 1

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.

andymass avatar andymass commented on June 12, 2024

Sorry, I cannot reproduce it using latest nvim-treesitter.

Are you using nvim lazy?

from vim-matchup.

CnsMaple avatar CnsMaple commented on June 12, 2024

I encountered the same problem, how did it solve? @I-Own-You

from vim-matchup.

I-Own-You avatar I-Own-You commented on June 12, 2024

I encountered the same problem, how did it solve? @I-Own-You

do :TSUpdate, if it doesnt help, then do TSUpdateSync

from vim-matchup.

CnsMaple avatar CnsMaple commented on June 12, 2024

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.

wbthomason avatar wbthomason commented on June 12, 2024

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.

andymass avatar andymass commented on June 12, 2024

from vim-matchup.

wbthomason avatar wbthomason commented on June 12, 2024

Indeed it does - sorry, I should've checked the PRs before trying to debug it myself. Thanks!

from vim-matchup.

andymass avatar andymass commented on June 12, 2024

Merged the PR, thanks.

from vim-matchup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.