{ "id": "126046", "key": "TIMOB-16417", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-02-06T23:56:52.000+0000", "created": "2014-02-06T22:18:54.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "34954", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "126040", "key": "TIMOB-16415", "fields": { "summary": "Windows Hybrid: cannot build project with new CI Build Feb 5", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "34958", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124581", "key": "TIMOB-16153", "fields": { "summary": "CLI: Hook system has wrong callback signatures and poor error handling", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "34953", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "126045", "key": "TIMOB-16416", "fields": { "summary": "Update the SDK commands for build, clean, create and project to have correct min CLI version for 3.2.1", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T17:20:13.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": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "attachment": [], "flagged": false, "summary": "CLI: Build - If you have 3.2.0 CLI with 3.2.1 SDK selected in CLI and in tiapp.xml, then \"Invalid platform \"undefined\"\" message is returned ", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.2.1.201402061120\r\nSDK build: 3.2.1.v20140205094854\r\nCLI: 3.2.0\r\nAlloy: 1.3.1-cr2\r\n", "comment": { "comments": [ { "id": "291821", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This was introduced when fixing TIMOB-16153. This error only occurs when you have a 3.2.0 CLI and a 3.2.1 or newer SDK.\r\n\r\nWhat's happening is the 3.2.0 CLI loads the build command, then calls the build command's config() function. Inside the config() function, it fires the \"build.config\" hook, but because the hook API changed in 3.2.1, 3.2.0 expects the arguments in the old order (which is error, results, result). The \"result\" is the build command configuration and \"results\" is the result of all post hook functions, usually an empty array. The 3.2.0 CLI receives \"results\" as an empty array as the config options and treats it as no options. Then it continues to load the command with the only know options of --config and --sdk. Because the --platform option was never found, it doesn't know that -p is actually --platform and eventually the build command's validate() will catch the problem and error.\r\n\r\nNow, if you use --platform, then the build will fail again because the platform specific build script's hooks use the new hook API and cause the CLI to crash.\r\n\r\nIn any case, as long as the min CLI version mechanisms are working, then this error will NEVER be encountered.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-02-06T23:56:52.000+0000", "updated": "2014-02-06T23:56:52.000+0000" }, { "id": "413741", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:20:13.000+0000", "updated": "2017-03-20T17:20:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }