{ "id": "135976", "key": "TIMOB-17594", "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-09-03T18:20:59.000+0000", "created": "2014-09-02T10:00:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.4.0", "regression" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-20T21:57:22.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" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Description:\r\nRunning \"ti build -p iOS -T simulator -D\" command doesn't prompt the user for the deployment type value and build project with its default value.\r\nRunning \"ti build -p iOS -T\" command doesn't prompt the user for the target value and build project with its default value..\r\nRunning \"ti build -p iOS -T simulator -S\" command doesn't prompt the user for the iOS simulator version and build project with its default value. \r\n\r\nThe issue is not reproducible with CLI 3.3.0 and Titanium SDK version 3.3.0.GA.\r\nWith CLI 3.3.0, it prompts for the input value based on the option specified with \"ti build -p iOS\" command.\r\nHence marked as a regression.\r\n\r\nSTEPS TO REPRODUCE\r\n1. Open a terminal window\r\n2. Create a project and you have to \"cd\" to this project to be able to run command \"build\"\r\n3. Run \"ti build -p iOS -T simulator -D\" command.\r\n4. Run \"ti build -p iOS -T\" command.\r\n5. Run \"ti build -p iOS -T simulator -S\" command.\r\n\r\n\r\nEXPECTED RESULT\r\nThe CLI should prompt for the input value from user based on the iOS build\r\noption given with the command.\r\n\r\nACTUAL RESULT\r\nThe CLI is not prompting for the input value for any of the mentioned options and building the project.", "attachment": [], "flagged": false, "summary": "CLI: Some iOS build options with \"ti build -p iOS\" command is not prompting for input value when run without values", "creator": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Tested on: \r\n1. Mac OSX 10.9.4 \r\n2. Appcelerator Studio, build: 3.4.0.201408291834 \r\n3. Titanium SDK, build: 3.4.0.v20140829184521 \r\n4. Titanium CLI, build: 3.4.0-dev \r\n5. Alloy: 1.5.0-dev \r\n6. Xcode 6 beta 6", "closedSprints": [ { "id": 208, "state": "closed", "name": "2014 Sprint 18 Tooling", "startDate": "2014-09-02T20:24:55.144Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:39.957Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "321635", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "In the case of {{ti build -p ios -T simulator -D}}, since you're not specifying a deploy type, it defaults to whatever the default for the target is.\r\n\r\nIn the case of {{ti build -p ios -T}}, since you're not specifying the target, it defaults to the simulator.\r\n\r\nIn the case of {{ti build -p ios -T simulator -S}}, since you're not specifying the simulator version, it defaults to the ios version.\r\n\r\nIn TiSDK 3.4.0 we now treat missing option values as \"\" (empty string) instead of true. This prevents a slew of errors when handling a boolean when a string was expected. Because you are omitting the values, the CLI is using the defaults as it should.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-03T18:20:49.000+0000", "updated": "2014-09-03T18:20:49.000+0000" }, { "id": "321715", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "body": "Thanks Chris.I have noted it.\r\nCan you please let me know where I can find the complete details?\r\nAs there are still some options when ran without value with TiSDK 3.4.0, prompts for the input from user.For this options, the default value is not set. ", "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-04T03:44:55.000+0000", "updated": "2014-09-04T03:44:55.000+0000" }, { "id": "328294", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "body": "[~cbarber]I have executed the below command for building iOS application.\r\n\r\ntitanium build -p ios -F ipad -Y ipad -I\r\n\r\nWith the above, CLI doesn't prompt for iOS SDK version. Builds the application with default value.\r\nWith --ios-version flag, its prompting.\r\n\r\nWhat should be the expected behavior with the below command?Should it prompt for iOS SDK?\r\ntitanium build -p ios -F ipad -Y ipad -I", "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-10-16T06:47:46.000+0000", "updated": "2014-10-16T06:47:46.000+0000" }, { "id": "414022", "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-20T21:57:22.000+0000", "updated": "2017-03-20T21:57:22.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }