Community
Participate
Working Groups
Version: working on plug-ins exported today (2008-06-05) I was forced to do a restart while having an activated task. This is what I got instead of the task editor after the restart: Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: Factory org.eclipse.mylyn.tasks.ui.elementFactories.task.editor returned null from createElement for editor id=org.eclipse.mylyn.tasks.ui.editors.task name=235653: User doc needs updating: CVS password management org.eclipse.ui.PartInitException: Factory org.eclipse.mylyn.tasks.ui.elementFactories.task.editor returned null from createElement for editor id=org.eclipse.mylyn.tasks.ui.editors.task name=235653: User doc needs updating: CVS password management at org.eclipse.ui.internal.EditorReference.getRestoredInput(EditorReference.java:367) at org.eclipse.ui.internal.EditorReference.getEditorInput(EditorReference.java:328) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:591) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266) at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1246) at org.eclipse.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1204) at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1384) at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1373) at org.eclipse.ui.internal.WorkbenchPage.access$14(WorkbenchPage.java:1364) at org.eclipse.ui.internal.WorkbenchPage$15.runWithException(WorkbenchPage.java:3261) 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:132) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3798) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3423) at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803) at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361) 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:132) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3798) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3423) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) 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:382) 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)
What makes me sad is that after I managed to open and activated the task I realized that the context got lost.
Sorry about that. Contexts are currently only saved on task deactivation. Implementing more frequent saving of contexts is tracked on bug 219173. *** This bug has been marked as a duplicate of bug 219173 ***
And what about the PartInitException from comment 0? This doesn't look good either, and I've just got it again working with Mylyn built this morning.
Reopening to investigate exception.
Tomasz, do you know if the editor that failed to restore was opened from a search result or hyperlink, meaning it was a task that was not in your task list? Rob, we probably need to a add a check to only save tasks from the task list to the memento.
It's getting to late for 3.0 to get this fixed. Need to defer to the next maintenance release.
(In reply to comment #5) > Tomasz, do you know if the editor that failed to restore was opened from a > search result or hyperlink, meaning it was a task that was not in your task > list? Sorry, I didn't pay much attention to this, don't remember. I will let you know as soon as I see it again.
*** Bug 235213 has been marked as a duplicate of this bug. ***
Created attachment 104952 [details] fix
Created attachment 104953 [details] mylyn/context/zip
Tasks that are not in the task list are not restored on restart in >3.0.0.I20080614-0400. Mik, please review.
*** Bug 244016 has been marked as a duplicate of this bug. ***