Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327921 - [Build selected File] Compiler Errors are not shown in Problems View
Summary: [Build selected File] Compiler Errors are not shown in Problems View
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 7.0.2   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
: 343186 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-15 13:06 EDT by Harald CLA
Modified: 2011-04-18 18:14 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot of change shown in compare editor (143.77 KB, image/jpeg)
2010-10-18 03:06 EDT, Harald CLA
angvoz.dev: iplog+
Details
The contribution (143.77 KB, image/jpeg)
2010-10-18 10:52 EDT, Harald CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***