Project: appceleratorstudio
Issue TISTUD-3439: Error when changing module version in tiapp.xml
Getting this message when changing module version (full error log below): An error has occurred. See error log for more details. Index: 1, Size: 0 I have not been able to repo this consistently, but here the steps that usually cause it to happen. h4. Steps to repro: 1. Create an app 2. Add a module to the app via the tiapp.xml overview tab 3. while you have this view of studio open, extract a module with the same name but a newer version number to your modules folder. 4. Back in the tiapp.xml overview tab, edit the module and select the new version 5. click ok 6. You should see the error above in an alert dialog and the error log is below. 7. Notice that the module version number did not change. 8. Look at the actual tiapp.xml and change the module version number 9. Go back to the overview and it will work correctly. {code} !ENTRY org.eclipse.jface 4 2 2013-02-07 14:30:12.900 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 java.util.ArrayList.addAll(ArrayList.java:497) com.appcelerator.titanium.ui.ide.tiappEditor.ModulesTable.editModule(ModulesTable.java:550) com.appcelerator.titanium.ui.ide.tiappEditor.ModulesTable$2.doubleClick(ModulesTable.java:189) org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843) org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1134) org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246) org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249) org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246) org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code}
Story points: 3