Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17666] CLI: ti info fails when invalid Titanium SDK is selected

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-09-15T18:53:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2014-09-09T22:42:58.000+0000
Updated2014-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

Comments

  1. Chris Barber 2014-09-09

    Master: https://github.com/appcelerator/titanium/pull/155 3_4_X: https://github.com/appcelerator/titanium/pull/156
  2. Eric Merriman 2014-09-14

    Verified fixed with: CLI: 3.4.0-rc3 Alloy: 1.5.0-rc2 Titanium SDK: 3.4.0.v20140913174915

JSON Source