org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error

Appcelerator JIRA | Ingo Muschenetz | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While following the steps for APSTUD-2564, I saw this in my log file when I started typing "body": {code} (Build 3.0.3.qualifier) [ERROR] Cannot recover from the syntax error beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:231) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:213) at com.aptana.editor.common.AbstractThemeableEditor.getAST(AbstractThemeableEditor.java:1084) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy$2.run(CommonReconcilingStrategy.java:253) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612) 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 com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) 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(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:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) at org.eclipse.equinox.launcher.Main.main(Main.java:1386) (Build 3.0.3.qualifier) [ERROR] Cannot recover from the syntax error org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:126) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) at com.aptana.editor.css.contentassist.index.CSSFileIndexingParticipant.index(CSSFileIndexingParticipant.java:42) at com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:306) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:238) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:208) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:396) at com.aptana.editor.common.text.reconciler.CompositeReconcilingStrategy.fullReconcile(CompositeReconcilingStrategy.java:125) at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) Caused by: beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:117) ... 10 more ckgroundThread.run(AbstractReconciler.java:206) {code} Those error messages aren't necessary.

    Appcelerator JIRA | 5 years ago | Ingo Muschenetz
    org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error

    1 unregistered visitors

    Root Cause Analysis

    1. beaver.Parser$Exception

      Cannot recover from the syntax error

      at beaver.Parser.recoverFromError()
    2. beaver
      Parser.parse
      1. beaver.Parser.recoverFromError(Parser.java:590)
      2. beaver.Parser.parse(Parser.java:487)
      3. beaver.Parser.parse(Parser.java:428)
      3 frames
    3. com.aptana.editor
      CSSParser.parse
      1. com.aptana.editor.css.parsing.CSSParser.parse(CSSParser.java:131)
      1 frame
    4. com.aptana.parsing
      ParserPoolFactory.parse
      1. com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286)
      2. com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244)
      2 frames
    5. com.aptana.index
      BuildContext.getAST
      1. com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:117)
      2. com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83)
      2 frames
    6. com.aptana.editor
      CSSFileIndexingParticipant.index
      1. com.aptana.editor.css.contentassist.index.CSSFileIndexingParticipant.index(CSSFileIndexingParticipant.java:42)
      1 frame
    7. com.aptana.core
      IndexBuildParticipant.buildFile
      1. com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83)
      1 frame
    8. com.aptana.editor
      CommonReconciler.process
      1. com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:306)
      2. com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:238)
      3. com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:208)
      4. com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:396)
      5. com.aptana.editor.common.text.reconciler.CompositeReconcilingStrategy.fullReconcile(CompositeReconcilingStrategy.java:125)
      6. com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162)
      6 frames
    9. JFace Text
      AbstractReconciler$BackgroundThread.run
      1. org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
      1 frame