{ "id": "97598", "key": "TIMOB-10048", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14170", "description": "2012 Sprint 22 JS", "name": "2012 Sprint 22 JS", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-30T00:15:02.000+0000", "created": "2012-07-18T16:58:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-and070112", "qe-ios070112", "qe-mw070112" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-12-06T00:36:30.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "SDK deployment scripts will fail if the SDK is moved to a directory other than the one it was installed to.\r\n\r\nThis is not a regression.\r\n\r\nRun iOS Simulator: silent failure\r\nRun Android Emulator/Device: failure w/log attached\r\nRun MobileWeb in Browser: failure w/screenshot attached\r\n\r\nSteps to Reproduce:\r\n\r\n1. Move Library/Application Support/Titanium (main folder containing SDKs) to some other location (e.g., Downloads/Titanium).\r\n2. In the Titanium Studio preferences, change the Titanium SDK to the new location.\r\n3. Run a titanium project using any platform such as iOS Simulator, Android Device/Emulator, MobileWeb Preview, etc.\r\n\r\nActual Result:\r\n\r\nAll deployments fail.\r\n\r\nExpected Result:\r\n\r\nAll deployments should succeed.", "attachment": [ { "id": "29869", "filename": "AndroidEmulatorStudioConsoleLog.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T16:58:00.000+0000", "size": 373, "mimeType": "text/plain" }, { "id": "29868", "filename": "MobileWeb Preview in Browser.png", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T16:58:00.000+0000", "size": 68883, "mimeType": "image/png" } ], "flagged": false, "summary": "CLI: if SDK folder is moved from original install location, build scripts fail", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0, 2.1.1.201207171343\r\nTitanium SDK: 2.0.2.GA, 2.1.0.GA, 2.1.1.v20120717154609\r\nOS: Snow Leopard 10.6.8", "comment": { "comments": [ { "id": "208430", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce on both OS X Lion 10.7.4 and 10.6.8\r\n\r\n# Ensured SDK setting was /Library/Application Support/Titanium\r\n# Moved Folder to /Users/ingo/Downloads/Titanium\r\n# Created a new project with both SDK 2.0.1.GA2 and 2.1.1.GA\r\n# Ran \"Preview Mobile Web in Browser\"\r\n\r\nAll succeeded.\r\n\r\nAlso tried iOS builds too...that worked.\r\n\r\nPlease try turning on troubleshooting com.aptana.core/debug/shell. I get entries like:\r\n\r\n{code}\r\n!ENTRY com.aptana.core 1 0 2012-07-18 21:23:27.247\r\n!MESSAGE (Build 0.0.0.qualifier) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/python\" \"/Users/ingo/Downloads/Titanium/mobilesdk/osx/2.0.2.GA/mobileweb/builder.py\" \"/Users/ingo/Documents/Aptana Studio 3 Workspace/testMobileWeb202\" \"development\"\r\nWorking directory: /Users/ingo/Documents/Aptana Studio 3 Workspace/testMobileWeb202\r\nEnvironment: null\r\n{code}\r\n\r\nWhich appear correct. One note is that your stack trace (for Android) appears that it is confusing where to load items from. Note:\r\n\r\n{code}\r\nTraceback (most recent call last):\r\n File \"/Users/dhyde/Downloads/Titanium/mobilesdk/osx/2.1.1.v20120717154609/android/builder.py\", line 15, in \r\n from compiler import Compiler\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.v20120717154609/android/compiler.py\", line 23, in \r\n import simplejson\r\nImportError: No module named simplejson\r\n{code}\r\n\r\nThis 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?\r\n\r\nAlso note:\r\n\r\nIt sounds like the error is that it can't find simplejson:\r\n\r\nhttp://developer.appcelerator.com/question/131785/importerror-no-module-named-simplejson\r\n\r\nDoes that solution work for you?\r\n\r\nDowngrading from blocker until we get a reliable repo case.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T21:29:42.000+0000", "updated": "2012-07-18T21:29:42.000+0000" }, { "id": "208458", "author": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "body": "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", "updateAuthor": { "name": "nle", "key": "nle", "displayName": "Nam Le", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T09:02:15.000+0000", "updated": "2012-07-19T09:02:15.000+0000" }, { "id": "208468", "author": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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. ", "updateAuthor": { "name": "cheadley", "key": "cheadley", "displayName": "Clayton Headley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T10:29:08.000+0000", "updated": "2012-07-19T10:29:08.000+0000" }, { "id": "208508", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could not reproduce in Lion, but I could on 2/2 local Snow Leopard machines.\r\n\r\nIt 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/.\r\n\r\nRestarting studio has no effect.\r\n\r\nIf a titanium SDK is freshly installed while studio is in this state, the new SDK install will run correctly.\r\n\r\nLog Info com.aptana.core/debug\r\n\r\n{code}\r\n!SESSION 2012-07-19 14:22:48.297 -----------------------------------------------\r\neclipse.buildId=unknown\r\njava.version=1.6.0_31\r\njava.vendor=Apple Inc.\r\nBootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US\r\nFramework arguments: -keyring /Users/dhyde/.eclipse_keyring -showlocation\r\nCommand-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/dhyde/.eclipse_keyring -consoleLog -showlocation\r\n\r\n!ENTRY org.eclipse.core.net 1 0 2012-07-19 14:22:54.934\r\n!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences\r\n\r\n!ENTRY org.eclipse.core.net 1 0 2012-07-19 14:22:54.935\r\n!MESSAGE System property https.proxyHost is not set but should be 127.0.0.1.\r\n\r\n!ENTRY org.eclipse.core.net 1 0 2012-07-19 14:22:54.936\r\n!MESSAGE System property https.proxyPort is not set but should be 8888.\r\n\r\n!ENTRY org.eclipse.core.net 1 0 2012-07-19 14:22:54.936\r\n!MESSAGE System property https.proxyHost is not set but should be 127.0.0.1.\r\n\r\n!ENTRY org.eclipse.core.net 1 0 2012-07-19 14:22:54.936\r\n!MESSAGE System property https.proxyPort is not set but should be 8888.\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.054\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"iPhone Simulator\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.086\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"iphonesim\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.116\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"ios-sim\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.178\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Searching for bash in PATH locations: /usr/bin, /bin, /usr/sbin, /sbin\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.179\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Found executable on PATH: /bin/bash\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.213\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Searching for python in PATH locations: /usr/bin, /bin, /usr/sbin, /sbin, /usr/local/bin, /Users/dhyde/Documents/android/android-sdk-macosx, /Users/dhyde/Documents/android/android-sdk-macosx/tools, /Users/dhyde/Documents/android/android-sdk-macosx/platform-tools, /Users/dhyde/Documents/android/android-ndk-r7b, /usr/local/git/bin, /usr/X11/bin, /Users/dhyde/Desktop/Android/android-sdk-macosx/tools, /Users/dhyde/Desktop/Android/android-sdk-macosx/platform-tools\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.214\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/bin/python\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.215\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/python\" \"/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/iphone/builder.py\" \"simulator\" \"5.0\" \"/Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2\" \"com.appcelerator.myproject\" \"MyProject2\" \"universal\" \"iphone\" \"\"\r\nWorking directory: null\r\nEnvironment: {DEVELOPER_DIR=/Developer}\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.339\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"iPhone Simulator\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.371\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"iphonesim\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:29.402\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/killall\" \"-2\" \"ios-sim\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:33.405\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Searching for python in PATH locations: /usr/bin, /bin, /usr/sbin, /sbin, /usr/local/bin, /Users/dhyde/Documents/android/android-sdk-macosx, /Users/dhyde/Documents/android/android-sdk-macosx/tools, /Users/dhyde/Documents/android/android-sdk-macosx/platform-tools, /Users/dhyde/Documents/android/android-ndk-r7b, /usr/local/git/bin, /usr/X11/bin, /Users/dhyde/Desktop/Android/android-sdk-macosx/tools, /Users/dhyde/Desktop/Android/android-sdk-macosx/platform-tools\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:33.405\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/bin/python\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:33.406\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/python\" \"/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/android/builder.py\" \"install\" \"MyProject2\" \"/Users/dhyde/Desktop/Android/android-sdk-macosx\" \"/Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2\" \"com.appcelerator.myproject\" \"9\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:35.793\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Searching for python in PATH locations: /usr/bin, /bin, /usr/sbin, /sbin, /usr/local/bin, /Users/dhyde/Documents/android/android-sdk-macosx, /Users/dhyde/Documents/android/android-sdk-macosx/tools, /Users/dhyde/Documents/android/android-sdk-macosx/platform-tools, /Users/dhyde/Documents/android/android-ndk-r7b, /usr/local/git/bin, /usr/X11/bin, /Users/dhyde/Desktop/Android/android-sdk-macosx/tools, /Users/dhyde/Desktop/Android/android-sdk-macosx/platform-tools\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:35.793\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/bin/python\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:35.793\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/python\" \"/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/android/builder.py\" \"emulator\" \"MyProject2\" \"/Users/dhyde/Desktop/Android/android-sdk-macosx\" \"/Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2\" \"com.appcelerator.myproject\" \"9\" \"WVGA854\"\r\nWorking directory: null\r\nEnvironment: null\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:38.107\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Searching for python in PATH locations: /usr/bin, /bin, /usr/sbin, /sbin, /usr/local/bin, /Users/dhyde/Documents/android/android-sdk-macosx, /Users/dhyde/Documents/android/android-sdk-macosx/tools, /Users/dhyde/Documents/android/android-sdk-macosx/platform-tools, /Users/dhyde/Documents/android/android-ndk-r7b, /usr/local/git/bin, /usr/X11/bin, /Users/dhyde/Desktop/Android/android-sdk-macosx/tools, /Users/dhyde/Desktop/Android/android-sdk-macosx/platform-tools\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:38.108\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Found executable on PATH: /usr/bin/python\r\n\r\n!ENTRY com.aptana.core 1 0 2012-07-19 14:23:38.111\r\n!MESSAGE (Build 2.1.1.201207171343) [INFO] com.aptana.core/debug/shell Running process:\r\nProcess: \"/usr/bin/python\" \"/Users/dhyde/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/mobileweb/builder.py\" \"/Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2\" \"development\"\r\nWorking directory: /Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2\r\nEnvironment: null\r\n\r\n!ENTRY com.appcelerator.titanium.mobile 4 0 2012-07-19 14:23:38.240\r\n!MESSAGE Unable to generate Mobile Web App. Error:\r\n\r\n[INFO] Titanium Mobile Web Compiler v2.0.2.GA\r\n[ERROR] Unable to open titanium package manifest \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/mobileweb/titanium/package.json\"\r\n\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T14:17:52.000+0000", "updated": "2012-07-19T15:05:46.000+0000" }, { "id": "208575", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue using only the command line.\r\n\r\nSteps:\r\n\r\n1. Run Command (change user-specific paths):\r\n\r\n{code}\r\ndhydeMBPSnowLeopard:~ dhyde$ /Users/dhyde/Library/Application\\ Support/Titanium/mobilesdk/osx/2.0.2.GA/mobileweb/builder.py /Users/dhyde/Desktop/Titanium_Studio_2.1.1_RC/Titanium_Studio_Workspace/MyProject2 development\r\n{code}\r\n\r\nActual Result:\r\n\r\nSDK Install Path is hard-coded:\r\n\r\n{code}\r\n[ERROR] Unable to open titanium package manifest \"/Library/Application Support/Titanium/mobilesdk/osx/2.0.2.GA/mobileweb/titanium/package.json\"\r\n{code}", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T17:37:45.000+0000", "updated": "2012-07-19T17:37:45.000+0000" }, { "id": "220717", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Won't fix this since it's low priority and will be replaced with the new CLI.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T18:54:40.000+0000", "updated": "2012-09-25T18:54:40.000+0000" }, { "id": "220732", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The new CLI will include all ios/android/mobile web related fixes.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T20:00:38.000+0000", "updated": "2012-09-25T20:00:38.000+0000" }, { "id": "220765", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assigning to Chris to take this into account for the new CLI", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-25T21:20:50.000+0000", "updated": "2012-09-25T21:20:50.000+0000" }, { "id": "230162", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "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.\r\n\r\nTitanium studio : 3.0.0.201211301903\r\nSDK Version : 3.0.0.v20121204154658\r\nCLI version : 3.0.19\r\nOS : OSX 10.8.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-06T00:36:30.000+0000", "updated": "2012-12-06T00:36:30.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }