tweezy23 / anyedittools

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

Problems using 2.4.6.201402042330 with Eclipse 3.6 #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've previously been using AnyEdit with an old Eclipse 3.6-based development 
environment that I created back in 2011.  I recently had to reinstall that 
environment.  I grabbed the latest AnyEdit version, which is not working.

When I go to project preferences, I see the error:

   Please enable "AnyEdit tools" on "General->Startup and Shutdown" page and restart Eclipse".  

The plugin log reports the following exception:

java.lang.NoSuchMethodError: 
org/osgi/framework/Version.compareTo(Lorg/osgi/framework/Version;)I
   at de.loskutov.anyedit.AnyEditToolsPlugin.earlyStartup(AnyEditToolsPlugin.java:117)
   at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
   at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:73)
   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
   at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 

The code it's complaining about is in the earlyStartup() method:

    public void earlyStartup() {
        // hooks into the global toolbar/menu
        if(EclipseUtils.getWorkbenchVersion().compareTo(new Version(3,7,0)) >= 0) {
            new StartupHelper2().init();
        } else {
            new StartupHelper().init();
        }
        setSaveHookInitialized(true);
    }

I guess org.osgi.framework.Version in my environment doesn't have a compareTo() 
method?

Original issue reported on code.google.com by prono...@gmail.com on 9 Jun 2014 at 4:00

GoogleCodeExporter commented 9 years ago
Version details:

OS: 
Windows 7 Enterprise

Eclipse: 
Version: 3.6.2, Build id: M20110210-1200

JDK:
java version "1.6.0"
Java(TM) SE Runtime Environment (build 
pwa6460sr13ifix-20130303_02(SR13+IV37419))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 
jvmwa6460sr13-20130114_134867 (JIT enabled, AOT enabled)

Original comment by prono...@gmail.com on 9 Jun 2014 at 4:14

GoogleCodeExporter commented 9 years ago
Also, I found an old version of the plugin in a backup (2.4.2.201205131655).  
This is apparently the version I was using before I reinstalled my development 
environment.  I fell back to this version, and it works.

Original comment by prono...@gmail.com on 9 Jun 2014 at 4:17

GoogleCodeExporter commented 9 years ago
Yep. My fault, sorry.

Original comment by iloveeclipse on 22 Jun 2014 at 8:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision f1200f8a3c71.

Original comment by iloveeclipse on 22 Jun 2014 at 8:45

GoogleCodeExporter commented 9 years ago
@provonic: can you please check the 2.4.7 version I've just uploaded?
Should now work on Eclipse 3.6.
Due the crazy gtk issues on Ubuntu 14.04 I can't even run Eclipse 3.6 without 
immediate crash...
Regards,
Andrey

Original comment by iloveeclipse on 22 Jun 2014 at 11:58

GoogleCodeExporter commented 9 years ago
I'll check it as soon as I can -- hopefully tomorrow.

Original comment by prono...@gmail.com on 22 Jun 2014 at 4:48

GoogleCodeExporter commented 9 years ago
I grabbed the jar from:

http://dl.bintray.com/iloveeclipse/plugins/#de.loskutov.anyedit.AnyEditTools_2.4
.7.201406221324.jar

and put it in my dropins folder.  It seems to work with no problems.

Thanks for the fix.

Original comment by prono...@gmail.com on 23 Jun 2014 at 5:49

GoogleCodeExporter commented 9 years ago
I have the same problem with version 2.4.13.201503032100 in Eclipse Kepler 
(Build 20140224-0627) on Windows 7 Prof SP1. I have tried to de-active the 
plugin, and after re-start of Eclipse to re-activate it, but it does not work 
even after the second re-start. Could you please fix it?

Original comment by szaboma...@gmail.com on 25 Mar 2015 at 10:04

GoogleCodeExporter commented 9 years ago
@szabomajki: can you please attach here the stack trace?

Original comment by iloveeclipse on 30 Mar 2015 at 5:56