Skip to content

Add cmake error to build failure dialog

Timo Mueller yocto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4plugins/cmake: Allow multiple targets when logging process outputplugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/util/SystemProcess.java+6 -40 replies
2/4plugins/cmake: Enable separate capturing of cmake stderrplugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/util/SystemProcess.java+23 -10 replies
3/4plugins/cmake: Use generic output streamplugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/job/ExecuteConfigureJob.java+2 -10 replies
4/4plugins/cmake: Add cmake error message to error dialogplugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/YoctoCMakeMessages.properties plugins/org.yocto.cmake.managedbuilder/src/org/yocto/cmake/managedbuilder/job/ExecuteConfigureJob.java+8 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [eclipse][PATCH 0/4] Add cmake error to build failure dialog

From: Timo Mueller <[email protected]>

Hi,

when problems occured during configuring the project with CMake we showed a messge dialog with a generic 'build failed' method. In parallel the reason for the error was captured in the configuration console. But as the dialog did not contain any note on the existence of this console the user might end up with no hint on what went wrong and how he can fix it.

To help the user fix syntax errors or other errors with CMake the error is captured and added to the message dialog. While complete CMake log is still available in the configuration console, the dialog now contains all information on what went wrong, e.g. CMake Error at CMakeLists.txt:8 (include_directoriesBOGUS):
Unknown CMake command "include_directoriesBOGUS".

01..03: Enable logging the stderr from CMake to a console while capturing it in a string
04: Add the reported CMake error to the configuration error dialog

Best regards,
Timo

Timo Mueller (4):
plugins/cmake: Allow multiple targets when logging process output plugins/cmake: Enable separate capturing of cmake stderr plugins/cmake: Use generic output stream plugins/cmake: Add cmake error message to error dialog

 .../managedbuilder/YoctoCMakeMessages.properties   |  2 +-
 .../managedbuilder/job/ExecuteConfigureJob.java    | 12 +++++---
 .../cmake/managedbuilder/util/SystemProcess.java   | 34 ++++++++++++++++++----
 3 files changed, 38 insertions(+), 10 deletions(-)
Signature · 1 line
1.9.0