{ "id": "124986", "key": "TIMOB-16232", "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": "15821", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15824", "description": "2014 Sprint 02 Core", "name": "2014 Sprint 02 Core", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-01-20T22:00:02.000+0000", "created": "2014-01-18T00:44:45.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_CLI", "qe-3.2.1", "qe-testadded" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-02-24T19:30:03.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "h5.Description:\r\n1. Install the latest CLI from here: {code}sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X{code}\r\n2. Create an classic/alloy app in studio.\r\n3. Build the app for any platform\r\n\r\nh5.Actual Result:\r\n1. We get errors:\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Cannot read property 'options' of undefined\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:64:11\r\n at Array.forEach (native)\r\n at set (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:63:24)\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/node_modules/titanium-sdk/lib/titanium.js:99:6\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140114125643/android/cli/commands/_build.js:872:4\r\n at CLI._fireHookCallback (/usr/local/lib/node_modules/titanium/lib/hook.js:245:12)\r\n at /usr/local/lib/node_modules/titanium/lib/hook.js:224:10\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:13\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:139:25\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17\r\n---------------------------------------------\r\n at Object.run (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at find (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)\r\n at q.process (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:728:21)\r\n at processImmediate (timers.js:330:15)\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n{code}\r\n2. Tried running the CLI command which studio uses directly in command prompt & we get the same error as above.\r\n\r\nh5.Expected Result:\r\n1. We should not get any errors & the app should build & launch successfully.", "attachment": [], "flagged": false, "summary": "CLI: TypeError: Cannot read property 'options' of undefined", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 3.2.1.201401151647\r\nTi SDK : 3.2.1.v20140114125643 , 3.3.0.v20140117110844\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1-beta2 \t\r\nCLI - from git://github.com/appcelerator/titanium.git#3_2_X\r\nSamsung Galaxy S4 running android 4.2.2\r\nIphone & Ipad\r\nMobileWeb", "comment": { "comments": [ { "id": "288710", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried with latest 3.3.X SDK and was able to reproduce the issue.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-18T00:45:48.000+0000", "updated": "2014-01-18T00:45:48.000+0000" }, { "id": "288891", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This has been fixed as of CI build 3.2.1.v20140117222448 and 3.3.0.v20140117222449.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-20T22:00:02.000+0000", "updated": "2014-01-20T22:00:02.000+0000" }, { "id": "289068", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix & we do not get any errors while trying to build.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.1.201401201818\r\nTi SDK : 3.2.1.v20140117222448 , 3.3.0.v20140117222449\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1-beta3 \t\r\nCLI - 3.2.1 from sudo npm install -g git://github.com/appcelerator/titanium.git#3_2_X \r\nSamsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-21T18:42:20.000+0000", "updated": "2014-01-21T18:42:20.000+0000" }, { "id": "292261", "author": { "name": "janusz.hatala", "key": "janusz.hatala", "displayName": "Janusz Hatala", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have exactly the same problem but on Windows 7 (64b) OS - I've just updated Titanium SDK 3.2.1, CLI 3.0.0, Alloy 1.3.1, Studio 3.2.1.201402041146\r\nTrying to build new project of classic app I get the same error:\r\n\r\n\r\nC:\\Users\\Janusz\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\longjohn\\dist\\longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Cannot read property 'properties' of undefined\r\n...", "updateAuthor": { "name": "janusz.hatala", "key": "janusz.hatala", "displayName": "Janusz Hatala", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T23:05:03.000+0000", "updated": "2014-02-10T23:05:03.000+0000" }, { "id": "292262", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~janusz.hatala] Titanium CLI 3.0.0 is quite old. You should update to the latest version by running:\n\n{code}\nnpm install -g titanium\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-10T23:10:04.000+0000", "updated": "2014-02-10T23:10:04.000+0000" }, { "id": "292436", "author": { "name": "janusz.hatala", "key": "janusz.hatala", "displayName": "Janusz Hatala", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank You, now it works, how could I overlook that thing, sorry.", "updateAuthor": { "name": "janusz.hatala", "key": "janusz.hatala", "displayName": "Janusz Hatala", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T19:44:35.000+0000", "updated": "2014-02-11T19:44:35.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }