From 66f577dfe189b93efdfd1e1cfd97a8a9e1d09ba0 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 12 Sep 2022 19:42:41 +0200 Subject: [PATCH 1/2] eprintln comment Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- crates/cli/src/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/cli/src/build.rs b/crates/cli/src/build.rs index 649a5bce78..38fbd79b9e 100644 --- a/crates/cli/src/build.rs +++ b/crates/cli/src/build.rs @@ -406,6 +406,7 @@ fn spawn_rebuild_thread( let thread_local_target = target.clone(); std::thread::spawn(move || { if !prebuilt { + // printing to stderr because we want stdout to be clean for rbt eprintln!("🔨 Rebuilding platform..."); } From 6186b0ff119d454de7729c77763c78df94c3746a Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 13 Sep 2022 12:37:20 +0200 Subject: [PATCH 2/2] further clarified log comment Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- crates/cli/src/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/build.rs b/crates/cli/src/build.rs index 38fbd79b9e..d3d72c71c8 100644 --- a/crates/cli/src/build.rs +++ b/crates/cli/src/build.rs @@ -406,7 +406,9 @@ fn spawn_rebuild_thread( let thread_local_target = target.clone(); std::thread::spawn(move || { if !prebuilt { - // printing to stderr because we want stdout to be clean for rbt + // Printing to stderr because we want stdout to contain only the output of the roc program. + // We are aware of the trade-offs. + // `cargo run` follows the same approach eprintln!("🔨 Rebuilding platform..."); }