Bug 313796 - [Contribution] Build Selected File(s) silently fails on files that are excluded from build
Summary: [Contribution] Build Selected File(s) silently fails on files that are exclud...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 7.0   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 15:08 EDT by Miwako Tokugawa CLA
Modified: 2020-09-04 15:20 EDT (History)
1 user (show)

See Also:


Attachments
Patch - do not call builder for an excluded file (2.41 KB, patch)
2011-02-11 18:15 EST, Miwako Tokugawa CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miwako Tokugawa CLA 2010-05-20 15:08:04 EDT
Build Identifier: cdt7

Hi.
If you select "Build Selected File(s)" with a file that is marked "excluded from build", invokeInternalBuilder actually exceptions out because buildResource is null. However, Console simply displays
Reuilding selected file(s)
**** Internal Builder is used for build ****
without anything like
"Build Error" (I thought the catch clause was designed to print this).

Don't know what needs to be done.
Should the menu item be disabled for excluded files?
Or should the code be smarter that internalbuilder isn't called for excluded files?
Or nothing?

Reproducible: Always
Comment 1 Miwako Tokugawa CLA 2011-02-11 18:15:59 EST
Created attachment 188825 [details]
Patch - do not call builder for an excluded file