From 8f58e1a9e00ae06e15e84a230bb6fc323586740b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 4 Sep 2023 19:02:52 +0200 Subject: [PATCH] DIALOG_EXPORT_STEP_LOG: print the command line sent to kicad-cli in report window. It can be useful in case of problems. (cherry picked from commit 2bf86029122a457306dbd4749ea68cd9d062b201) --- pcbnew/dialogs/dialog_export_step_process.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_export_step_process.cpp b/pcbnew/dialogs/dialog_export_step_process.cpp index 03553ca130..040764c32c 100644 --- a/pcbnew/dialogs/dialog_export_step_process.cpp +++ b/pcbnew/dialogs/dialog_export_step_process.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KICAD, a free EDA CAD application. * - * Copyright (C) 2022 Kicad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2023 Kicad Developers, see AUTHORS.txt for contributors. * Copyright (C) 2020 New Pagodi(https://stackoverflow.com/users/6846682/new-pagodi) * from https://stackoverflow.com/a/63289812/1522001 * @@ -205,6 +205,12 @@ DIALOG_EXPORT_STEP_LOG::DIALOG_EXPORT_STEP_LOG( wxWindow* aParent, wxString aSte Bind( wxEVT_THREAD_STDERR, &DIALOG_EXPORT_STEP_LOG::onThreadInput, this ); Bind( wxEVT_CLOSE_WINDOW, &DIALOG_EXPORT_STEP_LOG::onClose, this ); + // Print the command line used to run kicad-cli. + // it can be useful if kicad-cli as a problem. + m_textCtrlLog->AppendText( _( "Command line:\n" ) ); + m_textCtrlLog->AppendText( aStepCmd ); + m_textCtrlLog->AppendText( wxT( "\n\n" ) ); + m_stdioThread = new STDSTREAM_THREAD( this, m_process, m_msgQueue ); m_stdioThread->Run();