Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17190] CLI: "ti setup sdk" fails on second time when CLI has invalid SDK configuration.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-09-22T05:35:19.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.0
ComponentsCLI
Labelsqe-3.3.0
ReporterKajenthiran Velummaylum
AssigneeChris Barber
Created2014-06-23T09:40:51.000+0000
Updated2017-03-27T17:45:19.000+0000

Description

ti setup sdk fails on second time when CLI has invalid SDK configuration.

Steps To Reproduce:

1. Run *ti sdk* command and check the current selected SDK version 2. Rename or delete that SDK folder from your machine 3. Then run *ti setup sdk* command 4. Enter a value to setup default sdk version. 5. Skip "Path to find and install Titanium SDKs" settings by pressing Enter. 6. Setup main menu will appear. You press 7 or sdk again.

Actual Result:

Error message thrown. Please see the attachment for more info. [ERROR] RangeError: Invalid array length

Expected Result:

It should display "Titanium SDK Settings" menu.

Attachments

FileDateSize
ti_setup_sdk_fail.png2014-06-23T09:40:51.000+000071423

Comments

  1. Chris Barber 2016-09-22

    This was fixed as apart of TIMOB-16052 and released in Titanium CLI 3.3.0.
  2. Lee Morris 2017-03-27

    Closing ticket as fixed with reference to the above comments.

JSON Source