{ "id": "125311", "key": "TIMOB-16298", "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": "15927", "description": "2014 Sprint 04", "name": "2014 Sprint 04", "archived": true, "released": true, "releaseDate": "2014-02-28" }, { "id": "15928", "description": "2014 Sprint 04 Core", "name": "2014 Sprint 04 Core", "archived": true, "released": true, "releaseDate": "2014-02-28" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-28T00:47:46.000+0000", "created": "2014-01-23T18:24:41.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.1", "qe-closed-3.2.3", "qe-testadded" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "36030", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "128076", "key": "TIMOB-16683", "fields": { "summary": "CLI: Running \"ti create -p\" does not prompt platforms to be used and creates all platforms project", "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": "2014-03-24T21:29:35.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" } ], "description": "h5.Description\r\nRunning \"ti create\" prompts the user to pick a platform for the project.\r\nRunning \"ti create -p\" skips that step and prompts for the App ID.\r\nNo matter what is entered the user will get\r\n{code}\r\n[ERROR] TypeError: Object true has no method 'toLowerCase'\r\n at exports.scrubPlatforms (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140122175749/node_modules/titanium-sdk/lib/titanium.js:624:12)\r\n at options.appc.util.mix.id.prompt.validator (/Users/sdowse/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.v20140122175749/cli/commands/create.js:76:26)\r\n at fields.text.validate (/usr/local/lib/node_modules/titanium/lib/cli.js:1018:12)\r\n at Text. (/usr/local/lib/node_modules/titanium/node_modules/fields/lib/prompter.js:169:21)\r\n at EventEmitter.emit (events.js:98:17)\r\n at emitKey (/usr/local/lib/node_modules/titanium/node_modules/fields/node_modules/keypress/index.js:344:12)\r\n at onData (/usr/local/lib/node_modules/titanium/node_modules/fields/node_modules/keypress/index.js:39:7)\r\n at EventEmitter.emit (events.js:95:17)\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n1. Open a terminal window\r\n2. Run 'ti create -p'\r\n3. Type in a valid App ID\r\n\r\nh5.Expected Result\r\nThe CLI should notice the missing parameters for the platform and ask for a valid input.\r\n\r\nh5.Actual Result\r\nThe CLI moves on to the App ID, then fails to create.", "attachment": [], "flagged": false, "summary": "CLI: Running \"ti create -p\" throws errors, instead should ask what platform you wish to use", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.1\r\nAppcelerator Studio, build: 3.2.1.201401221450\r\nTitanium SDK, build: 3.2.1.v20140122175749\r\nCLI: 3.2.1-beta3\r\nAlloy: 1.3.1-beta3", "comment": { "comments": [ { "id": "290362", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5285\n3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5286", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-30T00:13:35.000+0000", "updated": "2014-01-30T00:13:35.000+0000" }, { "id": "298478", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-24T20:46:12.000+0000", "updated": "2014-03-24T21:28:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }