Details

    • Story Points:
      5
    • Sprint:
      2015 Sprint 13 Studio

      Description

      While I'm working in a project the syntax hightlight and autocompletion stops working.

      !ENTRY com.aptana.editor.js.formatter 4 0 2014-02-26 15:23:35.838
      !MESSAGE (Build 3.2.1.201402041146) [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:601)
      	at com.aptana.js.core.parsing.JSParser.recoverFromError(JSParser.java:489)
      	at beaver.Parser.parse(Parser.java:498)
      	at beaver.Parser.parse(Parser.java:439)
      	at com.aptana.js.core.parsing.JSParser.parse(JSParser.java:374)
      	at com.aptana.js.core.parsing.JSParser.parse(JSParser.java:331)
      	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.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:217)
      	at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:200)
      	at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:245)
      	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:142)
      	at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:979)
      	at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1507)
      	at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:128)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:126)
      	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
      	at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      	at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:285)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:504)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:555)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:376)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:322)
      	at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:84)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1080)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4165)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1466)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1489)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1474)
      	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1503)
      	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1499)
      	at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:496)
      	at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:1060)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5648)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:68)
      	at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:594)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5558)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:221)
      	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2104)
      	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2318)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5620)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5057)
      	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5206)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3648)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	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:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	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:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      

      Steps to Reproduce:

      1. Create a new Mobile Application (Alloy).
      2. Create a new Controller.
      3. Paste the following code in the controller file.

      var args = arguments[0] || {};
       
      var requestComments = function(){
      	
      	var xhr = Ti.Network.createHTTPClient({
      		onload: function() {
      			
      			Ti.API.info('Comments: '+this.responseText);
      			
      			var comentarios = JSON.parse(this.responseText);
      			
      			for (var idx in comentarios)
      			{
      				var row = Ti.UI.createTableViewRow({
      					backgroundColor: '#fff',
      					width: Ti.UI.SIZE,
      					height: Ti.UI.SIZE,
      				});
      				
      				var rowLabel = Ti.UI.createLabel({
      					text: comentarios[idx].message,
      					font: {
      						fontSize: 10,
      						fontFamily: 'Helvetica Neue',
      					},
      					color: '#0e0e0e',
      					left: 5,
      					top: 5,	
      				});
      				
      				row.add(rowLabel);
      				
      				$.detailTView.appendRow(row);
      			}
      			
      			var rowMore = Ti.UI.createTableViewRow({
      					backgroundColor: '#fff', 
      					font: {
      						fontSize: 12,
      					},
      					height: 30,
      			});
      			
      			var rowMoreTxt = Ti.UI.createLabel({
      					title: 'Ver Mas',
      					tintColor: '#34aadc',
      			});
      			
      			$.detailTView.appendRow(rowMore);
      		},
      	});
      	
      	xhr.open('POST',Alloy.Globals.serverRequest);
      	xhr.send({ request: 'comments',  postId: args.id });
      };
       
       
      function onClickCancel() {
      	$.detailWin.close();
      }
       
      function sendComment() {
      	alert('Comment Sent.');
      }
       
       
      $.detailWin.addEventListener('open', function(){
      	
      	var secretRow = Ti.UI.createTableViewRow({
      		width: Ti.UI.SIZE,
      		height: Ti.UI.SIZE,
      		backgroundColor: '#fff',
      		layout: 'vertical',
      	});
      	
      	var secretText = Ti.UI.createLabel({
      		text: args.message,
      		top: 10,
      		left: 10,
      		right: 10,
      		font: {
      			fontSize: 12,
      			fontFamily: 'Arial',
      		},
      	});
      	
      	var spaceView = Ti.UI.createView({
      		height: 10,
      		width: Ti.UI.FILL,
      	});
      	
      	secretRow.add(secretText);
      	secretRow.add(spaceView);
      	secretRow.selectionStyle = Ti.UI.iPhone.TableViewCellSelectionStyle.NONE;
      	
      	$.detailTView.appendRow(secretRow);
       
      	$.detailTView.appendRow(Ti.UI.createTableViewRow({backgroundColor: '#fff', height: 35, selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE}));
      	$.detailTView.appendRow(Ti.UI.createTableViewRow({height:10, selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.NONE}));
      		
      	requestComments();
      });
       
      var backBtn = Ti.UI.createImageView({
      	width: 14,
      	height: 21,
      	image: 'icon_left_white.png',
      });
       
      backBtn.addEventListener('click',function(){
      	$.tabGroupDetail.close();
      });
       
      $.detailWin.leftNavButton = backBtn;
       
      $.comentario.keyboardToolbar = $.footerComment;
       
      /*
      $.comentario.addEventListener('change', function() {
      	$.autoHeightLabel.text = $.comentario.value;
      	$.comentario.height = $.autoHeightLabel.height;
      	$.footerComment.height = $.autoHeightLabel.height;
      });
      */
      

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka
                Reporter:
                ngenen Nicolas Genen
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: