[TIMOB-11473] CLI: error caused when tiapp.xml references a non-existent sdk version
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-10-19T21:52:27.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2012 Sprint 21 JS, 2012 Sprint 21 |
Components | Tooling |
Labels | qe-cli |
Reporter | Natalie Huynh |
Assignee | Natalie Huynh |
Created | 2012-10-13T20:28:54.000+0000 |
Updated | 2013-07-25T02:30:21.000+0000 |
Description
Steps to Reproduce:
1. Run titanium build on a project that references a sdk that does not exist
Actual:
[ERROR] Unable to run command "build"
TypeError: Cannot read property 'path' of undefined 0 [ 'TypeError: Cannot read property \'path\' of undefined',
' at Object.exports.constructLegacyCommand [as constructLegacyCommand] (/Users/nataliehuynh/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.v20121012174449/node_modules/titanium-sdk/lib/legacy.js:11:68)',
Expected:
Give user option to change the build or handle the error better
I think I fixed it.
Tested with Cli 3.0.16 SDK 3.0.0.v20121113170203
This still happens when there is no sdk-version in the tiapp.xml
@Russell, I just tested building an app with the bleeding edge Titanium CLI, Node.js 0.10.12, a selected SDK of 3.1.1.GA, and without a