cargo install panamax has a compilation error
Verontrix opened this issue · 2 comments
Verontrix commented
As stated fails to install panamax.
System: Manjaro 5.13
KDE: 5.24
Hardware: AMD Ryzen 7 2700
Error message:
cargo install panamax
...
Compiling panamax v1.0.4
error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates.rs:127:18
|
127 | .progress_chars(" ")
| ^^^^^^^^^^^^^^ method not found in `Result<ProgressStyle, indicatif::style::TemplateError>`
error[E0308]: mismatched types
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates.rs:131:27
|
131 | pb.enable_steady_tick(10);
| ^^ expected struct `Duration`, found integer
error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates.rs:190:18
|
190 | .progress_chars("█▉▊▋▌▍▎▏ ")
| ^^^^^^^^^^^^^^ method not found in `Result<ProgressStyle, indicatif::style::TemplateError>`
error[E0308]: mismatched types
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates.rs:194:27
|
194 | pb.enable_steady_tick(10);
| ^^ expected struct `Duration`, found integer
error[E0599]: no method named `set_draw_rate` found for struct `ProgressBar` in the current scope
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates.rs:195:8
|
195 | pb.set_draw_rate(10);
| ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `set_draw_target`
error[E0308]: mismatched types
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/rustup.rs:343:27
|
343 | pb.enable_steady_tick(10);
| ^^ expected struct `Duration`, found integer
error[E0308]: mismatched types
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/rustup.rs:663:27
|
663 | pb.enable_steady_tick(10);
| ^^ expected struct `Duration`, found integer
error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates_index.rs:45:18
|
45 | .progress_chars(" ")
| ^^^^^^^^^^^^^^ method not found in `Result<ProgressStyle, indicatif::style::TemplateError>`
error[E0308]: mismatched types
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/crates_index.rs:51:27
|
51 | pb.enable_steady_tick(10);
| ^^ expected struct `Duration`, found integer
error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope
--> /home/verontrix/.cargo/registry/src/github.com-1ecc6299db9ec823/panamax-1.0.4/src/rustup.rs:264:18
|
264 | .progress_chars("█▉▊▋▌▍▎▏ ")
| ^^^^^^^^^^^^^^ method not found in `Result<ProgressStyle, indicatif::style::TemplateError>`
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
error: failed to compile `panamax v1.0.4`, intermediate artifacts can be found at `/tmp/cargo-installOtGonN`
Caused by:
could not compile `panamax` due to 10 previous errors
Cloning panamax successfully builds. However, trying to install the build using cargo install --path
fails . . Same error message.
Verontrix commented
The compilation error is caused because cargo install doesn't default to using locked files, while cargo build -r... do.
Can install it using cargo install --locked panamax.
k3d3 commented
I'm considering this resolved for now, as cargo install --locked panamax
does work, however I'll get those compilation errors fixed and update the libraries.