Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313811

Summary: Only last errors reported in Problems view when building multiple files with Build Selected File(s)
Product: [Tools] CDT Reporter: Miwako Tokugawa <miwako.tokugawa>
Component: cdt-build-managedAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Chris Recoskie <recoskie>
Severity: normal    
Priority: P3 CC: tracy
Version: 7.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Miwako Tokugawa CLA 2010-05-20 16:36:48 EDT
Build Identifier: cdt7

When Build Selected File(s) in the context menu is selected with multiple files, CDT calls invokeInternalBuilder for each file.
However, invokeInternalBuilder executes removeAllMarkers so any problems view error/warning/remark markers created for the Xth file is deleted when the function is called for the X+1th file, etc. So, only the markers that belong to the last file remain in the Problem View. 
If you were to collect all files and call invokeInternalBuilder once with it, then you'd have to be careful about hitting the problem with excluded files (Bug 313796)
 

Reproducible: Always
Comment 1 Miwako Tokugawa CLA 2010-06-16 18:44:58 EDT
Bug 221644 seems to be a duplicate.
It was filed earlier than this (313811) but I'm not marking this one as a duplicate since it, IMHO, contains more info.
Comment 2 Andrew Gvozdev CLA 2010-06-17 12:37:04 EDT
(In reply to comment #1)
> Bug 221644 seems to be a duplicate.
> It was filed earlier than this (313811) but I'm not marking this one as a
> duplicate since it, IMHO, contains more info.
However, bug 221644 got better Summary. To get the best from both let me change the summary of this bug and close the other one.
Comment 3 Andrew Gvozdev CLA 2010-06-17 12:37:31 EDT
*** Bug 221644 has been marked as a duplicate of this bug. ***
Comment 4 Andrew Gvozdev CLA 2012-03-22 00:37:19 EDT
This problem has been solved with commit for bug 71511. Now "Build Selected Files"/"Clean Selected Files" clean markers for each resource and just before it is being built/clean.