GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-30T00:15:02.000+0000 |
Affected Version/s | Release 2.1.0, Release 2.1.1 |
Fix Version/s | Release 3.0.0, 2012 Sprint 22 JS, 2012 Sprint 22 |
Components | Tooling |
Labels | qe-and070112, qe-ios070112, qe-mw070112 |
Reporter | Dustin Hyde |
Assignee | Chris Barber |
Created | 2012-07-18T16:58:00.000+0000 |
Updated | 2012-12-06T00:36:30.000+0000 |
SDK deployment scripts will fail if the SDK is moved to a directory other than the one it was installed to.
This is not a regression.
Run iOS Simulator: silent failure
Run Android Emulator/Device: failure w/log attached
Run MobileWeb in Browser: failure w/screenshot attached
Steps to Reproduce:
1. Move Library/Application Support/Titanium (main folder containing SDKs) to some other location (e.g., Downloads/Titanium).
2. In the Titanium Studio preferences, change the Titanium SDK to the new location.
3. Run a titanium project using any platform such as iOS Simulator, Android Device/Emulator, MobileWeb Preview, etc.
Actual Result:
All deployments fail.
Expected Result:
All deployments should succeed.
Unable to reproduce on both OS X Lion 10.7.4 and 10.6.8
Ensured SDK setting was /Library/Application Support/Titanium
Moved Folder to /Users/ingo/Downloads/Titanium
Created a new project with both SDK 2.0.1.GA2 and 2.1.1.GA
Ran "Preview Mobile Web in Browser"
All succeeded. Also tried iOS builds too...that worked. Please try turning on troubleshooting com.aptana.core/debug/shell. I get entries like:Which appear correct. One note is that your stack trace (for Android) appears that it is confusing where to load items from. Note:
This code could only execute in this way if you had folders at both /Users/dhyde/Downloads/ and /Library/Application Support/. Did you move the folder, or copy it? Also note: It sounds like the error is that it can't find simplejson: http://developer.appcelerator.com/question/131785/importerror-no-module-named-simplejson Does that solution work for you? Downgrading from blocker until we get a reliable repo case.
Tried reproducing OSX 10.7.4 using Studio 2.1.1.201207171343 with SDK 2.1.1, 2.1.0 and 2.0.2. iOS/MobileWeb packaging works as expected. I tried both renaming the Titanium folder in the 'Application Support' directory and leaving it there, while pointing the SDK to my .../Downloads directory. All calls utilized the SDK in the .../Downloads directory
Could not reproduce in Titanium Studio, build: 2.1.1.201207171343 on Mac OS 10.7.4 Lion using SDK 2.0.1GA and 1.8.2 using the Iphone, Android, and Mobile Web preview. No errors reported and the log file is empty. I tried both with copying and moving the SDK directory, neither seemed to have an effect.
I could not reproduce in Lion, but I could on 2/2 local Snow Leopard machines. It appears the run scripts are looking in /Library/Application Support/Titanium/ when the SDK is actually in (and set to in the preferences) ~/Library/Application Support/Titanium/. Restarting studio has no effect. If a titanium SDK is freshly installed while studio is in this state, the new SDK install will run correctly. Log Info com.aptana.core/debug
I was able to reproduce this issue using only the command line. Steps: 1. Run Command (change user-specific paths):
Actual Result: SDK Install Path is hard-coded:
Won't fix this since it's low priority and will be replaced with the new CLI.
The new CLI will include all ios/android/mobile web related fixes.
Assigning to Chris to take this into account for the new CLI
Moved the titanium folder to desktop, changed the path in studio ran in android simulator,iOS simulator & mobileweb preview in browser & everything worked as expected. Titanium studio : 3.0.0.201211301903 SDK Version : 3.0.0.v20121204154658 CLI version : 3.0.19 OS : OSX 10.8.2