cov icon indicating copy to clipboard operation
cov copied to clipboard

`cargo install cargo-cov` fails

Open matthiasbeyer opened this issue 7 years ago • 2 comments

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)

matthiasbeyer avatar Sep 23 '17 19:09 matthiasbeyer

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

sesam avatar Jan 21 '19 06:01 sesam

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.

matthiasbeyer avatar Jan 21 '19 15:01 matthiasbeyer