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

Running 'titanium analyze' without the titanium-code-processor installed or target information generates an error (3.2.x nightly)

    Details

    • Type: Story
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI, Code Processor
    • Labels:
      None
    • Environment:

      Description

      Unexpected Behavior

      Run ti analyze in a project directory without having installed the titanium-code-processor yields the following error.

      Without Inspector installed

      Stephens-iMac:NeoLife stephenfeather$ ti analyze
      Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.v20131118142443
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      [ERROR] "analyze" is an unrecognized command.
       
      Run 'titanium help' for available commands.
      

      With Inspector installed:

      Stephens-iMac:NeoLife stephenfeather$ ti analyze
      Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.v20131118142443
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
      Titanium Command-Line Interface, CLI version 3.2.0, Titanium SDK version 3.2.0.v20131118142443
      Copyright (c) 2012-2013, Appcelerator, Inc.  All Rights Reserved.
       
      Please report bugs to http://jira.appcelerator.org/
       
       
      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
              throw e;
                    ^
      TypeError: Cannot read property 'validate' of undefined
          at processConf (/usr/local/lib/node_modules/titanium/lib/context.js:439:42)
          at Context.load (/usr/local/lib/node_modules/titanium/lib/context.js:538:4)
          at CLI.loadCommand (/usr/local/lib/node_modules/titanium/lib/cli.js:345:10)
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21
          at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:224:13
          at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:131:13)
          at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:147:9)
          at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:223:9)
          at Object.mapSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:213:23)
          at async.series (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:546:19)
      ---------------------------------------------
          at exports.execFile (child_process.js:691:9)
          at exports.exec (child_process.js:578:18)
          at detectLocale (/usr/local/lib/node_modules/titanium/lib/titanium.js:64:4)
          at /usr/local/lib/node_modules/titanium/lib/titanium.js:79:2
          at Object.<anonymous> (/usr/local/lib/node_modules/titanium/lib/titanium.js:80:2)
          at Module._compile (module.js:456:26)
          at Module._extensions..js (module.js:474:10)
          at Module.load (module.js:356:32)
      
      

      Expected Behavior

      user should be prompted to install the titanium-code-processor from npm or display additional help

      Notes:

      Should be noted that I do NOT have the latest Appcelerator Studio installed, and will be more than happy to raise an additional ticket inquiring why the weight of appc studio is required to run command line tooling. (passing target params to ti analyze fail because of that update)

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              sfeather Stephen Feather
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration