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

Bug 342069

Summary: Scanner discovery output is lost when running compiler specs command
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-buildAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 340995, 342640    
Bug Blocks:    
Attachments:
Description Flags
example patch
angvoz.dev: iplog-
patch 2 angvoz.dev: iplog-

Description Andrew Gvozdev CLA 2011-04-06 15:21:38 EDT
It seems that the facilities to redirect output of scanner info command to a separate console are in place. But the console definition is missing in plugin.xml of org.eclipse.cdt.ui:
   
      <extension
         point="org.eclipse.cdt.core.CBuildConsole">
      <CBuildConsole
            class="org.eclipse.cdt.make.internal.ui.scannerconfig.ScannerDiscoveryConsole"
            id="org.eclipse.cdt.make.core.ExternalScannerInfoProviderConsole">
      </CBuildConsole>
   </extension>
Comment 1 Andrew Gvozdev CLA 2011-04-07 10:09:50 EDT
Created attachment 192743 [details]
example patch

Patch to start with
Comment 2 Andrew Gvozdev CLA 2011-04-08 15:06:27 EDT
Created attachment 192872 [details]
patch 2

More deliberate patch with a preference in project properties. This has a downside that each scanner command overwrites previous output, so while usually scanner discovery is run for several languages (C and C++) only the output for the last language stays in the console.
Comment 3 Andrew Gvozdev CLA 2011-04-08 15:49:24 EDT
(In reply to comment #2)
> Created attachment 192872 [details]
> patch 2
> More deliberate patch with a preference in project properties. This has a
> downside that each scanner command overwrites previous output, so while usually
> scanner discovery is run for several languages (C and C++) only the output for
> the last language stays in the console.
... and scanner discovery output overwrites regular build output in log file. Gosh I thought that patch was close...
Comment 5 Andrew Gvozdev CLA 2011-04-23 23:51:40 EDT
Fixed on HEAD (8.0).
Comment 7 CDT Genie CLA 2011-04-24 20:23:13 EDT
*** cdt cvs genie on behalf of agvozdev ***
Bug 342069: Fixed failing Hudson unit tests

[*] CfgInfoContext.java 1.9 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/build/core/scannerconfig/CfgInfoContext.java?root=Tools_Project&r1=1.8&r2=1.9