Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15899

CLI: Help message when attempting to build with missing SDK is inaccurate

    Details

      Description

      problem

      When attempting to run ti build against a project for which the sdk-version in the tiapp.xml is not installed, you get this helpful message to guide you to building properly:

      [ERROR] Unable to compile project because the 'sdk-version' in the tiapp.xml is not installed
       
      The project's sdk-version is currently set to 3.2.0.v20130624174155, which is not installed.
       
      Update the sdk-version in the tiapp.xml to one of the installed Titaniums SDKs:
          2.1.0
          2.1.0.GA
          3.0.2.GA
          3.1.0.GA
          3.1.1.GA
          3.1.2.GA
          3.1.3.GA
          3.2.0
          3.2.0-old
          3.3.0
      or run 'titanium sdk install 3.2.0.v20130624174155' to download and install Titanium SDK 3.2.0.v20130624174155
      

      However, when targeting a CI build for installation, it will indicate that the version does not exist. So when I run titanium sdk install 3.2.0.v20130624174155, I get this output:

      [ERROR] Release "3.2.0.v20130624174155" does not exist
       
      Did you forget to specify the branch?
       
      Available Releases:
          3.1.3.GA      2.1.2.GA      1.8.0.1       1.6.0         1.2.0         0.6.0
          3.1.2.GA      2.1.1.GA      1.7.5         1.5.1         1.1.2         0.5.0
          3.1.1.GA      2.1.0.GA      1.7.3         1.5.0         1.1.1         0.4.2
          3.1.0.GA      2.0.2.GA      1.7.2         1.4.2         1.0.0         0.4.1
          3.0.2.GA      2.0.1.GA2     1.7.1         1.4.1.1       0.9.3
          3.0.0.GA      2.0.1.GA      1.7.0         1.4.1         0.7.1
          2.1.4.GA      1.8.2         1.6.2         1.4.0         0.6.2
          2.1.3.GA      1.8.1         1.6.1         1.3.0         0.6.1
      

      If you attempt to specify the install with --branch it will fail with this error, expecting an actual branch name (duh):

      [ERROR] Branch "3.2.0.v20130624174155" does not exist
       
      Available Branches:
          master     3_1_X      2_1_X      1_8_X      1_6_X      1_4_X
          3_2_X      3_0_X      2_0_X      1_7_X      1_5_X
      

      expected

      The CLI installs the CI version of the SDK that is specified, which it should be able to determine simply by parsing the version of the SDK given. If the CLI can not download and install this directly, instructions for downloading and installing CI builds should be given, rather than the inaccurate output that is given now.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              tlukasavage Tony Lukasavage
              Reviewer:
              Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17979
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration