[TIMOB-17808] CLI: All commands fail when Titanium SDK 3.3.0 or older is the selected SDK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-30T14:02:30.000+0000 |
Affected Version/s | Release 3.4.0 |
Fix Version/s | Release 3.4.1, Release 3.4.2, Release 3.5.0, Release 4.0.0 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2014-09-29T22:35:06.000+0000 |
Updated | 2014-11-21T18:41:00.000+0000 |
Description
When using Titanium CLI 3.4.0 on Windows or Linux and having a selected SDK or specifying
\-\-sdk
of 3.3.0.GA or older will cause all Titanium CLI commands to crash:
C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185
throw e;
^
TypeError: Cannot read property 'path' of undefined
at removeXcode6 (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\hooks\tisdk3fixes.js:75:54)
at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\hooks\tisdk3fixes.js:115:4
at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\lib\hook.js:235:13
at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:551:21
at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:227:13
at iterate (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:134:13)
at async.eachSeries (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:150:9)
at _asyncMap (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:226:9)
at Object.mapSeries (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:216:23)
at async.series (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:549:19)
---------------------------------------------
at async.setImmediate (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:96:15)
at C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:696:21
at Array.forEach (native)
at _each (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:32:24)
at _insert (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:681:11)
at q.push (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\async\lib\async.js:708:15)
at Object.findExecutable (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\subprocess.js:113:8)
at resolveNode (C:\Users\Thomas Anderson\AppData\Roaming\npm\node_modules\titanium\lib\titanium.js:97:34)
To reproduce, install Titanium CLI 3.4.0 on Windows or Linux, then run ti info \-\-sdk 3.3.0.GA
.
Master: https://github.com/appcelerator/titanium/pull/163 3_4_X: https://github.com/appcelerator/titanium/pull/164
Works as expected. PRs merged.
Verified fix on: Windows 8.1, Ubuntu 14.04 Appcelerator Studio, build: 3.4.0.201409261245 Titanium SDK build: 3.5.0.v20141003114918, 3.3.0.GA Titanium CLI, build: 3.5.0-dev Alloy: 1.5.1 Ran the command ti info --sdk 3.3.0.GA on both systems and there was no error either time. Closing ticket.