-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Progress bars for "Downloading" messages #1320
Comments
@ry I've been watching this project for several months and I really want to be involved. Can I try this issue? |
Async module loading has now landed. It should be quite approachable now to do proper progress bars. |
Waiting for denoland/deno_third_party#32 to resolve this |
Ref #2229 |
@ry moving discussion here to keep it in one place @bartlomieju I'd rather there be a "ProgressBar" object (which should wrap whichever progress bar crate we're using) which can be added to ThreadSafeState. Then you'd have something like Originally posted by @ry in #2057 (comment) @bartlomieju I like how ninja does its progress - which is very simple - it looks like
maybe we can just do that manually in a few lines of code. Originally posted by @ry in #2229 (comment) Taking both comments into consideration:
Then when file is being downloaded around here: Lines 560 to 570 in a4551c8
number of files to download should be incremented, and message displayed:
Lastly around here: Lines 648 to 650 in a4551c8
number of files downloaded should be incremented. I guess it makes most sense to store those numbers in |
Done in #2309 |
We reverted this - but this is still a desirable feature. I hope it can be done minimally. |
Should be completely in Rust.
This looks like a good library to use: https://github.com/mitsuhiko/indicatif
Starting points is here:
deno/src/deno_dir.rs
Line 152 in a8c3b44
(After #975 the "Compiling" messages can also be added to the progress bar. It will move the compilation step into Rust. Currently "Compiling" is printed from JS.)
The text was updated successfully, but these errors were encountered: