Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17636] CLI: Should offer to create the Application Support/Titanium (or other user designated) folder if it does not exist.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-03-20T17:32:25.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0, Release 4.1.0
ComponentsCLI, Tooling
Labelsn/a
ReporterStephen Feather
AssigneeFeon Sua Xin Miao
Created2014-09-08T03:55:55.000+0000
Updated2015-03-24T20:26:12.000+0000

Description

Problem

CLI sdk setup fails if Titanium folder does not exist

Expectation

CLI should create the Titanium folder in Application Support if it does not exist
Where do you want to go? 7
 

────────────────┤ Titanium SDK Settings ├─────────────────

Path to find and install Titanium SDKs:
[/Users/stephenfeather/Library/Application Support/Titanium]: 
[ERROR] Invalid directory

Attachments

FileDateSize
Screen Shot 2015-01-16 at 10.40.44 AM.png2015-01-16T15:45:23.000+000058520

Comments

  1. Chris Barber 2014-09-08

    Good find!
  2. Ingo Muschenetz 2014-09-08

    Regression?
  3. Stephen Feather 2014-10-16

    @ingo, scenario I'd never tested, so cant say.
  4. Chris Barber 2014-10-16

    Not a regression, just a bug. Super low hanging fruit.
  5. Tim Poulsen 2015-01-16

    edit: Steps to reproduce: 1. Rename ~/Library/Application Support/Titanium to Titanium_save 2. Rename /Library/Application Support/Titanium to Titanium_save 3. Run ti setup and choose option 7. I am then prompted for a "Path to find and install Titanium SDKs" 4. Press Enter
  6. Tim Poulsen 2015-01-16

    PR https://github.com/appcelerator/titanium/pull/183 FR: use the steps in the preceding comment, except that at step 4 the CLI should create the Titanium folder (so, no error)
  7. Feon Sua Xin Miao 2015-03-20

    4_0_X: https://github.com/appcelerator/titanium/pull/205
  8. Ewan Harris 2015-03-24

    Verified fix on: Mac OSX 10.10.2 Titanium SDK build: 4.0.0.v20150323131014 Titanium CLI, build: 4.0.0-alpha Alloy: 1.6.0-alpha If a Titanium folder is not present when ti setup->Titanium SDK Settings is run the folder gets created. Closing ticket.

JSON Source