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

If you do "appc ti sdk select <SDK_VERSION>", a "Failed to run command sdk" error message will appear

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.1
    • Fix Version/s: Release 5.0.0
    • Component/s: Titanium
    • Labels:
    • Environment:

      Appc CLI NPM: 4.1.0
      Appc CLI Core: 4.2.0-1
      Arrow: 1.2.2
      SDK: 4.2.0.v20150803102022
      Node: v0.10.38
      OS: Yosemite (10.10.4)

    • Severity:
      Major

      Description

      Details: If you do appc ti sdk select <SDK_VERSION>, a Failed to run command "sdk" error message will appear.

      This is already fixed in Titanium CLI 4.1.3. Currently, Appc CLI 4.2.0-1 has appc-cli-titanium node module pointing Titanium to 4.1.2.

      Note:

      • This is a regression from Appc CLI 4.1.2.
      • This is not a blocker since you are still able to select SDK via prompting; just do appc ti sdk select.

      Steps to reproduce:

      1. Run appc ti sdk select <SDK_VERSION>; <SDK_VERSION> being a valid SDK on your machine

      Actual: A Failed to run command "sdk" error message is returned:

      WilsonComputer:~ wluu$ appc ti sdk select 4.1.0.GA
      Appcelerator Command-Line Interface, version 4.2.0-1
      Copyright (c) 2014-2015, Appcelerator, Inc.  All Rights Reserved.
       
      Preproduction Environment Active
       
      [ERROR] Failed to run command "sdk"
      [ERROR] ReferenceError: value is not defined
          at select (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/commands/sdk.js:399:25)
          at exports.run (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/commands/sdk.js:83:29)
          at CLI.<anonymous> (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/cli.js:789:5)
          at /Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:119:25
          at Object.<anonymous> (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:24:16)
          at CLI._fireHookCallback (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:269:12)
          at /Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/lib/hook.js:248:10
          at /Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:232:13
          at async.eachSeries (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:130:20)
          at _asyncMap (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/async/lib/async.js:226:9)
      ---------------------------------------------
          at Object.run (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:59:8)
          at find (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/lib/subprocess.js:96:14)
          at q.process (/Users/wluu/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/node_modules/titanium/node_modules/node-appc/node_modules/async/lib/async.js:806:21)
          at processImmediate (timers.js:354:15)
      

      Expected: No error message should appear.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                wluu Wilson Luu (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code