cargo install rust-code-analysis-cli does not compile
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- rust
- 領域
- build-system, tooling
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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,
- 主要言語
- Rust
- スター
- 469
- フォーク
- 74
- 平均マージ
- 17時間 16分
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/rust-code-analysis のほかの issue
-
mozcpp: refresh the list of Mozilla annotation macros対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
mozilla/rust-code-analysis#1267 ·
メンテナーはふだん 1 日以内に返信
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macro対応中かも @marco-c が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
mozilla/rust-code-analysis#1266 ·
メンテナーはふだん 1 日以内に返信
-
Grammar check tasks compare unrelated files and skip most of the others再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
mozilla/rust-code-analysis#1261 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/rust-code-analysis#1250 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mozilla/rust-code-analysis#1249 ·
メンテナーはふだん 1 日以内に返信
mozilla/rust-code-analysis の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ubugeeei-prod/vize#13586 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
storytold/photocraft#16565 ·
メンテナーはふだん 1 日以内に返信
-
flaky needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bherbruck/solvecraft#21315 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
undergroundrap/hatchling#624 ·
メンテナーはふだん 1 日以内に返信
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveオープンarea:stdlib effort:S impact:low parity type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信