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

Code Analyzer: Alloy: Model/Collection name is marked as 'not defined' in the Errors list in the report

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.1.1
    • Fix Version/s: None
    • Component/s: Code Processor
    • Labels:
    • Environment:

      Appcelerator Studio 3.1.1.201305292130
      Titanium SDK 3.1.1.v20130529114554
      Alloy 1.1.3-alpha
      Titanium-Code-Processor 1.1.3-alpha3

      Description

      Problem description

      Analyzing an Alloy project using Model/Collections, there is an unexpected error in the Code Analyzer report regarding the Collection name, which is reported as not defined.

      Steps to reproduce

      1. Use Alloy sample app: https://github.com/appcelerator/alloy/tree/1_1_X/test/apps/models/journal (also attached here in the Jira)
      2. Run the Code Analyzer

      Result:
      Error ["journal' is not defined] is reported.

      Description: "journal" is not defined
      File: Alloy.Collections.instance("journal");
      Line: 37

      'journal' is the value of the 'collection_name'.

      It seems the line number is also not correct.

      Alloy.Collections.instance("journal");

      line is present in Resources/alloy/controllers/index.js but at line 44 (Resources files are included in the Project attached too).

        Attachments

          Activity

            People

            • Assignee:
              bhughes Bryan Hughes
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration