Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 280652

Summary: Update causes Could not open the editor error
Product: z_Archived Reporter: Russ <falcondfw>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: ashnazg, christophe.meresse, daniel_megert, gadi, jmuhlbock, robert, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Russ CLA 2009-06-17 13:51:28 EDT
Build ID: M20090211-1700

Steps To Reproduce:
1.I was working in a php file
2. Auto update said there was an update to the DLTK
3. downloaded and installed the update
4. restart editor get the "Could not open the editor:Editor could not be initialized" error for any files that were open before restart.


More information:
Here is the core dump:

java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.php.internal.core.compiler.ast.nodes.PHPVariableKind
	at org.eclipse.php.internal.core.compiler.ast.parser.php5.CUP$Php5AstParser$actions.CUP$Php5AstParser$do_action(Php5AstParser.java:6916)
	at org.eclipse.php.internal.core.compiler.ast.parser.php5.Php5AstParser.do_action(Php5AstParser.java:2458)
	at java_cup.runtime.lr_parser.parse(lr_parser.java:569)
	at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:48)
	at org.eclipse.php.internal.core.compiler.ast.parser.php5.Php5SourceParser.parse(Php5SourceParser.java:35)
	at org.eclipse.php.internal.core.compiler.ast.parser.AbstractPHPSourceParser.parse(AbstractPHPSourceParser.java:35)
	at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceParserFactory.parse(PHPSourceParserFactory.java:32)
	at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:120)
	at org.eclipse.dltk.core.SourceParserUtil.getModuleDeclaration(SourceParserUtil.java:45)
	at org.eclipse.dltk.core.AbstractSourceElementParser.parse(AbstractSourceElementParser.java:48)
	at org.eclipse.dltk.core.AbstractSourceElementParser.parseSourceModule(AbstractSourceElementParser.java:28)
	at org.eclipse.php.internal.core.compiler.ast.parser.PHPSourceElementParser.parseSourceModule(PHPSourceElementParser.java:25)
	at org.eclipse.dltk.core.SourceParserUtil.parseSourceModule(SourceParserUtil.java:237)
	at org.eclipse.dltk.internal.core.AbstractSourceModule.buildStructure(AbstractSourceModule.java:529)
	at org.eclipse.dltk.internal.core.Openable.generateInfos(Openable.java:182)
	at org.eclipse.dltk.internal.core.ModelElement.openWhenClosed(ModelElement.java:177)
	at org.eclipse.dltk.internal.core.BecomeWorkingCopyOperation.executeOperation(BecomeWorkingCopyOperation.java:42)
	at org.eclipse.dltk.internal.core.ModelOperation.run(ModelOperation.java:698)
	at org.eclipse.dltk.internal.core.ModelOperation.runOperation(ModelOperation.java:763)
	at org.eclipse.dltk.internal.core.SourceModule.becomeWorkingCopy(SourceModule.java:70)
	at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.createFileInfo(SourceModuleDocumentProvider.java:1271)
	at org.eclipse.ui.editors.text.TextFileDocumentProvider.connect(TextFileDocumentProvider.java:476)
	at org.eclipse.dltk.internal.ui.editor.SourceModuleDocumentProvider.connect(SourceModuleDocumentProvider.java:1517)
	at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:3991)
	at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:190)
	at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1325)
	at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor.java:165)
	at org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(StructuredTextEditor.java:1738)
	at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.doSetInput(PHPStructuredEditor.java:2023)
	at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3026)
	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
	at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
	at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)
	at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3044)
	at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3071)
	at org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredTextEditor.java:2330)
	at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init(PHPStructuredEditor.java:1034)
	at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
	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.PartPane.setVisible(PartPane.java:306)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1608)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:779)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:678)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:639)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2817)
	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:70)
	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.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:408)
	at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:166)
	at org.eclipse.dltk.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:45)
	at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:256)
	at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:237)
	at org.eclipse.dltk.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:259)
	at org.eclipse.dltk.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:235)
	at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerActionGroup.handleOpen(ScriptExplorerActionGroup.java:304)
	at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart$4.open(ScriptExplorerPart.java:662)
	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.handleEvent(OpenStrategy.java:297)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
	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: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:386)
	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)

