Skip to content

cargo install rust-code-analysis-cli does not compile #714

Description

@gww-certik

I've run cargo install rust-code-analysis-cli and it does not compile:

error[E0308]: mismatched types
   --> /home/gww-certik/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-code-analysis-0.0.23/src/macros.rs:45:9
    |
45  |           $name::language()
    |           ^^^^^^^^^^^^^^^^^ expected struct `Language`, found struct `tree_sitter::Language`
...
235 |                   fn get_language() -> Language {
    |                                        -------- expected `Language` because of return type
    |
   ::: /home/gww-certik/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-code-analysis-0.0.23/src/langs.rs:9:1
    |
9   | / mk_langs!(
10  | |     // 1) Name for enum
11  | |     // 2) Language description
12  | |     // 3) Display name
...   |
117 | |     )
118 | | );
    | |__- in this macro invocation
    |
    = note: perhaps two different versions of crate `tree_sitter` are being used?
    = note: this error originates in the macro `get_language` (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` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rust-code-analysis-cli v0.0.23`, intermediate artifacts can be found at `/tmp/cargo-installriBlLL`

Caused by:
  build failed

Activity

  1. marco-c commented on Dec 14, 2021

    @marco-c
    Collaborator

    This was fixed in b4a30c4.

  2. marco-c commented on Dec 14, 2021

    @marco-c
    Collaborator

    Version 0.0.24 contains the fix.

  3. gww-certik commented on Dec 15, 2021

    @gww-certik
    Author

    Any ETA when will be available via cargo install rust-code-analysis-cli ?

    As currently cargo search rust-code-analysis-cli returns version '0.0.23'.

  4. marco-c commented on Dec 15, 2021

    @marco-c
    Collaborator

    There was something wrong during the build of the release, we are investigating.

  5. gww-certik commented on Dec 15, 2021

    @gww-certik
    Author
  6. marco-c commented on Dec 15, 2021

    @marco-c
    Collaborator

    This specific issue is resolved, there is another one now blocking the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions