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

Code Analyzer: Process Unvisited Code throws error: Object.run undefined is not a function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Won't Fix
    • Affects Version/s: Release 3.4.2
    • Fix Version/s: None
    • Component/s: Code Processor
    • Labels:
    • Environment:

      Titanium SDK 3.5.1.v20150219113028 & 3.5.0.GA
      Studio 3.4.2.201502181619
      CLI 3.4.2-alpha
      Xcode 6.2b5

      Description

      When attempting to analyze project with 'Process Unvisited Code' checked, in preferences. The analysis fails with the below error:

      Internal error undefined is not a function. Please file a bug report at http://jira.appcelerator.org/
      /usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185
              throw e;
                    ^
      Object.run (/usr/local/lib/node_modules/titanium-code-processor/lib/CodeProcessor.js:404:9),null.<anonymous> (/usr/local/lib/node_modules/titanium-code-processor/commands/analyze.js:245:18),Timer.listOnTimeout (timers.js:110:15)
      

      Steps to reproduce issue:
      1. Create Alloy Project with all common deployment targets. 

      2. Project Context Menu > Code Analysis > Preferences > Code Analyzer settings.
      3. Under the Settings select the check box for all three available option for analyzing :

      • Invoke Methods
      • Evaluate Loops
      • Process Unvisited Code
        4. Choose Platform: iPhone from Project Context Menu > Code Analysis > Run Selected Platforms.

      Expected Results:
      Code processor should run normally and the analyzed result should be generated.

      Notes:
      This is not a regression as it also occurs with 3.5.0.GA

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                ewieber Eric Wieber (Inactive)
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration