Project: appceleratorstudio
Issue TISTUD-7621: Studio hangs when generating Alloy autocomplete list
Studio hangs whenever generating an autocomplete list when editing an Alloy XML file (not when editing js...) Here's a relevant excerpt from my studio log.... {code} !ENTRY com.aptana.index.core 4 0 2015-06-26 12:42:16.623 !MESSAGE (Build 4.0.1.201506021908) [ERROR] An error occurred while processing the following JSON string {"name":"focus","description":"

Fired when the view element gains focus.

","since":[],"deprecated":false,"userAgents":null,"owningType":"Titanium.UI.ImageView","properties":[]} !STACK 0 java.lang.NullPointerException com.aptana.js.core.model.EventElement.fromJSON(EventElement.java:73) com.aptana.index.core.IndexReader.populateElement(IndexReader.java:207) com.aptana.index.core.IndexReader.populateElement(IndexReader.java:181) com.aptana.js.internal.core.index.JSIndexReader.createEvent(JSIndexReader.java:78) com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:219) com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:1) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) com.aptana.js.internal.core.index.JSIndexReader.getEvents(JSIndexReader.java:215) com.aptana.js.core.index.JSIndexQueryHelper.getEvents(JSIndexQueryHelper.java:388) com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElement(AlloyQueryHelper.java:313) com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:186) com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:1) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElements(AlloyQueryHelper.java:175) com.appcelerator.titanium.alloy.internal.ui.contentassist.AlloyViewContentAssistProcessor.getElements(AlloyViewContentAssistProcessor.java:130) com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.addElementProposals(XMLContentAssistProcessor.java:309) com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.doComputeCompletionProposals(XMLContentAssistProcessor.java:625) com.aptana.editor.common.CommonContentAssistProcessor.computeCompletionProposals(CommonContentAssistProcessor.java:417) com.aptana.editor.common.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2221) com.aptana.editor.common.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:394) com.aptana.editor.common.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:388) com.aptana.editor.common.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:331) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) com.aptana.editor.common.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:325) com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:468) org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) org.eclipse.equinox.launcher.Main.run(Main.java:1465) {code}
Story points: 5