Bug 329953 - Add output filter for stdout of Qt applications
Summary: Add output filter for stdout of Qt applications
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: outputview (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-01-14 13:17 UTC by Kevin Funk
Modified: 2014-02-07 11:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2014-01-14 13:17:50 UTC
It would be very useful to able to click on messages which Qt spits out at runtime, such as:

qrc:/foo/qml/bar.qml:25: TypeError: Cannot read property '0' of undefined
-> Check if "foo/qml/bar.qml" points to a file in our current session and then just make sure we can  open that file right away

ASSERT: "!this->isEmpty()" in file ../../include/QtCore/../../../../../src/qt5/qtbase/src/corelib/tools/qstack.h, line 65
-> Same here

Note: Those particular examples are not even that expensive to parse via regex, as "ASSERT" and "qrc:" are always at the beginning of the line.

Reproducible: Always
Comment 1 Kevin Funk 2014-02-07 11:00:03 UTC
Git commit e5e1775c07f9add0a9b1f0688926f5fdc158e591 by Kevin Funk.
Committed on 07/02/2014 at 10:17.
Pushed by kfunk into branch 'master'.

Introduce NativeAppErrorFilteringStrategy

It's now possible to jump to runtime output error messages, such as
those from Qt:

Example (clickable) message:
ASSERT: "errors().isEmpty()" in file /tmp/foo/bar.cpp, line 49
REVIEW: 115533

M  +20   -0    outputview/outputfilteringstrategies.cpp
M  +15   -0    outputview/outputfilteringstrategies.h
M  +4    -0    outputview/outputmodel.cpp
M  +1    -0    outputview/outputmodel.h
M  +29   -0    outputview/tests/filteringstrategytest.cpp
M  +2    -0    outputview/tests/filteringstrategytest.h
M  +8    -2    plugins/execute/nativeappjob.cpp

http://commits.kde.org/kdevplatform/e5e1775c07f9add0a9b1f0688926f5fdc158e591