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

Bug 327921

Summary: [Build selected File] Compiler Errors are not shown in Problems View
Product: [Tools] CDT Reporter: Harald <Harald.Kaestel-Baumgartner>
Component: cdt-build-managedAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug, mnazario, yevshif
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screenshot of change shown in compare editor
angvoz.dev: iplog+
The contribution none

Description Harald CLA 2010-10-15 13:06:12 EDT
Build Identifier: 6.0.0.201004122116

I've seen, that following call in the blue print is wrong (I think):
  int status = stepBuilder.build( consoleOutStream, epmOutputStream, 
                   new SubProgressMonitor( monitor, 1, subProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
 
epmOutputStream is the stream of the ErrorParserManager an consoleOutStream the stream of the console. 
 
With our toolchain we've the problem, that for the compile errors no problem markers are generated, when the command "Build selected File(s)" is executed. I think they are not on the err stream and thus are not scanned by the ErrorParserManager. 

I've patched in my CDT the call to 
  int status = stepBuilder.build( epmOutputStream, epmOutputStream, 
                   new SubProgressMonitor(monitor, 1, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
and the problem markers are generated.


Reproducible: Always

Steps to Reproduce:
MBS with internal builder
1. Select a c file with errors
2. Run command "Build selected File(s)"
3. Now Problem marker is generated
Comment 1 Andrew Gvozdev CLA 2010-10-15 15:36:09 EDT
Could you make a patch in eclipse via project context menu->Team->Create Patch and submit as an attachment?
Comment 2 Harald CLA 2010-10-18 03:06:17 EDT
Created attachment 181070 [details]
Screenshot of change shown in compare editor
Comment 3 Harald CLA 2010-10-18 03:20:25 EDT
(In reply to comment #1)
> Could you make a patch in eclipse via project context menu->Team->Create Patch
> and submit as an attachment?

Unfortunatly not. No CVS -> No patch ;) 
CVS is not working, but that's another story.
I usually import the sources directly from the installed plugin.
Comment 4 Andrew Gvozdev CLA 2010-10-18 10:23:07 EDT
I checked your fix and it works. I need an attachment from you for bureaucratic purpose, so the fact of your contribution is recorded in IP log properly. Any attachment will do, the one from comment 2 is just fine.

Committed on HEAD (8.0) and 7.0.2 stream. Thanks for the fix!
Comment 5 Harald CLA 2010-10-18 10:52:44 EDT
Created attachment 181102 [details]
The contribution

As requested. Once again.
Comment 6 Andrew Gvozdev CLA 2011-04-18 18:14:12 EDT
*** Bug 343186 has been marked as a duplicate of this bug. ***