Wednesday 20 January 2010

PyDev Fails: No editor descriptor

This has happen twice now, and it's rather frustrating! I use PyDev for my Python development, it's rather nice.. I like it a lot. However, when I then install a different perspective in eclipse it dies! It happened when I tried to install CDT and now it happens with PHP. This is the error when trying to view a Python file now:

Could not open the editor: No editor descriptor for id org.python.pydev.editor.PythonEditor

org.eclipse.ui.PartInitException: No editor descriptor for id org.python.pydev.editor.PythonEditor
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:598)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462)
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:1417)
at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:942)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbench.java:1384)
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:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

The solution last time was to hunt down every trace of eclipse on the computer (thanks for having no uninstaller eclipse) and then to a full reinstall, and rebuild the workspace.

If you know of a better solution please comment to let me know!

9 comments:

Thomas said...

No solution for you, but I have the exact same problem on updating PyDev. After restarting, eclipse mysteriously can't find the python editor or perspective.

Ole said...

I work with eclipse and pydev under GNU/Linux, I had the same problem. What I've done is remove my .eclipse/ personal directory (it includes the pydev plugin) and then I restart eclipse so it hasn't got pydev. Then I reinstall pydev Help -> Install new software...

Ole said...

Is not clean, but is quite more fast than reinstalling eclipse, moreover, reinstall eclipse don't warrant solve the problem (the .eclipse/ directory) will still being there and eclipse will automatically read it.

Hope this helps ;).

Unknown said...
This comment has been removed by the author.
Unknown said...

I've had the same problem many times. What I usually do is to "REVERT" the system settings, i.e. set it back to a previous state. Here's how its done:
1) Select Help> About Eclipse...
2) From the "About Eclipse" dialog box, press "Installation Details" button
3) Select the "Installation History" tab
4) Select one of the previous configurations from the list and press "Revert".

It doesn't ALWAYS work though, and I don't know why this is so. :(

Hope this can be of any help next time if it ever happens again (hopefully not)... :)

Anonymous said...

The issue is in bundle.info under ~/.eclipse. Check the location of org.eclipse.equinox.concurrent. It is probably wrong.

See debian bug #587657 for more info.

Michael Benin said...

This is the third time this has happened to me. Glad its nothing new...VERY FRUSTRATING INDEED

Vins said...

I've encountered same problem when My eclipse got updated from Galileo to Indigo. I just copied the folders features and plugins from old version to new version.
Go to home/.eclipse/org.eclipse.platform_3.5.0_155965261 directory, copy features and plugins folder to org.eclipse.platform_3.7.0_155965261 folder
Restart your eclipse. It should work normally : )

JBoyd said...

Thanks Vin,

Had exact problem and your method worked.

John.