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 panamax has a compilation error #61

Closed
Verontrix opened this issue Mar 5, 2022 · 2 comments · Fixed by #62
Closed

cargo install panamax has a compilation error #61

Verontrix opened this issue Mar 5, 2022 · 2 comments · Fixed by #62

Comments

@Verontrix
Copy link

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
Copy link
Author

Verontrix commented Mar 5, 2022

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.

JamesMConroy added a commit to JamesMConroy/panamax that referenced this issue Apr 2, 2022
See issue panamax-rs#61

panamax-rs#61

The command `cargo install panamax` fails because it doesn't default to
using locked files.
@k3d3 k3d3 closed this as completed in #62 Apr 2, 2022
k3d3 pushed a commit that referenced this issue Apr 2, 2022
* Add git to the docker image

This is needed for the docker image to sync and serve packages
correctly. Without it panamax will not download most of the crates and
will throw 500 errors.

* Added '--rm' flag to docker example

Since the image's state is mounted into the container setting the
container to auto delete when it's process exits helps cut down on the
number of stopped images.

* Update readme with working build instructions

See issue #61

#61

The command `cargo install panamax` fails because it doesn't default to
using locked files.
@k3d3
Copy link
Member

k3d3 commented Apr 2, 2022

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.

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

Successfully merging a pull request may close this issue.

2 participants