[TIMOB-14756] CLI : Command 'ti plugin' or 'titanium plugin' throws errors
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-09-26T20:54:45.000+0000 |
Affected Version/s | Release 3.1.2 |
Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 Core |
Components | CLI |
Labels | qe-3.1.2, qe-nfc |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2013-08-02T22:03:42.000+0000 |
Updated | 2017-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
https://github.com/appcelerator/titanium/pull/50 https://github.com/appcelerator/node-appc/pull/50
To test, run "ti plugin" when you are in a project directory and when you are NOT in a project directory.
This still occurs with CLI 3.1.2.GA.
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.
Closing ticket as the issue cannot be reproduced.