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

cargo install cargo-cov fails #15

Open
matthiasbeyer opened this issue Sep 23, 2017 · 2 comments
Open

cargo install cargo-cov fails #15

matthiasbeyer opened this issue Sep 23, 2017 · 2 comments

Comments

@matthiasbeyer
Copy link

Output:

error[E0425]: cannot find function `stderr` in this scope
  --> /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-cov-0.0.1/src/main.rs:62:18
   |
62 |         writeln!(stderr(), "{} {}", "error:".red().bold(), error).unwrap();
   |                  ^^^^^^ not found in this scope
   |
help: possible candidate is found in another module, you can import it into scope
   |
1  | use std::io::stderr;
   |

error[E0599]: no method named `red` found for type `&'static str` in the current scope
  --> /home/m/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-cov-0.0.1/src/main.rs:62:46
   |
62 |         writeln!(stderr(), "{} {}", "error:".red().bold(), error).unwrap();
   |                                              ^^^
   |
   = help: items from traits can only be used if the trait is in scope
   = note: the following trait is implemented but not in scope, perhaps add a `use` for it:
           candidate #1: `use colored::Colorize;`

error: aborting due to 2 previous errors

error: Could not compile `cargo-cov`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-cov v0.0.1`, intermediate artifacts can be found at `/tmp/cargo-install.aMQnMj4V31OS`

Caused by:
  build failed

env:

cargo 0.21.0 (5b4b8b2ae 2017-08-12)
rustc 1.20.0 (f3d6973f4 2017-08-27)
@sesam
Copy link

sesam commented Jan 21, 2019

@matthiasbeyer Did you get a chance to try again with a newer cargo/rust version?

@matthiasbeyer
Copy link
Author

Hi. I'm currently on a sabbatical and cannot test this until march. If you care enough please ping me after March 1st again and I will check whether it works now.

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