ipodipad / cppcheclipse

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

An internal error occurred during: "Running cppcheck". java.lang.String.isEmpty()Z #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install the plugin with this link
:http://cppcheclipse.googlecode.com/svn/update/site.xml
2. select a project or file 
3. right click and launch Run ccpcheck
4. I have the following message : An internal error occurred during:
"Running cppcheck". java.lang.String.isEmpty()Z

What is the expected output? What do you see instead?
I currently install ccpcheck so I don't know... I have error message windows

What version of the product are you using? On what operating system?
0.9.1.200910222140
with this eclipse version : 
Eclipse Platform Version: 3.4.2 Build id: M20090211-1700

Please provide any additional information below.

Original issue reported on code.google.com by martinbr...@gmail.com on 28 Oct 2009 at 11:05

GoogleCodeExporter commented 8 years ago
Please post the complete stacktrace, which you can find in the details of the 
error
message or in the error log of the workspace. Also please regard that you have 
to
enter the path to the cppcheck binary in Preferences->C/C++->cppcheclipse, 
before you
can run cppcheck. But nevertheless the error message should be different, if 
you just
forgot to specify that path.

Original comment by konra...@gmx.de on 28 Oct 2009 at 12:46

GoogleCodeExporter commented 8 years ago
ok I did not set the cppcheck path, (in fact I did not found any quick-guide or
documentation) 
BUT it is not working here there is the .log extract : 
---------------------------------------------------------------------
!ENTRY org.eclipse.ui 4 0 2009-10-28 14:20:12.385
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
    at
com.googlecode.cppcheclipse.command.AbstractCppCheckCommand.run(AbstractCppCheck
Command.java:184)
    at com.googlecode.cppcheclipse.command.VersionCommand.run(VersionCommand.java:16)
    at
com.googlecode.cppcheclipse.ui.preferences.BinaryFieldEditor.checkState(BinaryFi
eldEditor.java:32)
    at
org.eclipse.jface.preference.StringFieldEditor.refreshValidState(StringFieldEdit
or.java:400)
    at
org.eclipse.jface.preference.StringFieldEditor.valueChanged(StringFieldEditor.ja
va:502)
    at
org.eclipse.jface.preference.StringFieldEditor.setStringValue(StringFieldEditor.
java:445)
    at
org.eclipse.jface.preference.StringButtonFieldEditor$1.widgetSelected(StringButt
onFieldEditor.java:119)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionCont
ributionItem.java:583)
    at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.
java:500)
    at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContribution
Item.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
---------------------------------------------------------------------

I uninstall cppcheck (because it was in Program file directory) and re-install 
it in
c:/eclipse/ but I still have an error message (Cf. log and attach file)
do I miss some thing is there a documentation some where? 

thanks.

Original comment by martinbr...@gmail.com on 28 Oct 2009 at 1:26

Attachments:

GoogleCodeExporter commented 8 years ago
The only documentation so far is at
http://code.google.com/p/cppcheclipse/wiki/Installation. But thanks for the 
log, it
turns out I used a method (String.isEmpty()) which is only there with Java 6, 
but not
with Java 1.5. I will fix this in the next release, since cppcheclipse should be
compatible with Java 1.5 too.
The screenshot shows another error in preferences. To verify that, please also 
post
the log regarding that error.
By the way: it shouldn't be necessary to move the cppcheck binary to another 
folder.
It can also be executed from C:\Program Files

Original comment by konra...@gmx.de on 28 Oct 2009 at 1:43

GoogleCodeExporter commented 8 years ago
OKbut how could I work until the next release? do you have a workaround in mind 
?

please found attach the log and the 2 screen-shot of the 2 errors I have
but the first screen-shot was associated to the log I sent before.

thanks

Original comment by martinbr...@gmail.com on 28 Oct 2009 at 2:24

Attachments:

GoogleCodeExporter commented 8 years ago
I also found a second incompatibilty regarding Eclipse 3.4. I will check 
especially
against Eclipse 3.4 and Java 5 before releasing the next version. The only 
workaround
I can provide until the next release is ready, is upgrading Java to version 6 
and
Eclipse to version 3.5 (Galileo).

Original comment by konra...@gmx.de on 28 Oct 2009 at 3:01

GoogleCodeExporter commented 8 years ago
ok thanks

Original comment by martinbr...@gmail.com on 28 Oct 2009 at 3:02

GoogleCodeExporter commented 8 years ago
Version 0.9.2 works now with Eclipse 3.4 and Java 1.5.

Original comment by konra...@gmx.de on 31 Oct 2009 at 8:28