Project: aptanastudio
Issue APSTUD-4418: Errant error message in log file "Cannot recover from the syntax error"
# Open a new JS file # Start typing "function" # Note the following in the log file: {code} !SUBENTRY 1 com.aptana.index.core 4 0 2012-02-23 09:34:54.197 !MESSAGE Cannot recover from the syntax error !STACK 0 beaver.Parser$Exception: Cannot recover from the syntax error beaver.Parser.recoverFromError(Parser.java:590) com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) beaver.Parser.parse(Parser.java:487) beaver.Parser.parse(Parser.java:428) com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:117) com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:306) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:238) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:208) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:396) com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) (Build 3.0.3.qualifier) [ERROR] Cannot recover from the syntax error org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:126) com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:306) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:238) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:208) com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:396) com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) Caused by: beaver.Parser$Exception: Cannot recover from the syntax error beaver.Parser.recoverFromError(Parser.java:590) com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) beaver.Parser.parse(Parser.java:487) beaver.Parser.parse(Parser.java:428) com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:286) com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:244) com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:117)	... 9 more {code}
Story points: 5