pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

Unable to create editor ID com.dubture.twig.editor: No editor descriptor for id com.dubture.twig.editor #74

Open shakaran opened 11 years ago

shakaran commented 11 years ago

I cant start Eclipse and in logs appears:

$ eclipse -consoleLog
!SESSION 2013-05-30 01:01:06.362 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=es_ES
Command-line arguments:  -os linux -ws gtk -arch x86 -consoleLog

!ENTRY org.eclipse.ui 4 0 2013-05-30 01:01:13.955
!MESSAGE Unable to create editor ID com.dubture.twig.editor: No editor descriptor for id com.dubture.twig.editor
!STACK 1
org.eclipse.ui.PartInitException: No editor descriptor for id com.dubture.twig.editor
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:601)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
    at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
    at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
    at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
!SUBENTRY 1 org.eclipse.ui 4 0 2013-05-30 01:01:13.958
!MESSAGE No editor descriptor for id com.dubture.twig.editor

!ENTRY org.eclipse.ui 2 2 2013-05-30 01:01:14.073
!MESSAGE Ignored attempt to add saveable that was already registered
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: unknown saveable: org.eclipse.ui.internal.DefaultSaveable@c642e5 from part: org.eclipse.ui.internal.ErrorEditorPart@c642e5
    at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesList.java:187)
    at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList.java:116)
    at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesList.java:289)
    at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList.java:695)
    at org.eclipse.ui.internal.PartList.partOpened(PartList.java:234)
    at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
    at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList.java:40)
    at org.eclipse.ui.internal.WorkbenchPartReference.fireInternalPropertyChange(WorkbenchPartReference.java:375)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:610)
    at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
    at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
    at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
    at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
    at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
    at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3537)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2609)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

!ENTRY org.eclipse.ui 2 2 2013-05-30 01:01:15.423
!MESSAGE Perspective PHP has been made into a local copy
pulse00 commented 11 years ago

Please provide:

shakaran commented 11 years ago

@pulse00 Hi, the info requested is mostly attached in the eclipse report, but I detail here as you requested:

Let me know if you need more info about.

I suspect that I have missing some .jar file (com.dubture.twig.editor) for some weird reason:

ls ~/.eclipse/org.eclipse.platform_3.8_155965261/plugins/com.dubture.twig.*
/home/myuser/.eclipse/org.eclipse.platform_3.8_155965261/plugins/com.dubture.twig.core_1.0.109.jar
/home/myuser/.eclipse/org.eclipse.platform_3.8_155965261/plugins/com.dubture.twig.core.json_1.0.109.jar
/home/myuser/.eclipse/org.eclipse.platform_3.8_155965261/plugins/com.dubture.twig.ui_1.0.109.jar
pulse00 commented 11 years ago

@shakaran have you been installing the plugin from http://p2.dubture.com/ ? That version is pretty old. I'll publish a new stable version with the kepler release end of june.

Until then i'd recommend to use the latest milestone available at: http://p2-dev.pdt-extensions.org/

shakaran commented 11 years ago

@pulse00 believe me, I am trying to request a Ubuntu official Eclipse update for a most updated .deb version shipped by default https://bugs.launchpad.net/eclipse-ubuntu/+bug/1183998, but I don't get still any response (I try to contact to in IRC #debian-java, #eclipse-linux and #eclipse without success). I would thank you if you can support 3.8 too for now if not imply a lot work for you, because it can take around 6 months to ship in next upcoming Ubuntu Release and I am afraid that Eclipse PHP developers lost some percentage market by this issue.

Also, I have working a pararell and manual Eclipse 4.2 installation from default eclipse tarball, but most of ubuntu's users have not enough knowlegde for compress, configure, etc a manual eclipse installation. It just install from Ubuntu's software center with a click.

In other hand, yep, I use the http://p2.dubture.com I didn't know the other url. I found that url as first hit in google for twig eclipse. As suggestion, could be a good idea if you put a deprecation warning message or a simply redirection to new site.

Finally I manage for resolve the issue for start again Eclipse without errors with a temporal workaround. I start eclipse with strace for see what files open before to crash with:

strace -eopen eclipse -consoleLog

The I see that the ofending file with twig.editor was the worbench configuration file in ~/workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml

I remove all the config related to com.dubture.twig.editor and then I can fire up Eclipse again without Fatal errors. Yay!

For http://p2-dev.pdt-extensions.org/ repo it shows: "Cannot complete the request. See the error log for details. "Twig Editor Feature" will be ignored because a newer version is already installed. " It seems that version matching is failing because 1.0.109 is major than 1.0.13.201305040956 (109 vs 13). I have to uninstall the package for try to install the new.

So I have now working 1.0.13.201305040956 perfectly with Eclipse 3.8. I think that you can close the issue if it is all ok for you. Sorry for the noise and thanks for your support.

pulse00 commented 11 years ago

@shakaran regarding the 3.8 support: The 3.8 branch is supported by the twig plugin, it's just that the stable updatesite is not getting any new releases. right now i'm only pushing into the milestone updatesite.

I'll update the README of this repo to highlight that point.

Anyway, with the release of kepler, i'll update the p2.dubture.com repository with the latest version of the plugin, so you should be able to use it in 3.8 too - there's no explicit dependency to the eclipse 4 branch.

thanks for your patience ;)

pulse00 commented 11 years ago

one more thing: is there any reason you're using the packaged ubuntu eclipse version? you could just download the latest release.

shakaran commented 11 years ago

@pulse00 for me it is ok use the lastest and edge from eclipse download site (I even has 4.3 RC1 installation for testing), but I cannot suggest this for other collaborator or members in a team, begginers or people that only want develop without fight with tools. I always think in make easy the things for incomers.

The traditional way in ubuntu is install the packages, because it also place the config and paths, shorcuts, etc and a better general integration with the system.

pulse00 commented 11 years ago

I see. i agree with that, unfortunately ubuntu does not make this easy for us as it ships generally pretty outdated packages ;)

shakaran commented 11 years ago

@pulse00 If you want help me, you can post some developer plugin support in my bug for raise more attention. I am trying to move this for twitter and google plus, so maybe with a lot luck some Ubuntu developer takes the issue or raise the priority. Al least we have the power of open source for treat this.