Community
Participate
Working Groups
Build ID: 3.4 RC3 Steps To Reproduce: I just try opening a C file from my CDT project and get immediately the attached two errors. Just because eclipse-SDK-3.4RC3-linux-gtk-x86_64.tar.gz doesn't contain CDT is no reason to fail! I expect that a normal editor is opened if CDT's one is not available. More information: eclipse.buildId=I20080530-1730 java.version=1.6.0_02 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE Command-line arguments: -os linux -ws gtk -arch x86_64 Error Mon Jun 02 17:12:41 CEST 2008 Problems occurred when invoking code from plug-in: "org.eclipse.jface". org.eclipse.core.runtime.AssertionFailedException: null argument: at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86) at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74) at org.eclipse.ui.internal.EditorSite.<init>(EditorSite.java:46) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:464) 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.EditorManager.findEditor(EditorManager.java:403) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2766) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99) at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99) at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:125) at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:329) at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:716) at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:443) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257) at org.eclipse.jface.util.OpenStrategy$1.mouseSelectItem(OpenStrategy.java:428) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:364) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1154) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3398) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3030) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) at org.eclipse.equinox.launcher.Main.main(Main.java:1212) eclipse.buildId=I20080530-1730 java.version=1.6.0_02 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE Command-line arguments: -os linux -ws gtk -arch x86_64 Error Mon Jun 02 17:12:41 CEST 2008 Unable to create editor ID org.eclipse.cdt.ui.editor.CEditor: No editor descriptor for id org.eclipse.cdt.ui.editor.CEditor org.eclipse.ui.PartInitException: No editor descriptor for id org.eclipse.cdt.ui.editor.CEditor at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:598) 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.EditorManager.findEditor(EditorManager.java:403) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2766) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99) at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99) at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:125) at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:329) at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:716) at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:443) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:880) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:263) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:257) at org.eclipse.jface.util.OpenStrategy$1.mouseSelectItem(OpenStrategy.java:428) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:364) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1154) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3398) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3030) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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) at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Does subsequent attempts open the file properly?
(In reply to comment #1) > Does subsequent attempts open the file properly? No, it doesn't. I tried opening from the Project Explorer and also Navigator view using double click. Just selecting Open from menu, doesn't display an error dialog but adds nevertheless an entry to the Error Log. Selecting Open With works for Text, System, Default editor well. After installing CDT all worked as expected.
(In reply to comment #2) > After installing CDT all worked as expected. It might be too late to find out now, but it seems that the default editor for some (all?) of your files was still set to one of the CDT editors.
(In reply to comment #3) > (In reply to comment #2) > > After installing CDT all worked as expected. > > It might be too late to find out now, but it seems that the default editor for > some (all?) of your files was still set to one of the CDT editors. I unpacked the tar.gz archive again and tried to reproduce. Nevertheless I cannot; per default an external editor (gvim) is used. Strange, I'm sure I didn't changed the default editor recently. Mhm, could it be related to the fact that the last time I used a fully (but older stable Europe one) eclipse I had some empty (grayed out?) editor windows open? This looked as another bug since these windows did not closed once I manually closed a project (but the file content inside the windows disappeared). So it is possible that one of these inactive text editor windows was a CDT one which confused Eclipse ... I cannot reproduce this as well. (In reply to comment #2) > (In reply to comment #1) > > Does subsequent attempts open the file properly? > > No, it doesn't. Please note that I didn't restarted Eclipse once I tried this.
(In reply to comment #4) > Mhm, could it be related to the fact that the last time I used a fully (but > older stable Europe one) eclipse I had some empty (grayed out?) editor windows > open? That could have been the cause. > This looked as another bug since these windows did not closed once I > manually closed a project (but the file content inside the windows > disappeared). Yes, this is tracked by bug 168554.
(In reply to comment #5) > (In reply to comment #4) > > This looked as another bug since these windows did not closed once I > > manually closed a project (but the file content inside the windows > > disappeared). > > Yes, this is tracked by bug 168554. Right, that's the bug I couldn't find. It seems indeed related. So I noticed that e.g. the default editor depends on the fact whether the file is or was open in such a damaged editor window. I will try it again once 168554 is fixed, currently it's useless.
Remy is now responsible for watching the [EditorMgmt] component area.
Bug 168554 was duped to Bug 41431, which still hasn't been fixed. However, this bug hasn't been touched in 5 years and there are no plans to work on bug 41431. The original problem was caused by a broken editor association so reproducing this on a current build is unlikely. Closing as INVALID. Feel free to reopen if it is still an issue.