Bug 333273 - Show progress bar for build tools that print progress
Summary: Show progress bar for build tools that print progress
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All build tools (show other bugs)
Version: 4.6.60
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-04-10 13:06 UTC by Kevin Funk
Modified: 2016-01-08 23:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2014-04-10 13:06:32 UTC
CMake-generated code emits progress information when being executed by make/ninja.

Since any make/ninja-run is basically wrapped by a KJob instance, we could try parsing the output of make/ninja and set the progress information using KJob-API. We could then later re-use this information in order to show a progress bar for these jobs. Currently, make/ninja jobs are not displayed in the status bar, which should be easy to enable, though.

Reproducible: Always

Steps to Reproduce:
1. Build target
Actual Results:  
Nothing displayed in the status bar

Expected Results:  
Progress bar pops up in the status bar, showing progress information of the build job.
Comment 1 Kevin Funk 2014-04-10 13:11:28 UTC
Disambiguating that a bit:
For make jobs:
- Output might not contain progress information. It depends on whether CMake was used to generate the Makefiles and -DCMAKE_COLOR_MAKEFILE=OFF was not specified.
For ninja jobs:
- Always(?) shows progress information in the form of "[1/10] ...\n[2/12]...\n...", etc. So we can always enable parsing this output in the ninja plugin.
Comment 2 Kevin Funk 2015-09-02 14:54:39 UTC
Implemented for the Ninja builder. Will be part of 5.0.0.
Comment 3 Kevin Funk 2016-01-08 23:21:11 UTC
Implemented for Make, too.