From 62a4969ecad0d69bb713e489e6b73fe412c82422 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Fri, 15 Dec 2023 01:42:53 -0600 Subject: [PATCH] fix indicatif progress bars in dev mode Fixes #881 --- src/ui/progress_report.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/progress_report.rs b/src/ui/progress_report.rs index e1aa2adf04..8b3c02edf0 100644 --- a/src/ui/progress_report.rs +++ b/src/ui/progress_report.rs @@ -82,7 +82,9 @@ impl ProgressReport { impl SingleReport for ProgressReport { fn println(&self, message: String) { - self.pb.println(message); + self.pb.suspend(|| { + eprintln!("{message}"); + }); } fn warn(&self, message: String) { let msg = format!("{} {message}", style("[WARN]").yellow().for_stderr()); @@ -169,8 +171,9 @@ impl SingleReport for VerboseReport { error!("{prefix} {x} {message}"); } fn set_message(&self, message: String) { - let prefix = normal_prefix(self.pad, &self.prefix); - eprintln!("{prefix} {message}"); + // let prefix = normal_prefix(self.pad, &self.prefix); + // eprintln!("{prefix} {message}"); + eprintln!("{message}"); } fn finish(&self) { self.finish_with_message(style("done").green().for_stderr().to_string());