From 6ac1a9ba7f56ffac31b15211b6cba3cbf4fb7855 Mon Sep 17 00:00:00 2001 From: Andrii Semkiv Date: Wed, 19 Feb 2025 16:02:31 +0100 Subject: [PATCH] MCU Support: Show deployment issues in issues pane MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MCU deployment issues will be shown in the Issues output pane. Change-Id: I5b3751d65a8e46e24a68591f9a0c6f7f77492324 Reviewed-by: Sivert Krøvel Reviewed-by: Thomas Hartmann --- src/plugins/mcusupport/mcubuildstep.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/mcusupport/mcubuildstep.cpp b/src/plugins/mcusupport/mcubuildstep.cpp index 83756879c71..a24ff5add91 100644 --- a/src/plugins/mcusupport/mcubuildstep.cpp +++ b/src/plugins/mcusupport/mcubuildstep.cpp @@ -100,6 +100,11 @@ DeployMcuProcessStep::DeployMcuProcessStep(ProjectExplorer::BuildStepList *bc, I cmdLine.addArg(directory); return cmdLine; }); + + connect(this, &BuildStep::addOutput, this, [](const QString &str, OutputFormat fmt) { + if (fmt == OutputFormat::ErrorMessage) + showError(str); + }); } // Workaround for QDS-13763, when UL-10456 is completed this can be removed with the next LTS