OutputView: Remove output rewriting feature
ClosedPublic

Authored by kfunk on Jan 7 2016, 11:31 PM.

Details

Summary

Just show the plain output to the users, as he would see when invoking
the build tool inside the terminal.

Don't rewrite the output, always show the full output. I don't think
there's a reason to support rewriting the output altogether, it's only
misleading for the user.

As discussed in bug 354143

BUG: 354143
CCBUG: 194403

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kfunk updated this revision to Diff 1777.Jan 7 2016, 11:31 PM
kfunk retitled this revision from to OutputView: Remove output rewriting feature.
kfunk updated this object.
kfunk edited the test plan for this revision. (Show Details)
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptJan 7 2016, 11:31 PM
kfunk updated this revision to Diff 1778.Jan 7 2016, 11:32 PM

Updated the commit message

kfunk updated this object.Jan 7 2016, 11:33 PM
kfunk added a project: KDevelop.
volden added a subscriber: volden.Jan 8 2016, 10:17 AM

I agree that this patch is the way to go. If the use of Action formats label member is removed in output filtering strategies, I don't think it is used anywhere else and can probably be removed altogether (Not 100% sure though).

kfunk added a comment.Jan 8 2016, 10:28 AM

@volden: Thanks for your input, well appreciated (your the original author after all!)

Yes, you're right, ActionFormat::label can be removed as well it seems. Will fix.

kfunk updated this revision to Diff 1785.Jan 8 2016, 11:01 AM

Remove label, too

volden added a comment.Jan 8 2016, 1:18 PM

In ActionFormat ctor,you are initializing a Qstring with an int - is that intentional or? Actually I'm not sure that the toolgroup is needed as well.

volden added a comment.Jan 8 2016, 1:21 PM

Also, unrelated to your patch, I can see that there must be an error in the line: ActionFormat( 1, 2, QStringLiteral("^linking (.*)") ) since the numbers refer to match groups in the regular expression. As far as I can see there is only one match group in this regex.

mwolff accepted this revision.Jan 8 2016, 4:20 PM
mwolff added a reviewer: mwolff.
mwolff added a subscriber: mwolff.

lgtm

This revision is now accepted and ready to land.Jan 8 2016, 4:20 PM
kfunk added a comment.Jan 8 2016, 9:07 PM
In D757#14401, @volden wrote:

In ActionFormat ctor,you are initializing a Qstring with an int - is that intentional or? Actually I'm not sure that the toolgroup is needed as well.

Thanks, good catch!

This revision was automatically updated to reflect the committed changes.