tcount
tcount copied to clipboard
Unable to install
I tried installing, and it fails at this spot. Any other system deps I need? I'm running macos
# cargo install --git https://github.com/RRethy/tcount.git
Updating git repository `https://github.com/RRethy/tcount.git`
Installing tcount v0.1.0 (https://github.com/RRethy/tcount.git#71638e65)
Updating crates.io index
Updating git repository `https://github.com/latex-lsp/tree-sitter-bibtex`
Updating git repository `https://github.com/tree-sitter/tree-sitter-c`
Updating git repository `https://github.com/tree-sitter/tree-sitter-c-sharp`
Updating git repository `https://github.com/sogaiu/tree-sitter-clojure`
Updating git repository `https://github.com/tree-sitter/tree-sitter-css`
Updating git repository `https://github.com/AbstractMachinesLab/tree-sitter-erlang`
Updating git repository `https://github.com/tree-sitter/tree-sitter-go`
Updating git repository `https://github.com/tree-sitter/tree-sitter-html`
Updating git repository `https://github.com/tree-sitter/tree-sitter-json`
Updating git repository `https://github.com/tree-sitter/tree-sitter-julia`
Updating git repository `https://github.com/latex-lsp/tree-sitter-latex`
Updating git repository `https://github.com/nvim-treesitter/tree-sitter-lua`
Updating git repository `https://github.com/nvim-treesitter/tree-sitter-query`
Updating git repository `https://github.com/tree-sitter/tree-sitter-ruby`
Updating git repository `https://github.com/tree-sitter/tree-sitter-scala`
error: failed to compile `tcount v0.1.0 (https://github.com/RRethy/tcount.git#71638e65)`, intermediate artifacts can be found at `/var/folders/rr/bzwz4lzx7mbbymtknwk1y7140000gn/T/cargo-installFHZdFy`
Caused by:
failed to select a version for the requirement `tree-sitter-c = "^0.16.0"`
candidate versions found which didn't match: 0.20.1
location searched: Git repository https://github.com/tree-sitter/tree-sitter-c
required by package `tcount v0.1.0 (/Users/pthrasher/.cargo/git/checkouts/tcount-92c5348212cf527d/71638e6)
Yea there's a weird versioning issue, not sure what happened to v0.16.0
of tree-sitter-c
. When I get a chance I'll refactor this into using the loader crate instead of having a dependency for each language.