[TIMOB-17636] CLI: Should offer to create the Application Support/Titanium (or other user designated) folder if it does not exist.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-03-20T17:32:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0, Release 4.1.0 |
Components | CLI, Tooling |
Labels | n/a |
Reporter | Stephen Feather |
Assignee | Feon Sua Xin Miao |
Created | 2014-09-08T03:55:55.000+0000 |
Updated | 2015-03-24T20:26:12.000+0000 |
Description
Problem
CLI sdk setup fails if Titanium folder does not existExpectation
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
File | Date | Size |
---|---|---|
Screen Shot 2015-01-16 at 10.40.44 AM.png | 2015-01-16T15:45:23.000+0000 | 58520 |
Good find!
Regression?
@ingo, scenario I'd never tested, so cant say.
Not a regression, just a bug. Super low hanging fruit.
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 EnterPR 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)
4_0_X: https://github.com/appcelerator/titanium/pull/205
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.