---------------------- arguments to this function are incorrect
9
npezza93_tree_sitter_haskell::language(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tree_sitter::Language, found a different tree_sitter::Language
= note: `tree_sitter::Language` and `tree_sitter::Language` have similar names, but are actually distinct types
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/lib.rs:43:1
43
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.5/binding_rust/lib.rs:54:1
54
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `tree_sitter` are being used?
note: associated function defined here
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/npezza93_tree-sitter-tags-0.21.0/src/lib.rs:121:12
|
121 | pub fn new(language: Language, tags_query: &str, locals_query: &str) -> Result<Self, Error> {
| ^^^
---------------------- arguments to this function are incorrect
9
tree_sitter_nix::language(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tree_sitter::Language, found a different tree_sitter::Language
= note: `tree_sitter::Language` and `tree_sitter::Language` have similar names, but are actually distinct types
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/lib.rs:43:1
43
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.5/binding_rust/lib.rs:54:1
54
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `tree_sitter` are being used?
note: associated function defined here
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/npezza93_tree-sitter-tags-0.21.0/src/lib.rs:121:12
|
121 | pub fn new(language: Language, tags_query: &str, locals_query: &str) -> Result<Self, Error> {
| ^^^
---------------------- arguments to this function are incorrect
12
tree_sitter_ruby::language(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tree_sitter::Language, found a different tree_sitter::Language
= note: `tree_sitter::Language` and `tree_sitter::Language` have similar names, but are actually distinct types
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/lib.rs:43:1
43
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.5/binding_rust/lib.rs:54:1
54
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `tree_sitter` are being used?
note: associated function defined here
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/npezza93_tree-sitter-tags-0.21.0/src/lib.rs:121:12
|
121 | pub fn new(language: Language, tags_query: &str, locals_query: &str) -> Result<Self, Error> {
| ^^^
---------------------- arguments to this function are incorrect
9
tree_sitter_swift::language(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tree_sitter::Language, found a different tree_sitter::Language
= note: `tree_sitter::Language` and `tree_sitter::Language` have similar names, but are actually distinct types
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.20.10/binding_rust/lib.rs:43:1
43
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
note: tree_sitter::Language is defined in crate tree_sitter
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tree-sitter-0.22.5/binding_rust/lib.rs:54:1
54
pub struct Language(*const ffi::TSLanguage);
^^^^^^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `tree_sitter` are being used?
note: associated function defined here
--> /Users/bsunder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/npezza93_tree-sitter-tags-0.21.0/src/lib.rs:121:12
|
121 | pub fn new(language: Language, tags_query: &str, locals_query: &str) -> Result<Self, Error> {
| ^^^
For more information about this error, try rustc --explain E0308.
error: could not compile ttags (lib) due to 6 previous errors
error: failed to compile ttags v0.3.0, intermediate artifacts can be found at /var/folders/nh/vdgbq5yn4wqbc5cmfspqc9hh0000gp/T/cargo-installSYOIgc.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.
Hey I'm unable to install
ttags
via cargo. It looks like there is an issue with ttags and npezza93_tree-sitter-tags v0.21.0Could you pls help with this?