Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testCargoMetadata failed #267

Closed
zjhmale opened this issue Mar 1, 2016 · 5 comments
Closed

testCargoMetadata failed #267

zjhmale opened this issue Mar 1, 2016 · 5 comments

Comments

@zjhmale
Copy link
Contributor

zjhmale commented Mar 1, 2016

when i run ./gradlew test

i got a test case failed

org.rust.cargo.commands.CargoTestCase > testCargoMetadata FAILED
    com.intellij.execution.ExecutionException: No metadata subcommand, please update cargo
        at org.rust.cargo.commands.Cargo.execute(Cargo.kt:76)
        at org.rust.cargo.commands.Cargo.fullProjectDescription(Cargo.kt:43)
        at org.rust.cargo.commands.Cargo.fullProjectDescription$default(Cargo.kt:42)
        at org.rust.cargo.commands.CargoTestCase.testCargoMetadata(CargoTestCase.kt:11)

and i currently get

  • rustc 1.6.0
  • cargo 0.8.0 (28a0cbb 2016-01-17)

how can i fix it.

@matklad
Copy link
Member

matklad commented Mar 1, 2016

You can update cargo :) cargo 0.9.0-nightly (6c05bcb 2016-01-29) is the minimal version, which has metadata command.

This particular test picks cargo from $PATH and is skipped if cargo is not found. So if you don't want to update cargo, it's fine just to remove it from PATH, or just change this condition to true.

@matklad matklad closed this as completed Mar 1, 2016
@zjhmale
Copy link
Contributor Author

zjhmale commented Mar 1, 2016

👌 thx :)

@zjhmale
Copy link
Contributor Author

zjhmale commented Mar 1, 2016

but i find latest version of cargo is 0.8.0 https://github.com/rust-lang/cargo/releases @matklad

@matklad
Copy link
Member

matklad commented Mar 1, 2016

Yes, 0.9.0 is a yet-to-be release nightly version (it will hit stable with Rust 1.8). You can install it with multirust (nightly toolchain), or from a tarball linked in Cargo's readme.

@zjhmale
Copy link
Contributor Author

zjhmale commented Mar 1, 2016

thx! i just upgrade cargo to 0.9.0-nightly (8fc3fd8 2016-02-29) and fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants