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

Installing latest SDK does not select it

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.0.0
    • Component/s: Core, Titanium
    • Labels:
      None
    • Environment:

      CLI 0.2.285
      NPM 0.3.55

    • Severity:
      Blocker

      Description

      If you run appc setup and it installs a newer SDK, this does not get selected:

      ≫ appc setup
      Finding latest version ...0.2.285 ✓
      Version 0.2.285 already installed.
      ? Do you plan on developing Titanium apps? Yes
       
      Checking your environment...
       
      A new version of the Titanium SDK is available, will download it...
      New version available! 4.0.0.RC4
       
      Downloading http://builds.appcelerator.com/mobile/4.0.0/mobilesdk-4.0.0.RC4-osx.zip
        100% [========================================] 0.1s
       
      Extracting SDK to /Users/fokkezb/Library/Application Support/Titanium
        100% [========================================] 0.0s
       
      Titanium SDK 4.0.0.RC4 successfully installed!
       
      Congrats! No issues detected for developing cross-platform mobile apps!
       
      appc setup complete!
       
      (~)
      ≫ appc ti sdk list
      Appcelerator Command-Line Interface, version 0.2.285
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      SDK Install Locations:
         /Library/Application Support/Titanium
         /Users/fokkezb/Library/Application Support/Titanium [default]
       
      Installed SDKs:
         4.0.0.RC4             /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.RC4
         4.0.0.RC3 [selected]  /Users/fokkezb/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.RC3
      

      Cause

      The bug is caused by a missing --default option in the installTi() util:

      https://github.com/appcelerator/appc-cli-titanium/blob/762955e1a07bdafd77d6c7794694b71efe73ec25/plugins/util.js#L127

        Attachments

          Activity

            People

            • Assignee:
              fokkezb Fokke Zandbergen
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Feon Sua Xin Miao
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code