Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-885

Appc new should be more cautious when unable to read Ti activeSDK value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.2.0
    • Component/s: Titanium
    • Labels:
    • Story Points:
      1
    • Sprint:
      2015 Sprint 23 Tooling

      Description

      When appc new failed to retrieve active Ti SDK version, following error occurred with the command appc new

      ERROR  | Cannot read property 'split' of undefined
      

      Reproduce steps

      1. appc use 5.1.0
      2. remove/rename .titanium/config.json
      3. remove/rename Application Support/Titanium/mobilesdk
      4. appc new

      Expected result

      you should see the following prompt instead of the undefined error

      ? What type of project are you creating? (Use arrow keys)
      ❯ Native App 
        Arrow App 
        Titanium Module 
      

      Actual result

      Project type selection prompt is not shown, and process errors out:
      ERROR | Cannot read property 'split' of undefined

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmiao Feon Sua Xin Miao
                Reporter:
                fmiao Feon Sua Xin Miao
                Reviewer:
                Praveen Innamuri (Inactive)
              • Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code