Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16553] CLI: Android build-tools v19.0.3 causes 'ti info' to throw an error

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-03-05T19:32:05.000+0000
Affected Version/sRelease 3.2.2
Fix Version/s2014 Sprint 05, 2014 Sprint 05 Tooling, Release 3.2.2, Release 3.3.0
ComponentsAndroid, CLI
Labelsqe-3.2.2, qe-testadded
ReporterSamuel Dowse
AssigneeChris Barber
Created2014-03-05T18:33:42.000+0000
Updated2014-08-26T14:37:44.000+0000

Description

Description

Updating to the latest Android tool set causes the 'ti info' command to fail

Steps To Reproduce

1. Install the latest Android tool set (SDK Tools, build-tools, platform-tools) 2. Run 'ti info'

Expected Result

Should display all information without throwing an error

Actual Error

/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
        throw e;
              ^
TypeError: Cannot call method 'join' of undefined
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/android/cli/lib/info.js:82:77
    at Array.forEach (native)
    at exports.render (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/android/cli/lib/info.js:64:29)
    at /usr/local/lib/node_modules/titanium/lib/commands/info.js:613:14
    at Array.forEach (native)
    at /usr/local/lib/node_modules/titanium/lib/commands/info.js:607:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:24:16
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17
---------------------------------------------
    at Readable.on (_stream_readable.js:689:33)
    at Connection.exec (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/adb.js:114:9)
    at ADB.devices (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/adb.js:362:23)
    at Object.detectDevices (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/android/cli/lib/detect.js:60:18)
    at Section.<anonymous> (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/android/cli/lib/info.js:25:7)
    at finalize (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/android.js:313:4)
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/android.js:681:5
    at ChildProcess.<anonymous> (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/node-appc/lib/subprocess.js:60:3)
---------------------------------------------
    at run (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/node-appc/lib/subprocess.js:59:8)
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/android.js:453:4
    at getRealName (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/node-appc/lib/subprocess.js:124:10)
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/titanium-sdk/lib/android.js:450:3
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:533:17
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:119:25
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:24:16
    at /Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA/node_modules/async/lib/async.js:530:21

Comments

  1. Chris Barber 2014-03-05

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5430 3_2_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5431 3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5432
  2. Samuel Dowse 2014-03-06

    Verified fixed on: Mac OSX 10.9.2 Appcelerator Studio, build: 3.2.1.201402061120 Titanium SDK, build: 3.2.2.v20140305122111 CLI: 3.2.1 Alloy: 1.3.1 Android SDK Tools: 22.6 Android Platform Tools: 19.0.1 Android Build Tools: 19.0.3 ti info displays correctly Closing.
  3. Tim Statler 2014-08-26

    I'm getting the same error in CLI 3.3.0. Perhaps I'm using an incompatible combination of tools/platform tools/build tools? Mac OSX 10.8.5 Titanium SDK, build: 3.3.0.GA CLI: 3.3.0 Alloy: 1.4.1 Android SDK Tools: 23.0.2 Android Platform Tools: 20 Android Build Tools: 19.1

JSON Source