console-rs / indicatif

A command line progress reporting library for Rust
MIT License
4.36k stars 241 forks source link

Wierd issue, maybe compilers fault? #448

Closed Shifulor closed 2 years ago

Shifulor commented 2 years ago

Hello so first off i love all your work on this helpful project :) I am trying to implement the bars into an asyncronous tokio download function and for this started working with "MultiProgress". The compiler errored out and told me that "with_template does not exist for ProgressStyle" I found this wierd since i saw that in the examples. My next step was to run the example multi.rs and indeed i got bombarded by so many issues. At this point i am extremely confused and must ask for your help. Does the example work on your machine? I am using rust 1.61

djc commented 2 years ago

My guess is you're using an example from a branch (maybe main) where the library has a substantially different API from the released version you're pulling in from crates.io (maybe 0.16). Could that be the problem?

Shifulor commented 2 years ago

Ah, that was it, sorry to waste your time.