leemoa / cppcheclipse

Automatically exported from code.google.com/p/cppcheclipse
0 stars 0 forks source link

Java exception; no checking when included in 'headless' build #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using eclipse-based commercial IDE (RedSuite4), but I'm not sure its 
relevant.
2. Project properties for cppcheclipse set to "Run on build"
3. Building project from command line (outside GUI) using 
org.eclipse.cdt.managedbuilder.core.headlessbuild application.

I'll attach the eclipse error log.  I get a completed build, but without 
cppcheck run on the project.  My hope would be that cppcheclipse runs, so that 
I don't have to run cppcheck on a command line without the benefit of the 
eclipse project file.  But, if this isn't a supported feature, I'd like to be 
able to leave "Run on build" checked.  As it stands now, I get a failure dialog.

cppcheclipse is 0.9.7
cppcheck is 1.53
Eclipse Platform is Version: 3.6.2 (RedSuite v4.1.0 [Build 281])
Eclipse CDT is Version: 1.0.0.201102110609
java.version=1.6.0_24
OS is Windows XP, win32 x86

Please provide any additional information below.

I went to the vendor of the IDE first.  Here is his reply:
"Looking through the logs, the exception is being caused by cppcheck. It seems 
it has been written with a built-in assumption that the GUI is running. You 
will need to report this to whoever maintains this plugin. I have no experience 
of this plugin, but from what I can tell, you will have to remove the plugin 
for headless builds.
[Suggestion: You could install Red Suite twice, and install the plugin into the 
version you use interactively, and don't install it into the version you use 
'headless']"

Original issue reported on code.google.com by tierneyg...@gmail.com on 23 Feb 2012 at 6:59

Attachments:

GoogleCodeExporter commented 9 years ago
How do you want to visualize the error markers in cppcheclipse then? 

Original comment by konra...@gmx.de on 2 Sep 2012 at 10:22

GoogleCodeExporter commented 9 years ago
Headless builds will not be supported in the future, unless someone provides a 
patch for it.

Original comment by konra...@gmx.de on 18 Nov 2012 at 4:36