From 79305289704f28448b60d0513027933735e9f11b Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sun, 6 Dec 2026 08:23:26 +0300 Subject: [PATCH] feat(cli): show compiler warnings from successful actions Only failed actions printed their captured stderr, so warnings and notes from compiles that succeeded were silently dropped. Print the stderr of every executed (non-cached) successful action after the build. Verified: a -Wall unused-variable warning now appears in 'vbs build'. --- src/Main.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index 7dc004d..b9b6186 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -789,6 +789,16 @@ int execute_build_or_test(BuildCmdOptions opts, bool run_tests) { all_ok = false; continue; } + // Surface compiler warnings and notes from actions that succeeded: only + // failures used to print their captured stderr, hiding warnings entirely. + for (const auto &ar : rep->results) { + if (ar.succeeded && !ar.from_cache && !ar.stderr_data.empty()) { + std::cerr << ar.stderr_data; + if (ar.stderr_data.back() != '\n') { + std::cerr << '\n'; + } + } + } Void::Log::info("Build", "[{}] Finished in {:.2f}s ({} executed, {} cached)", prof_name, prof_sw.elapsed_ms() / 1000.0, rep->executed_count, rep->cached_count); std::cout << "vbs: [" << prof_name << "] built (" << rep->executed_count << " executed, "