{ "id": "103338", "key": "TIMOB-11473", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14167", "description": "2012 Sprint 21 JS", "name": "2012 Sprint 21 JS", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-10-19T21:52:27.000+0000", "created": "2012-10-13T20:28:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-cli" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-25T02:30:21.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "Steps to Reproduce:\n1. Run titanium build on a project that references a sdk that does not exist\n\nActual:\n[ERROR] Unable to run command \"build\"\n\nTypeError: Cannot read property 'path' of undefined 0 [ 'TypeError: Cannot read property \\'path\\' of undefined',\n ' 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)',\n\nExpected:\nGive user option to change the build or handle the error better", "attachment": [], "flagged": false, "summary": "CLI: error caused when tiapp.xml references a non-existent sdk version", "creator": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MAC 10.7\r\nSDK: 3.0.0.v20121012174449\r\nCLI 3.0.3", "comment": { "comments": [ { "id": "224534", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I think I fixed it.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-10-19T21:52:27.000+0000", "updated": "2012-10-19T21:52:27.000+0000" }, { "id": "227504", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Cli 3.0.16 SDK 3.0.0.v20121113170203", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-15T17:49:54.000+0000", "updated": "2012-11-15T17:49:54.000+0000" }, { "id": "263007", "author": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "body": "This still happens when there is no sdk-version in the tiapp.xml", "updateAuthor": { "name": "rfranknj", "key": "rfranknj", "displayName": "Russell Frank", "active": true, "timeZone": "America/New_York" }, "created": "2013-07-24T18:52:34.000+0000", "updated": "2013-07-24T18:52:34.000+0000" }, { "id": "263098", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "@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 in the tiapp.xml and it built correctly using 3.1.1.GA. The latest stable CLI should work too. The only tiapp.xml fields that are required are name, id, and guid.\n\nThe error described above is because they were using an old Titanium SDK (3.0.0 or 3.0.2) and Node.js 0.10.x. This means that if you want to build using Titanium SDK 3.0.0 or 3.0.2, you have to have Node.js 0.8.x installed. If you want to build for 3.1.0 or newer, you can use Node.js 0.8.x or 0.10.x.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-07-25T02:30:21.000+0000", "updated": "2013-07-25T02:30:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }