Bug 462898

Summary: [wish] Better visual indication of compilation warnings/errors existence
Product: [Applications] kdevelop Reporter: a.sum.duma
Component: Output ViewsAssignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: wishlist CC: igorkuo
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The "build" tool view in current form

Description a.sum.duma 2022-12-11 11:07:03 UTC
Created attachment 154492 [details]
The "build" tool view in current form

SUMMARY
I suggest to improve visual indication of the fact that warnings/errors occurred while building a project. Colouring warning/error lines in the "Build" tool view is insufficient.

DETAILED DESCRIPTION
When building a project, we can observe compiler output in the "Build" tool view. Warning/error lines are coloured yellow/red and we can jump from one to another using the arrow buttons located on the toolbar of the tool view. However, it can be easy to miss the fact that any warnings/errors actually occurred, especially warnings when compilation process is long and outputs many lines. I suggest to add some visual indication of the fact that warnings/errors occurred and perhaps indication of their count.

IMPLEMENTATION IDEAS
* grey out (disable) the first/prev/next/last arrow buttons if there are no warnings/errors
* show somewhere an icon and/or a label indicating warnings/errors existence and perhaps their count:
 - on the button that toggles the "Build" tool view (the advantage is that it would be visible even if we switch to other tool view)
 - on the toolbar of the "Build" tool view
* add to the toolbar of the "Build" tool view new buttons for quick filtering by warnings/errors, their appearance would indicate warnings/errors existence i.e. greyed out or not
Comment 1 Igor Kushnir 2022-12-12 08:15:16 UTC
The proposed functionality, especially the third idea, overlaps with the already existing Problems tool view. Though they are not the same, because the Problems tool view does not show build issues, only Clang parser and static analyzer issues.

I agree that the "grey out" and the error/warning counts ideas are good and easy enough to implement. I doubt adding indicators to the tool-view-toggling button is straightforward to implement, but to the toolbar - should be easy. Merge requests at https://invent.kde.org/kdevelop/kdevelop/-/merge_requests are welcome.
Comment 2 Igor Kushnir 2022-12-14 08:01:02 UTC
One more tab could be added to the Problems tool view - with warnings and errors of the last compilation. This would allow to see the number of compilation issues of each type and filter the issues by type.