Giter Club home page Giter Club logo

Comments (5)

christianwengert avatar christianwengert commented on August 29, 2024 2

I have the same problem

from stack-graphs.

FFFFplusplus avatar FFFFplusplus commented on August 29, 2024 2

Maybe dependencies has been resolved badly
Two versions of the tree-sitter module are in conflict

Workaround

@ lsp-positions/Cargo.toml

tree-sitter = { version=">= 0.19", optional=true }
↓
tree-sitter = { version="~0.20", optional=true }

@ project root

$ cargo build
$ cargo run --features cli -- --version
tree-sitter-stack-graphs 0.7.1

This works fine for me

from stack-graphs.

hendrikvanantwerpen avatar hendrikvanantwerpen commented on August 29, 2024 1

I've learned some unfortunate things about Cargo dependency resolution, but I managed to get all crates back into an installable state. All crates except for tree-sitter-stack-graphs-javascript have new released that should install just fine.

I also learned that some upstream work is happening in the tree-sitter library that will hopefully help with these problems in the future.

Closing this, but feel free to reopen if things are not installable still.

from stack-graphs.

juli1 avatar juli1 commented on August 29, 2024

I did this and still have errors when invoking cargo build

Among them the following trace.

   --> tree-sitter-stack-graphs/src/lib.rs:678:13
    |
676 |         self.sgl.tsg.execute_into(
    |                      ------------ arguments to this method are incorrect
677 |             &mut self.graph,
678 |             tree,
    |             ^^^^ expected `tree_sitter::Tree`, found `Tree`

from stack-graphs.

hendrikvanantwerpen avatar hendrikvanantwerpen commented on August 29, 2024

Thanks for reporting this! The way dependency versions are specified seems to allow for incompatible resolutions like this to happen. I'll see if I can find a solution for this.

from stack-graphs.

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.