forked from qt-creator/qt-creator
CMakeProjectManager: Check for generic ninja error message
... in the output parser. This improves the user experience for the edge case that the failing tool did not emit a (known) error message, and does not hurt otherwise. Fixes: QTCREATORBUG-27606 Change-Id: I74cd327b1daff80ea2f46620e9d169a3db73578e Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -64,6 +64,13 @@ void CMakeParser::setSourceDirectory(const QString &sourceDir)
|
||||
|
||||
OutputLineParser::Result CMakeParser::handleLine(const QString &line, OutputFormat type)
|
||||
{
|
||||
if (line.startsWith("ninja: build stopped")) {
|
||||
m_lastTask = BuildSystemTask(Task::Error, line);
|
||||
m_lines = 1;
|
||||
flush();
|
||||
return Status::Done;
|
||||
}
|
||||
|
||||
if (type != StdErrFormat)
|
||||
return Status::NotHandled;
|
||||
|
||||
|
Reference in New Issue
Block a user