pulse00/Twig-Eclipse-Plugin — Issue #37: plugin crash on .twig file open
Author: laurentalsina
Created: 2011-11-29 14:57:50+00:00
State: open

Today (29.11.2011) I reinstalled a fresh Wamp (PHP 5.3.8), with a fresh Eclipse-PDT (Eclipse for PHP Developers Version 3.0.2)

I installed the latest Twig plugin, opened a .twig file, played around a little bit on this one file, had a silent error with a messagebox saying "Java null pointer exception", then and from now on, even after an Eclipse restart, trying to open any .twig file gives me this stack trace:

java.lang.NullPointerException
at org.eclipse.dltk.internal.core.index.sql.SqlSearchEngine.search(SqlSearchEngine.java:71)
at com.dubture.twig.core.model.TwigModelAccess.isTag(TwigModelAccess.java:313)
at com.dubture.twig.core.model.TwigModelAccess.isStartTag(TwigModelAccess.java:194)
at com.dubture.twig.core.model.TwigModelAccess.isTwigTag(TwigModelAccess.java:341)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.isTwigTag(ElementImplForTwig.java:109)
at com.dubture.twig.core.documentModel.dom.ElementImplForTwig.getExistingAdapter(ElementImplForTwig.java:118)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.addAdapterToNodeAndChildrenHTML(StructuredTextFoldingProviderPHP.java:1102)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.addAllAdapters(StructuredTextFoldingProviderPHP.java:1074)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.initialize(StructuredTextFoldingProviderPHP.java:1033)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.handleProjectionEnabled(StructuredTextFoldingProviderPHP.java:919)
at org.eclipse.php.internal.ui.folding.StructuredTextFoldingProviderPHP.projectionEnabled(StructuredTextFoldingProviderPHP.java:1926)
at org.eclipse.php.internal.ui.folding.PHPFoldingStructureProviderProxy.projectionEnabled(PHPFoldingStructureProviderProxy.java:43)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.installProjectionSupport(PHPStructuredEditor.java:2241)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(PHPStructuredEditor.java:2250)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
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.EditorReference.getEditor(EditorReference.java:289)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756)
at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)
at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)