Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14756] CLI : Command 'ti plugin' or 'titanium plugin' throws errors

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-09-26T20:54:45.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 16, 2013 Sprint 16 Core
ComponentsCLI
Labelsqe-3.1.2, qe-nfc
ReporterLokesh Choudhary
AssigneeChris Barber
Created2013-08-02T22:03:42.000+0000
Updated2017-03-20T16:37:40.000+0000

Description

Description: 1. Install CLI version 3.1.2-alpha 2. Run command 'ti plugin' or 'titanium plugin' 3. Observe the output Actual Result: 1. We get the following errors:

LChoudharyMBP:~ lokeshchoudhary$ titanium plugin
[ERROR] Unable to run command "plugin"

TypeError: Arguments to path.join must be strings 0 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at path.js:360:15 1 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at Array.filter (native) 2 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at exports.join (path.js:358:36) 3 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23) 4 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25 5 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13 6 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at Array.forEach (native) 7 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24) 8 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9) 9 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19) 10 [ 'TypeError: Arguments to path.join must be strings',
  '    at path.js:360:15',
  '    at Array.filter (native)',
  '    at exports.join (path.js:358:36)',
  '    at async.parallel.project (/usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/tiplugin.js:127:23)',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:467:25',
  '    at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:86:13',
  '    at Array.forEach (native)',
  '    at _forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:26:24)',
  '    at async.forEach (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:85:9)',
  '    at async.parallel (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:466:19)' ]
Expected Result: 1. The command should list the appropriate plugin list

Comments

  1. Chris Barber 2013-08-02

    https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
  2. Chris Barber 2013-08-02

    To test, run "ti plugin" when you are in a project directory and when you are NOT in a project directory.
  3. Eric Merriman 2013-09-06

    This still occurs with CLI 3.1.2.GA.
  4. Chris Barber 2013-09-26

    Unable to reproduce with Titanium CLI 3.2.0. Titanium CLI 3.1.x has known issues, but 3.1.x isn't going to be fixed at this point.
  5. Lee Morris 2017-03-20

    Closing ticket as the issue cannot be reproduced.

JSON Source