Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16974] 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

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-23T20:44:13.000+0000
Affected Version/sRelease 3.3.0
Fix Version/s2014 Sprint 10, 2014 Sprint 10 Tooling, Release 3.3.0
ComponentsCLI
Labelsmodule_cli, qe-3.3.0, qe-testadded
ReporterSamuel Dowse
AssigneeChris Barber
Created2014-05-16T18:10:19.000+0000
Updated2014-05-23T20:44:17.000+0000

Description

Description

Say 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. Running ti sdk select latest just picks the top value of ti sdk, which is now 3.2.3 not 3.3.0.

Steps To Reproduce

1. Rename your earliest installed sdk to 'a' 2. Run 'ti sdk select latest' 3. Run 'ti sdk'

Actual Result

'ti sdk select latest' selects the earlier sdk

Expected Result

'ti sdk select latest' should select the latest version number, not version name.

Comments

  1. Chris Barber 2014-05-16

    Titanium CLI master pull request: https://github.com/appcelerator/titanium/pull/133
  2. Tim Poulsen 2014-05-16

    Works as expected: ti sdk select latest selects the newest SDK (3.3.0, which I had renamed to b)
  3. Samuel Dowse 2014-05-16

    Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: Titanium SDK, build: Titanium CLI, build: 3.3.0-dev Alloy: 1.4.0-alpha 'ti sdk' now displays all SDKs in order of the name in the manifest.json inside of the SDK. 'ti sdk select latest' chooses the latest installed SDK. Closing.

JSON Source