{ "id": "130560", "key": "TIMOB-16974", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16272", "description": "2014 Sprint 10 Tooling", "name": "2014 Sprint 10 Tooling", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "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-05-23T20:44:13.000+0000", "created": "2014-05-16T18:10:19.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_cli", "qe-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-05-23T20:44:17.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\nSay you have 3.3.0 and 3.2.3 sdk installed. You rename 3.2.3 to 'a' and 3.3.0 to 'b' and run ti sdk, it will list 3.2.3 first as it is alphabetically earlier that 3.3.0.\r\nRunning ti sdk select latest just picks the top value of ti sdk, which is now 3.2.3 not 3.3.0.\r\n\r\nh5.Steps To Reproduce\r\n1. Rename your earliest installed sdk to 'a'\r\n2. Run 'ti sdk select latest'\r\n3. Run 'ti sdk'\r\n\r\nh5.Actual Result\r\n'ti sdk select latest' selects the earlier sdk\r\n\r\nh5.Expected Result\r\n'ti sdk select latest' should select the latest version number, not version name.", "attachment": [], "flagged": false, "summary": "CLI: 'ti sdk' lists sdks by folder name alphabetically. If an earlier sdk is listed first then 'ti sdk select latest' actually selects an earlier version", "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.3\r\nAppcelerator Studio, build: 3.3.0.201405121247\r\nTitanium SDK, build: 3.3.0.v20140515133312\r\nTitanium CLI, build: 3.3.0-dev\r\nAlloy: 1.4.0-alpha", "closedSprints": [ { "id": 107, "state": "closed", "name": "2014 Sprint 10 Tooling", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:27.256Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "305322", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Titanium CLI master pull request: https://github.com/appcelerator/titanium/pull/133", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-16T18:13:24.000+0000", "updated": "2014-05-16T18:13:24.000+0000" }, { "id": "305327", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Works as expected: {{ti sdk select latest}} selects the newest SDK (3.3.0, which I had renamed to b)", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-05-16T18:46:22.000+0000", "updated": "2014-05-16T18:46:22.000+0000" }, { "id": "305340", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: \r\nTitanium SDK, build: \r\nTitanium CLI, build: 3.3.0-dev\r\nAlloy: 1.4.0-alpha\r\n\r\n'ti sdk' now displays all SDKs in order of the name in the manifest.json inside of the SDK.\r\n'ti sdk select latest' chooses the latest installed SDK.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-16T19:48:20.000+0000", "updated": "2014-05-16T19:48:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }