diff --git a/outputview/outputfilteringstrategies.cpp b/outputview/outputfilteringstrategies.cpp --- a/outputview/outputfilteringstrategies.cpp +++ b/outputview/outputfilteringstrategies.cpp @@ -414,8 +414,13 @@ // ... // Loc: [Unknown file(0)] ErrorFormat(QStringLiteral(" Loc: \\[(.*)\\(([1-9][0-9]*)\\)\\]"), 1, 2, -1), + // file:///path/to/foo.qml:7:1: Bar is not a type - ErrorFormat(QStringLiteral("(file:\\/\\/(?:.+)):([1-9][0-9]*):([1-9][0-9]*): (.+) (?:is not a type|is ambiguous\\.|is instantiated recursively)"), 1, 2, -1, 3) + // file:///path/to/foo.qml:49:5: QML Row: Binding loop detected for property "height" + ErrorFormat(QStringLiteral("(file:\\/\\/(?:[^:]+)):([1-9][0-9]*):([1-9][0-9]*): (.*) (?:is not a type|is ambiguous|is instantiated recursively|Binding loop detected)"), 1, 2, -1, 3), + + // file:///path/to/foo.qml:52: TypeError: Cannot read property 'height' of null + ErrorFormat(QStringLiteral("(file:\\/\\/(?:[^:]+)):([1-9][0-9]*): ([a-zA-Z]+)Error"), 1, 2, -1), // END: Qt }; diff --git a/outputview/tests/test_filteringstrategy.cpp b/outputview/tests/test_filteringstrategy.cpp --- a/outputview/tests/test_filteringstrategy.cpp +++ b/outputview/tests/test_filteringstrategy.cpp @@ -267,6 +267,18 @@ << "file:///path/to/foo.qml:7:1: Bar is instantiated recursively" << "/path/to/foo.qml" << 6 << 0 << FilteredItem::ErrorItem; + QTest::newRow("qml-typeerror") + << "file:///path/to/foo.qml:7: TypeError: Cannot read property 'height' of null" + << "/path/to/foo.qml" + << 6 << 0 << FilteredItem::ErrorItem; + QTest::newRow("qml-referenceerror") + << "file:///path/to/foo.qml:7: ReferenceError: readOnly is not defined" + << "/path/to/foo.qml" + << 6 << 0 << FilteredItem::ErrorItem; + QTest::newRow("qml-bindingloop") + << "file:///path/to/foo.qml:7:5: QML Row: Binding loop detected for property \"height\"" + << "/path/to/foo.qml" + << 6 << 4 << FilteredItem::ErrorItem; // END: Qt }