beaver.Parser$Exception

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {html}<div><p>Try to format this code (which calls the JS parser).<br></p> <pre> <code class="javascript">var foo = 1.0e+3; var foo = 1.0e-3;</code> </pre> <p>The log indicate a parser error:<br></p> <pre> <code>beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:562) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:393) at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:148) at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:184) at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:114) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:110) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:142) at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:966) at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534) at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4270) at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4162) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362) at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:639) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:129) 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:369) 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:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384)</code> </pre></div>{html}
    via by Shalom Gibly,
  • {html}<div><p>Try to format this code (which calls the JS parser).<br></p> <pre> <code class="javascript">var foo = 1.0e+3; var foo = 1.0e-3;</code> </pre> <p>The log indicate a parser error:<br></p> <pre> <code>beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:562) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:393) at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:148) at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:184) at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:114) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:110) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:142) at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:966) at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534) at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4270) at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4162) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362) at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:639) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:129) 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:369) 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:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384)</code> </pre></div>{html}
    via by Shalom Gibly,
  • The file is generated when you package a Titanium mobile web project as a new project in the workspace. The generated project should have a titanium.js file. When I try to format the file I get the following error: !ENTRY com.aptana.editor.js.formatter 4 0 2012-04-19 15:36:03.866 !MESSAGE (Build 3.0.3.1334796284) [ERROR] com.aptana.formatter.epl/debug Cannot recover from the syntax error !STACK 0 beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:623) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:447) at com.aptana.editor.js.formatter.JSFormatter.equalContent(JSFormatter.java:295) at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:246) at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:185) at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:115) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:111) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:135) !ENTRY com.aptana.formatter.epl 4 0 2012-04-19 15:36:03.870 !MESSAGE (Build 3.0.0.1332346421) [ERROR] com.aptana.formatter.epl/debug Error while formatting the code in your editor. Please submit a bug report through Studio's support and include the relevant code which triggered this error.
    via by Nam Le,
  • The file is generated when you package a Titanium mobile web project as a new project in the workspace. The generated project should have a titanium.js file. When I try to format the file I get the following error: !ENTRY com.aptana.editor.js.formatter 4 0 2012-04-19 15:36:03.866 !MESSAGE (Build 3.0.3.1334796284) [ERROR] com.aptana.formatter.epl/debug Cannot recover from the syntax error !STACK 0 beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:623) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:447) at com.aptana.editor.js.formatter.JSFormatter.equalContent(JSFormatter.java:295) at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:246) at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:185) at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:115) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:111) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:135) !ENTRY com.aptana.formatter.epl 4 0 2012-04-19 15:36:03.870 !MESSAGE (Build 3.0.0.1332346421) [ERROR] com.aptana.formatter.epl/debug Error while formatting the code in your editor. Please submit a bug report through Studio's support and include the relevant code which triggered this error.
    via by Nam Le,
  • # 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 at beaver.Parser.recoverFromError(Parser.java:590) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) 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) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) 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.CommonReconciler.process(CommonReconciler.java:162) at 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 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.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) 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.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 com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) 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) ... 9 more {code}
    via by Ingo Muschenetz,
  • Given the code below, add and remove the missing () after the first alertMsg: {code} <html> <head> <script type="text/javascript"> function alertMsg(){alert("Popup");} </script> </head> <body> <form> <input type="button" value="Show alert box" onclick="alertMsg()" /> </form> </body> </html> {code} You will see the following in the log file: {code} (Build 3.0.3.qualifier) [ERROR] Failed to parse the content beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:686) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:596) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:271) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:229) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getActiveASTNode(JSContentAssistProcessor.java:584) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getArgumentsNode(JSContentAssistProcessor.java:647) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getFunctionElement(JSContentAssistProcessor.java:685) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.computeContextInformation(JSContentAssistProcessor.java:436) at com.aptana.editor.common.contentassist.ContentAssistant.computeContextInformation(ContentAssistant.java:2245) {code} This related to messing with the problems view error we were chatting about before (Adding/removing () after the first alertMsg in the text below). I get it every time I edit.
    via by Ingo Muschenetz,
  • Saw this in the log. I created two projects, inserted two breakpoints, and ran both in android device. They were default projects, one with an extra event listener. Log: {code} !ENTRY com.aptana.editor.js 4 0 2012-10-16 15:29:36.290 !MESSAGE (Build 3.0.0.201210151149) [ERROR] Failed to parse file:/Users/dhyde/Desktop/TISTUD-RC/workspace/MyProject/Resources/app.js for JS Parser Validation !STACK 1 org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:129) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:97) at com.aptana.editor.js.validator.JSParserValidator.buildFile(JSParserValidator.java:145) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:333) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:273) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:231) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:437) 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:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:557) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:383) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:345) at com.aptana.parsing.ParsingEngine.noCacheParse(ParsingEngine.java:424) at com.aptana.parsing.ParsingEngine.parse(ParsingEngine.java:229) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:230) at com.aptana.index.core.build.BuildContext.parse(BuildContext.java:150) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:121) ... 9 more !SUBENTRY 1 com.aptana.index.core 4 0 2012-10-16 15:29:36.290 !MESSAGE Cannot recover from the syntax error !STACK 0 beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:557) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:383) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:345) at com.aptana.parsing.ParsingEngine.noCacheParse(ParsingEngine.java:424) at com.aptana.parsing.ParsingEngine.parse(ParsingEngine.java:229) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:230) at com.aptana.index.core.build.BuildContext.parse(BuildContext.java:150) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:121) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:97) at com.aptana.editor.js.validator.JSParserValidator.buildFile(JSParserValidator.java:145) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:333) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:273) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:231) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:437) at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) {code} app.js {code} // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'red' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win1.add(label1); // // create controls tab and root window // var win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win2.add(label2); // // add tabs // tabGroup.addTab(tab1); tabGroup.addTab(tab2); // open tab group tabGroup.open(); win1.addEventListener('click', function(){ win1.backgroundColor = win1.backgroundColor == 'red' ? 'blue' : 'red'; }); {code}
    via by Dustin Hyde,
  • Saw this in the log. I created two projects, inserted two breakpoints, and ran both in android device. They were default projects, one with an extra event listener. Log: {code} !ENTRY com.aptana.editor.js 4 0 2012-10-16 15:29:36.290 !MESSAGE (Build 3.0.0.201210151149) [ERROR] Failed to parse file:/Users/dhyde/Desktop/TISTUD-RC/workspace/MyProject/Resources/app.js for JS Parser Validation !STACK 1 org.eclipse.core.runtime.CoreException: Cannot recover from the syntax error at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:129) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:97) at com.aptana.editor.js.validator.JSParserValidator.buildFile(JSParserValidator.java:145) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:333) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:273) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:231) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:437) 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:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:557) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:383) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:345) at com.aptana.parsing.ParsingEngine.noCacheParse(ParsingEngine.java:424) at com.aptana.parsing.ParsingEngine.parse(ParsingEngine.java:229) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:230) at com.aptana.index.core.build.BuildContext.parse(BuildContext.java:150) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:121) ... 9 more !SUBENTRY 1 com.aptana.index.core 4 0 2012-10-16 15:29:36.290 !MESSAGE Cannot recover from the syntax error !STACK 0 beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:697) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:557) at beaver.Parser.parse(Parser.java:498) at beaver.Parser.parse(Parser.java:439) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:383) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:345) at com.aptana.parsing.ParsingEngine.noCacheParse(ParsingEngine.java:424) at com.aptana.parsing.ParsingEngine.parse(ParsingEngine.java:229) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:230) at com.aptana.index.core.build.BuildContext.parse(BuildContext.java:150) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:121) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:97) at com.aptana.editor.js.validator.JSParserValidator.buildFile(JSParserValidator.java:145) at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.runParticipants(CommonReconcilingStrategy.java:333) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:273) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:231) at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:437) at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:162) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206) {code} app.js {code} // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // create tab group var tabGroup = Titanium.UI.createTabGroup(); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'red' }); var tab1 = Titanium.UI.createTab({ icon:'KS_nav_views.png', title:'Tab 1', window:win1 }); var label1 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 1', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win1.add(label1); // // create controls tab and root window // var win2 = Titanium.UI.createWindow({ title:'Tab 2', backgroundColor:'#fff' }); var tab2 = Titanium.UI.createTab({ icon:'KS_nav_ui.png', title:'Tab 2', window:win2 }); var label2 = Titanium.UI.createLabel({ color:'#999', text:'I am Window 2', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto' }); win2.add(label2); // // add tabs // tabGroup.addTab(tab1); tabGroup.addTab(tab2); // open tab group tabGroup.open(); win1.addEventListener('click', function(){ win1.backgroundColor = win1.backgroundColor == 'red' ? 'blue' : 'red'; }); {code}
    via by Dustin Hyde,
  • # 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 at beaver.Parser.recoverFromError(Parser.java:590) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) 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) at com.aptana.index.core.build.BuildContext.getAST(BuildContext.java:83) at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) 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.CommonReconciler.process(CommonReconciler.java:162) at 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 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.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) 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.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 com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:604) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) 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) ... 9 more {code}
    via by Ingo Muschenetz,
  • Given the code below, add and remove the missing () after the first alertMsg: {code} <html> <head> <script type="text/javascript"> function alertMsg(){alert("Popup");} </script> </head> <body> <form> <input type="button" value="Show alert box" onclick="alertMsg()" /> </form> </body> </html> {code} You will see the following in the log file: {code} (Build 3.0.3.qualifier) [ERROR] Failed to parse the content beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:686) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:596) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428) at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:271) at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:229) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getActiveASTNode(JSContentAssistProcessor.java:584) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getArgumentsNode(JSContentAssistProcessor.java:647) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getFunctionElement(JSContentAssistProcessor.java:685) at com.aptana.editor.js.contentassist.JSContentAssistProcessor.computeContextInformation(JSContentAssistProcessor.java:436) at com.aptana.editor.common.contentassist.ContentAssistant.computeContextInformation(ContentAssistant.java:2245) {code} This related to messing with the problems view error we were chatting about before (Adding/removing () after the first alertMsg in the text below). I get it every time I edit.
    via by Ingo Muschenetz,
    • beaver.Parser$Exception: Cannot recover from the syntax error at beaver.Parser.recoverFromError(Parser.java:590) at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:562) at beaver.Parser.parse(Parser.java:487) at beaver.Parser.parse(Parser.java:428) at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:393) at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:148) at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:184) at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:114) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:110) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193) at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:142) at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:966) at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534) at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185) at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1253) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1103) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1099) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1508) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4270) at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4162) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2362) at org.eclipse.swt.internal.BidiUtil.windowProc(BidiUtil.java:639) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:129) 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:369) 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:592) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,