{ "id": "123278", "key": "TIMOB-15899", "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": "15821", "description": "2014 Sprint 02", "name": "2014 Sprint 02", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "id": "15824", "description": "2014 Sprint 02 Core", "name": "2014 Sprint 02 Core", "archived": true, "released": true, "releaseDate": "2014-01-31" }, { "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-01-20T22:24:43.000+0000", "created": "2013-12-05T15:43:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-03-25T23:11:20.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": "h2. problem\r\n\r\nWhen attempting to run {{ti build}} against a project for which the sdk-version in the tiapp.xml is not installed, you get this helpful message to guide you to building properly:\r\n\r\n{code}\r\n[ERROR] Unable to compile project because the 'sdk-version' in the tiapp.xml is not installed\r\n\r\nThe project's sdk-version is currently set to 3.2.0.v20130624174155, which is not installed.\r\n\r\nUpdate the sdk-version in the tiapp.xml to one of the installed Titaniums SDKs:\r\n 2.1.0\r\n 2.1.0.GA\r\n 3.0.2.GA\r\n 3.1.0.GA\r\n 3.1.1.GA\r\n 3.1.2.GA\r\n 3.1.3.GA\r\n 3.2.0\r\n 3.2.0-old\r\n 3.3.0\r\nor run 'titanium sdk install 3.2.0.v20130624174155' to download and install Titanium SDK 3.2.0.v20130624174155\r\n{code}\r\n\r\nHowever, when targeting a CI build for installation, it will indicate that the version does not exist. So when I run {{titanium sdk install 3.2.0.v20130624174155}}, I get this output:\r\n\r\n{code}\r\n[ERROR] Release \"3.2.0.v20130624174155\" does not exist\r\n\r\nDid you forget to specify the branch?\r\n\r\nAvailable Releases:\r\n 3.1.3.GA 2.1.2.GA 1.8.0.1 1.6.0 1.2.0 0.6.0\r\n 3.1.2.GA 2.1.1.GA 1.7.5 1.5.1 1.1.2 0.5.0\r\n 3.1.1.GA 2.1.0.GA 1.7.3 1.5.0 1.1.1 0.4.2\r\n 3.1.0.GA 2.0.2.GA 1.7.2 1.4.2 1.0.0 0.4.1\r\n 3.0.2.GA 2.0.1.GA2 1.7.1 1.4.1.1 0.9.3\r\n 3.0.0.GA 2.0.1.GA 1.7.0 1.4.1 0.7.1\r\n 2.1.4.GA 1.8.2 1.6.2 1.4.0 0.6.2\r\n 2.1.3.GA 1.8.1 1.6.1 1.3.0 0.6.1\r\n{code}\r\n\r\nIf you attempt to specify the install with {{--branch}} it will fail with this error, expecting an actual branch name (duh):\r\n\r\n{code}\r\n[ERROR] Branch \"3.2.0.v20130624174155\" does not exist\r\n\r\nAvailable Branches:\r\n master 3_1_X 2_1_X 1_8_X 1_6_X 1_4_X\r\n 3_2_X 3_0_X 2_0_X 1_7_X 1_5_X\r\n{code}\r\n\r\nh2. expected\r\n\r\nThe CLI installs the CI version of the SDK that is specified, which it should be able to determine simply by parsing the version of the SDK given. If the CLI can not download and install this directly, instructions for downloading and installing CI builds should be given, rather than the inaccurate output that is given now.", "attachment": [], "flagged": false, "summary": "CLI: Help message when attempting to build with missing SDK is inaccurate", "creator": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "titanium 3.2.0-beta", "comment": { "comments": [ { "id": "282624", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "{{--branch}} is not a flag, it's an option. It expects a value, like 3_2_X. If you run {{titanium sdk install 3.2.0.v20130624174155 --branch 3_2_X}} you will see that 3.2.0.v20130624174155 no longer exists because the CI server prunes old builds.\n\nI believe this is not a bug, that things are working as designed, and that this ticket should be resolved won't fix. However I could slightly improve the user experience by scanning all branches for that build and auto select that branch, so I will not resolve this as won't fix until I discuss with [~ingo]. If the version is too old, then you'll see a similar error to what you see today.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-05T17:58:23.000+0000", "updated": "2013-12-05T17:58:23.000+0000" }, { "id": "282646", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I never said {{--branch}} was a flag and stated in my final sentence that I knew it expected a branch name, so there's no confusion there.\n\nI don't have an issue with the CLI not being able to pull CI builds automatically, though that would be a nice improvement, and I agree that that aspect is definitely not a bug. My issue is specifically with the fact that the CLI says:\n\n{code}\nor run 'titanium sdk install 3.2.0.v20130624174155' to download and install Titanium SDK 3.2.0.v20130624174155\n{code}\n\nwhich results in an error when you run it, which to me is the bug. If the CLI is not able to automatically pull the CI build (since that sounds like a bit of work), it would be good if when {{ti sdk install}} is called with a CI version that either that message is not shown, or a more accurate message that doesn't result in an error is printed.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T18:48:56.000+0000", "updated": "2013-12-05T18:48:56.000+0000" }, { "id": "287152", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium/pull/92\n3.2.x pull request: https://github.com/appcelerator/titanium/pull/93", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-08T04:16:44.000+0000", "updated": "2014-01-08T04:16:44.000+0000" }, { "id": "288900", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test:\n\nRun 'titanium sdk install ' where sdk_version is a version from the CI page. An example format would be:\n3.2.1.v20140117222448\n\n", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-20T22:24:31.000+0000", "updated": "2014-01-20T22:24:31.000+0000" }, { "id": "298388", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "This issue is still reproducible with CLI:3.2.1 using Environment:\nOSX: 10.9.2\nXcode: 5.1\nAppcelerator Studio: 3.2.3.201403190645\nSDK: 3.2.3.v20140322210914\nacs:1.0.14\nalloy:1.3.1\nnpm:1.3.2\ntitanium:3.2.1\ntitanium-code-processor:1.1.0\n\nBut this issue is fixed for CLI: 3.3.0, hence not closing this.", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-24T09:42:34.000+0000", "updated": "2014-03-24T09:42:34.000+0000" }, { "id": "298709", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on: \nMac OSX 10.9.2\nAppcelerator Studio, build: 3.2.3.201403250634\nTitanium SDK, build: 3.2.3.v20140325145222\nCLI: 3.2.3-dev\nAlloy: 1.3.1\n\nRan Allens test case using the latest available SDK and successfully installed the SDK.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T23:11:08.000+0000", "updated": "2014-03-25T23:11:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }