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:
Christian Kandeler
2022-06-14 11:48:25 +02:00
parent 04a23c38f0
commit 56e838da70

View File

@@ -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;