crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Enable `--progress` flag by default on a TTY

Open straight-shoota opened this issue 4 months ago • 3 comments

We should enable --progress by default for crystal build etc. when the output a TTY. Printing progress information shows that the compiler is at work. Builds can take a while sometimes and users might assume it's stuck or something. Seeing something happen also makes it feel faster.

While doing that we should offer a flag to disable progress output (--no-progress).

This was first mentioned in https://github.com/crystal-lang/crystal/issues/16254#issuecomment-3434222295

straight-shoota avatar Oct 22 '25 21:10 straight-shoota

While I fully agree with this, if a --single-module build still takes many minutes to run, is there any extra progress indication we could show?

HertzDevil avatar Nov 03 '25 16:11 HertzDevil

Yeah, for single module and release it's still not gonna move, unless we put an ASCII animated loader as to say "not dead, still alive, doing my thing".

ysbaddaden avatar Nov 03 '25 16:11 ysbaddaden

I'd suggest to start with simply enabling --progress by default. And further enhancements as a next step.

straight-shoota avatar Nov 03 '25 18:11 straight-shoota