Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342069 - Scanner discovery output is lost when running compiler specs command
Summary: Scanner discovery output is lost when running compiler specs command
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on: 340995 342640
Blocks:
  Show dependency tree
 
Reported: 2011-04-06 15:21 EDT by Andrew Gvozdev CLA
Modified: 2011-04-24 20:23 EDT (History)
1 user (show)

See Also:


Attachments
example patch (6.08 KB, patch)
2011-04-07 10:09 EDT, Andrew Gvozdev CLA
angvoz.dev: iplog-
Details | Diff
patch 2 (22.09 KB, patch)
2011-04-08 15:06 EDT, Andrew Gvozdev CLA
angvoz.dev: iplog-
Details | Diff

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