{ "id": "115247", "key": "TIMOB-14056", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-05-31T02:28:06.000+0000", "created": "2013-05-30T21:30:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.1" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-14T20:43:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13102", "name": "Code Processor", "description": "Analyzes JavaScript source" } ], "description": "h5. Problem description\r\nAnalyzing 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.\r\n\r\nh5. Steps to reproduce\r\n1. Use Alloy sample app: https://github.com/appcelerator/alloy/tree/1_1_X/test/apps/models/journal (also attached here in the Jira)\r\n2. Run the Code Analyzer\r\n\r\nResult: \r\nError [\"journal' is not defined] is reported.\r\n\r\nDescription: \"journal\" is not defined\r\nFile: Alloy.Collections.instance(\"journal\");\r\nLine: 37\r\n\r\n'journal' is the value of the 'collection_name'.\r\n\r\nIt seems the line number is also not correct.\r\n{code}Alloy.Collections.instance(\"journal\");{code}\r\nline is present in Resources/alloy/controllers/index.js but at line 44 (Resources files are included in the Project attached too).\r\n\r\n", "attachment": [ { "id": "39272", "filename": "iphoneResults_Alloy.zip", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T21:30:58.000+0000", "size": 761531, "mimeType": "application/zip" }, { "id": "39273", "filename": "iphoneResults_journal.zip", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T21:30:58.000+0000", "size": 3459805, "mimeType": "application/zip" } ], "flagged": false, "summary": "Code Analyzer: Alloy: Model/Collection name is marked as 'not defined' in the Errors list in the report", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 3.1.1.201305292130\r\nTitanium SDK 3.1.1.v20130529114554\r\nAlloy 1.1.3-alpha\r\nTitanium-Code-Processor 1.1.3-alpha3", "comment": { "comments": [ { "id": "255096", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After some investigation and discussion with Tony, this is actually expected behavior in Alloy.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-31T02:28:06.000+0000", "updated": "2013-05-31T02:28:06.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }