{ "id": "136334", "key": "TIMOB-17666", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-15T18:53:20.000+0000", "created": "2014-09-09T22:42:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-09-15T18:53:20.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": "There's a bug in \"ti info\" when an invalid Titanium SDK is selected:\r\n\r\n{code}\r\nti config sdk.selected 3.6.0\r\n\r\nti info -t android\r\n{code}\r\n\r\nAndroid SDK\r\n Android Executable = /opt/android-sdk/tools/android\r\n SDK Path = /opt/android-sdk\r\n\r\nAndroid NDK\r\n NDK Path = /opt/android-ndk\r\n NDK Version = r10 (64-bit)\r\n\r\n{code}\r\n/Users/chris/appc/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nTypeError: Cannot call method 'join' of undefined\r\n at /Users/chris/appc/titanium/lib/commands/info.js:384:75\r\n at Array.forEach (native)\r\n at /Users/chris/appc/titanium/lib/commands/info.js:376:29\r\n at sections.push.Section.render (/Users/chris/appc/titanium/lib/commands/info.js:404:7)\r\n at /Users/chris/appc/titanium/lib/commands/info.js:633:14\r\n at Array.forEach (native)\r\n at /Users/chris/appc/titanium/lib/commands/info.js:627:13\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:232:13\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:119:25\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:24:16\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:702:9)\r\n at exports.exec (child_process.js:589:18)\r\n at async.series.cached (/Users/chris/appc/titanium/node_modules/node-appc/lib/android.js:103:4)\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:551:21\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:227:13\r\n at iterate (/Users/chris/appc/titanium/node_modules/async/lib/async.js:134:13)\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:145:25\r\n at /Users/chris/appc/titanium/node_modules/async/lib/async.js:229:17\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI: ti info fails when invalid Titanium SDK is selected", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 208, "state": "closed", "name": "2014 Sprint 18 Tooling", "startDate": "2014-09-02T20:24:55.144Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:39.957Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "322660", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master: https://github.com/appcelerator/titanium/pull/155\r\n3_4_X: https://github.com/appcelerator/titanium/pull/156", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-09T22:49:42.000+0000", "updated": "2014-09-09T22:49:42.000+0000" }, { "id": "323536", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed with:\r\nCLI: 3.4.0-rc3\r\nAlloy: 1.5.0-rc2\r\nTitanium SDK: 3.4.0.v20140913174915", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-14T16:55:56.000+0000", "updated": "2014-09-14T16:55:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }