Project: aptanastudio
Issue APSTUD-4573: PHP: Assertion Failed error due to a syntax error
PHP editor crashed due to a syntax error. I was not able to reopen the file until I manually removed the following (invalid) line: header("Location: URL_HOST.URL_LINK."/".$url); Here is the log returned upon crash: {code} org.eclipse.core.runtime.AssertionFailedException: assertion failed: org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) org.eclipse.core.runtime.Assert.isTrue(Assert.java:96) org.eclipse.jface.text.Position.(Position.java:63) org.eclipse.jface.text.TypedPosition.(TypedPosition.java:35) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.storeScope(ThemeingDamagerRepairer.java:285) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.getTokenTextAttribute(ThemeingDamagerRepairer.java:231) org.eclipse.jface.text.rules.DefaultDamagerRepairer.createPresentation(DefaultDamagerRepairer.java:179) com.aptana.editor.common.text.rules.ThemeingDamagerRepairer.createPresentation(ThemeingDamagerRepairer.java:80) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:151) com.aptana.editor.common.text.reconciler.CommonPresentationReconciler.createPresentation(CommonPresentationReconciler.java:109) org.eclipse.jface.text.presentation.PresentationReconciler.processDamage(PresentationReconciler.java:566) org.eclipse.jface.text.presentation.PresentationReconciler.access$3(PresentationReconciler.java:564) org.eclipse.jface.text.presentation.PresentationReconciler$InternalListener.inputDocumentChanged(PresentationReconciler.java:119) org.eclipse.jface.text.TextViewer.fireInputDocumentChanged(TextViewer.java:2888) org.eclipse.jface.text.TextViewer.setDocument(TextViewer.java:2937) org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:640) org.eclipse.jface.text.source.projection.ProjectionViewer.setDocument(ProjectionViewer.java:376) org.eclipse.jface.text.source.SourceViewer.setDocument(SourceViewer.java:588) org.eclipse.ui.texteditor.AbstractTextEditor.initializeSourceViewer(AbstractTextEditor.java:4030) org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3558) org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:440) com.aptana.editor.common.internal.AbstractFoldingEditor.createPartControl(AbstractFoldingEditor.java:59) com.aptana.editor.common.AbstractThemeableEditor.createPartControl(AbstractThemeableEditor.java:297) com.aptana.editor.html.HTMLEditor.createPartControl(HTMLEditor.java:148) com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.createPartControl(PHPSourceEditor.java:154) org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) org.eclipse.ui.ide.IDE.openEditor(IDE.java:683) org.python.pydev.navigator.actions.PyOpenResourceAction.openFiles(PyOpenResourceAction.java:101) org.python.pydev.navigator.actions.PyOpenPythonFileAction.run(PyOpenPythonFileAction.java:85) org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864) org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152) org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256) org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) {code}
Story points: 8