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

Bug 343700

Summary: Exceptions during Build Selected Files operation are not displayed in the Build Console
Product: [Tools] CDT Reporter: Alex Freidin <freidin.alex>
Component: cdt-build-managedAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Chris Recoskie <recoskie>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0.1   
Target Milestone: 7.0.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch angvoz.dev: iplog+

Description Alex Freidin CLA 2011-04-24 07:43:24 EDT
Build Identifier: M20100909-0800

If there is an exception during Build Selected Files operation, the Internal Builder doesn't print the error message to the Build Console and doesn't close the console streams. The exception handling in GeneratedMakefileBuilder.invokeInternalBuilder(IResource[] resourcesToBuild, IConfiguration...) is incomplete.

Reproducible: Always
Comment 1 Alex Freidin CLA 2011-04-24 07:49:03 EDT
Created attachment 193965 [details]
Patch

Added the missing exception handling from the sibling method: invokeInternalBuilder(IConfiguration cfg, ...)
Patch is based on CDT 7.0.1 sources, but relevant also for HEAD (1.82 version of the file).
Comment 2 Andrew Gvozdev CLA 2011-04-26 18:36:49 EDT
Committed on HEAD and 7.0.X with some beautification stuff if I can call it that. Thanks for the patch.
Comment 4 Alex Freidin CLA 2011-04-27 03:31:12 EDT
Thanks for applying!