Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15813] CLI: 'ti config' will duplicate the length of the paths.sdks value

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-12-03T22:26:17.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 Core, Release 3.3.0
ComponentsCLI
Labelsmodule_titanium, qe-3.2.0, qe-testadded
ReporterSamuel Dowse
AssigneeChris Barber
Created2013-11-25T17:55:30.000+0000
Updated2014-07-24T06:57:40.000+0000

Description

Description

Running "ti config" in CLI will display all the variables and their corresponding values. In this case paths.sdks is set to be
"C:\Users\AppcelTester\AppData\Roaming\Titanium\".
Running ti config a second time will make the value
"C:\Users\AppcelTester\AppData\Roaming\Titanium\, C:\Users\AppcelTester\AppData\Roaming\Titanium\"
The more I run ti config the longer it gets.

Steps To Reproduce

1. Run ti config to make sure a paths.sdks value is set 2. Set paths.sdks to a location 3. Run ti config a few times 4. Look at paths.sdks value

Expected Result

paths.sdks should still be the same value

Actual Result

paths.sdks adds it's original value onto itself. Increasing in length each time "ti config" is run

Attachments

FileDateSize
pathssdks.PNG2013-11-25T17:55:30.000+000017812
pathssdks2.PNG2013-11-25T17:55:30.000+000022868

Comments

  1. Chris Barber 2013-12-03

    Master pull request: https://github.com/appcelerator/titanium/pull/80 3.2.x. pull request: https://github.com/appcelerator/titanium/pull/81
  2. Paras Mishra 2014-01-02

    Running 'ti config' shows the original set value and it does not change after running multiple times Verified the fix on: SDK: 3.2.0.GA CLI version : 3.2.0 OS : MAC OSX 10.9 Alloy: 1.3.1-alpha ACS: 1.0.11 npm:1.3.2 Appcelerator Studio, build: 3.2.0.201312191455 titanium-code-processor: 1.1.0 XCode : 5.0.2

JSON Source