If there is a workaround that will get my editor up and running until this is fixed, I would greatly appreciate being told what it is.
Comment 1 Jeff Muhlbock CLA 2009-06-17 17:18:59 EDT
I was experiencing the same problem.  I hadn't done a software update in a while, and updated Eclipse 3.4.0 to 3.4.2 and this problem came up.  Then, I downloaded Eclipse 3.5-RC4.  I installed the PDT 2.1 all-in-one package and added that as an update.  Same problem :(

I managed to solve the problem by blowing away everything, and downloading the PDT 3.5-RC4 package and installing that. Not an ideal solution, but it got me up and working again.

Comment 2 Dani Megert CLA 2009-06-18 02:29:27 EDT
See also bug 280513.
Comment 3 Michael Spector CLA 2009-06-18 09:09:17 EDT
Fixed. DLTK has had some incompatible API changes in their last integration build, but now it's fixed with PDT 2.1.0RC5 release.
Comment 4 Christophe Meresse CLA 2009-06-18 16:15:34 EDT
I can confirm that it is fixed in 2.1.0 (for eclipse 3.5) but how can we do for eclipse 3.4 ? I do not think that 2.1.0 is installable for 3.4, is it ?
Comment 5 Chuck Burgess CLA 2009-06-18 16:26:10 EDT
As info, my attempts to revert configuration did not solve this issue with my v3.4.2... I even went back a full month, and still had this editor error.
Comment 6 Renato Silva CLA 2009-06-19 00:43:28 EDT
The reported error is in Ganymede, not Galileo. I wonder if the bug was happening in Galileo too, because no one here mentioned that.

The same error is happening here. After a few DLTK dev updates I've noticed that PDT crashed after trying to open a PHP file. Then I tried to revert to previous configurations, without success.

Is this bug really fixed? I don't think so.
Comment 7 Michael Spector CLA 2009-06-21 04:06:25 EDT
(In reply to comment #6)
> The reported error is in Ganymede, not Galileo. I wonder if the bug was
> happening in Galileo too, because no one here mentioned that.
> 
> The same error is happening here. After a few DLTK dev updates I've noticed
> that PDT crashed after trying to open a PHP file. Then I tried to revert to
> previous configurations, without success.
> 
> Is this bug really fixed? I don't think so.
> 

Did you update PDT too? What are current versions of DLTK & PDT features?
Comment 8 Renato Silva CLA 2009-06-21 04:21:45 EDT
Please see http://dev.eclipse.org/mhonarc/lists/dltk-dev/msg01697.html.
Comment 9 Renato Silva CLA 2009-06-21 04:32:01 EDT
Is PDT 2.1 supposed to work with Ganymede too? I can't find any information about this, and I get an error about SWT when trying to install it.

I think that DLTK team could create a maintenance CVS branch and update site for Ganymede based from HEAD, and PDT team could do the same for the last compatible version, which I believe is 2.0.1.
Comment 10 Michael Spector CLA 2009-06-21 04:34:07 EDT
(In reply to comment #9)
> Is PDT 2.1 supposed to work with Ganymede too? I can't find any information
> about this, and I get an error about SWT when trying to install it.
> 
> I think that DLTK team could create a maintenance CVS branch and update site
> for Ganymede based from HEAD, and PDT team could do the same for the last
> compatible version, which I believe is 2.0.1.
> 

No, PDT 2.1 is compatible with Galileo release only.
Comment 11 Renato Silva CLA 2009-06-21 04:40:36 EDT
Ok, then I reinforce my suggestion.
Comment 12 Robert Kuropkat CLA 2009-07-20 16:11:03 EDT
I see this marked as fixed, but don't see directions for getting the fix.  I still have Eclipse 3.4.2 and PDT 2.0.0.  Search for updates shows nothing to update.  I saw a note in another bug about possibly putting the bug fix on a different update site.  Did that actually occur?
Comment 13 Gadi Goldbarg CLA 2010-01-22 09:41:00 EST
Did not see the problem with update from site and update with downloaded update to Build id: 20090920-1017

-- Verified by Teodor Kirkov --
-- teodor.k@zend.com --