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

Error 'Cannot read property 'replace' of undefined' when creating an app without Test in an enterprise org

    Details

    • Severity:
      Blocker
    • Sprint:
      2016 Sprint 18 Tooling

      Description

      Description

      This is a regression from 5.4.0 and 5.5.0

      When creating an app in an enterprise org without test services enabled the below error is thrown

      2016-09-02T14:19:31.492Z | ERROR  | An uncaught exception was thrown!
      Cannot read property 'replace' of undefined
      2016-09-02T14:19:31.492Z | ERROR  | Cannot read property 'replace' of undefined
      2016-09-02T14:19:31.494Z | TRACE  | TypeError: Cannot read property 'replace' of undefined
          at Object.shellEscape (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/appc-cli-titanium/plugins/util.js:930:18)
          at doEnableTestService (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/appc-cli-titanium/plugins/new.js:491:13)
          at /Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/appc-cli-titanium/plugins/new.js:556:15
          at PromptUI.completed (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/appc-cli-titanium/node_modules/appc-inquirer/appc-inquirer.js:21:11)
          at PromptUI.onCompletion (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/appc-cli-titanium/node_modules/inquirer/lib/ui/prompt.js:69:10)
          at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:1793:12)
          at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:1730:14)
          at AnonymousObserver.tryCatcher (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:567:29)
          at AutoDetachObserverPrototype.completed (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:5288:56)
          at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:1730:14)
          at InnerObserver.onCompleted (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:3425:65)
          at InnerObserver.tryCatcher (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:567:29)
          at AutoDetachObserverPrototype.completed (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:5288:56)
          at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:1730:14)
          at AutoDetachObserver.tryCatcher (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:567:29)
          at AutoDetachObserverPrototype.completed (/Users/eharris/.appcelerator/install/6.0.0-37/package/node_modules/rx/dist/rx.js:5288:56)
      2016-09-02T14:19:31.495Z | TRACE  | Sending exit signal to titanium process:  10291
      

      Steps to reproduce
      1. Log in to an enterprise org
      2. Run appc new -t titanium -n testApp --id com.appc.test -l trace
      3. When prompted to enabled services enter n
      Actual result

      Above error is thrown

      Expected result

      No errors should be thrown, app should be created

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Jared De La Cruz
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code