GithubHelp home page GithubHelp logo

Comments (8)

RRethy avatar RRethy commented on May 19, 2024 1

Yea, feel free to make a PR and I'll merge. I'm not familiar with Julia so I personally won't be putting up a fix.

cc @timoleistner who originally added Julia support.

from nvim-treesitter-textsubjects.

timoleistner avatar timoleistner commented on May 19, 2024

Since it's been a while and @ArbitRandomUser did not create a pull request, I've done it.
Sadly, I can't test this as I get the following error when I try to use smart textsubjects:

E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at posit
ion 2 for language julia
stack traceback:
        [C]: in function '_ts_parse_query'
        /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:108: in function 'get_query'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:201: in function 'prepare_query'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:397: in function 'iter_group_results'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:320: in function 'get_capture_matches'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:445: in function 'fn'
        /usr/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:345: in function 'for_each_tree'
        .../nvim/lazy/nvim-treesitter/lua/nvim-treesitter/query.lua:440: in function 'get_capture_matches_recursively'

        ...sitter-textsubjects/lua/nvim-treesitter/textsubjects.lua:111: in function 'select'
        [string ":lua"]:1: in main chunk

This does happen no matter where I do this in my code.

Please let me know if I should create a separate issue or if you need more information.

from nvim-treesitter-textsubjects.

RRethy avatar RRethy commented on May 19, 2024

E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at posit
ion 2 for language julia

That would indicate your Julia parser may be out of date.

from nvim-treesitter-textsubjects.

timoleistner avatar timoleistner commented on May 19, 2024

fixed it :)

from nvim-treesitter-textsubjects.

ArbitRandomUser avatar ArbitRandomUser commented on May 19, 2024

was waiting for you to chime in @timoleistner, your fix is neat and more comprehensive than mine.
Thanks :)

from nvim-treesitter-textsubjects.

Related Issues (16)

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.