Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14056] Code Analyzer: Alloy: Model/Collection name is marked as 'not defined' in the Errors list in the report

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-05-31T02:28:06.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsCode Processor
Labelsqe-3.1.1
ReporterFederico Casali
AssigneeBryan Hughes
Created2013-05-30T21:30:58.000+0000
Updated2013-08-14T20:43:09.000+0000

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

FileDateSize
iphoneResults_Alloy.zip2013-05-30T21:30:58.000+0000761531
iphoneResults_journal.zip2013-05-30T21:30:58.000+00003459805

Comments

  1. Bryan Hughes 2013-05-31

    After some investigation and discussion with Tony, this is actually expected behavior in Alloy.

JSON Source