[TIMOB-17666] CLI: ti info fails when invalid Titanium SDK is selected
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-15T18:53:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.4.0 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2014-09-09T22:42:58.000+0000 |
Updated | 2014-09-15T18:53:20.000+0000 |
Description
There's a bug in "ti info" when an invalid Titanium SDK is selected:
ti config sdk.selected 3.6.0
ti info -t android
Android SDK
Android Executable = /opt/android-sdk/tools/android
SDK Path = /opt/android-sdk
Android NDK
NDK Path = /opt/android-ndk
NDK Version = r10 (64-bit)
/Users/chris/appc/titanium/node_modules/longjohn/dist/longjohn.js:185
throw e;
^
TypeError: Cannot call method 'join' of undefined
at /Users/chris/appc/titanium/lib/commands/info.js:384:75
at Array.forEach (native)
at /Users/chris/appc/titanium/lib/commands/info.js:376:29
at sections.push.Section.render (/Users/chris/appc/titanium/lib/commands/info.js:404:7)
at /Users/chris/appc/titanium/lib/commands/info.js:633:14
at Array.forEach (native)
at /Users/chris/appc/titanium/lib/commands/info.js:627:13
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:232:13
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:119:25
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:24:16
---------------------------------------------
at exports.execFile (child_process.js:702:9)
at exports.exec (child_process.js:589:18)
at async.series.cached (/Users/chris/appc/titanium/node_modules/node-appc/lib/android.js:103:4)
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:551:21
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:227:13
at iterate (/Users/chris/appc/titanium/node_modules/async/lib/async.js:134:13)
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:145:25
at /Users/chris/appc/titanium/node_modules/async/lib/async.js:229:17
Master: https://github.com/appcelerator/titanium/pull/155 3_4_X: https://github.com/appcelerator/titanium/pull/156
Verified fixed with: CLI: 3.4.0-rc3 Alloy: 1.5.0-rc2 Titanium SDK: 3.4.0.v20140913174915