cargo install rust-code-analysis-cli does not compile
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- build-system, tooling
Línea de trabajo
Start by reproducing the reported cargo install rust-code-analysis-cli failure and inspect the dependency tree for the conflicting tree-sitter versions, especially the dependencies named in the compiler log. The issue gives a concrete failure and affected platforms; done means the CLI installs successfully with the reported Cargo version on Linux and Windows.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
Installation via cargo of rust-code-analysis-cli failed in Linux and Windows with cargo 1.85.0.
Log:
cargo install rust-code-analysis-cli
error[E0308]: mismatched types
--> ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rust-code-analysis-0.0.25\src\macros.rs:42:9
|
42 | $name::language()
| ^^^^^^^^^^^^^^^^^ expected `tree_sitter::Language`, found a different `tree_sitter::Language`
...
264 | fn get_language() -> Language {
| -------- expected `tree_sitter::Language` because of return type
|
::: ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rust-code-analysis-0.0.25\src\langs.rs:8:1
|
8 | / mk_langs!(
... |
117 | | );
| |_- in this macro invocation
|
note: two different versions of crate `tree_sitter` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tree-sitter-0.20.9\binding_rust\lib.rs:43:1
|
43 | pub struct Language(*const ffi::TSLanguage);
| ^^^^^^^^^^^^^^^^^^^ this is the expected type `tree_sitter::Language`
|
::: ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tree-sitter-0.25.3\binding_rust\lib.rs:63:1
|
63 | pub struct Language(*const ffi::TSLanguage);
| ^^^^^^^^^^^^^^^^^^^ this is the found type `tree_sitter::Language`
|
::: ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rust-code-analysis-0.0.25\src\node.rs:1:5
|
1 | use tree_sitter::Node as OtherNode;
| ----------- one version of crate `tree_sitter` used here, as a direct dependency of the current crate
|
::: ~\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\rust-code-analysis-0.0.25\src\langs.rs:53:9
|
53 | tree_sitter_rust,
| ---------------- one version of crate `tree_sitter` used here, as a dependency of crate `tree_sitter_rust`
= help: you can use `cargo tree` to explore your dependency tree
= note: this error originates in the macro `get_language` which comes from the expansion of the macro `mk_langs` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rust-code-analysis` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rust-code-analysis-cli v0.0.25`, intermediate artifacts can be found at `~\AppData\Local\Temp\cargo-installNWcqlt`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Related: https://github.com/mozilla/rust-code-analysis/issues/714
Thanks,
- Lenguaje dominante
- Rust
- Estrellas
- 469
- Forks
- 74
- Merge medio
- 17 h 16 min
- PR fusionados (30 d)
- 10
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
mozilla/rust-code-analysis#1267 ·
Los mantenedores suelen responder en 1 día
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroPosiblemente ocupada @marco-c la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
mozilla/rust-code-analysis#1266 ·
Los mantenedores suelen responder en 1 día
-
Grammar check tasks compare unrelated files and skip most of the othersQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
mozilla/rust-code-analysis#1261 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1250 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1249 ·
Los mantenedores suelen responder en 1 día
Todos los issues de mozilla/rust-code-analysis
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ubugeeei-prod/vize#13586 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
storytold/photocraft#16565 ·
Los mantenedores suelen responder en 1 día
-
flaky needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
bherbruck/solvecraft#21315 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
undergroundrap/hatchling#624 ·
Los mantenedores suelen responder en 1 día
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveAbiertoarea:stdlib effort:S impact:low parity type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día