{ "id": "115810", "key": "TIMOB-14185", "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-06-12T00:29:04.000+0000", "created": "2013-06-11T22:32:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "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": [ { "id": "29507", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "115795", "key": "TISTUD-4917", "fields": { "summary": "Code Analyzer: Alloy: When a Warning or Error is found for an Alloy project, code gutter icons are added to the Resources project files, not to App folder", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-03T20:21:40.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\nWhen a Warning or Error is found by the Code Analyzer for an Alloy project, Warning or Error icons are placed in the code gutter in the Resources file projects instead than in the App file projects. The result is that the Project is now marked with the red/white error icon and the 'Errors in Workspace' alert is displayed every time the project is being build. \r\n\r\n'Resources' folder is by default not visible for Alloy projects on Studio, so the default result is also that the project is marked with an error icon, but the user can't see any other red error icon next to any visible Project file.\r\n\r\nAlso, having an error or a warning reported for the Alloy compiled code in the Resources folder does not add value for the user as the intended behavior is not to manually modify the compiled code files in the Resources (user should only handle Alloy files, all included into the App folder).\r\n\r\nh5. Steps to reproduce\r\n\r\nPaste the sample code. Note the code error in the controller.js , where foobar is actually not a function.\r\nThe error is correctly reported by the Code Analyzer (see the screenshot), also getting the correct position in the Alloy project.\r\nHowever, in Studio the Error icon is placed in 'Resources/alloy/controllers/index.js' , which is hidden by default and should in any case manually modified by the user.\r\n\r\nh6. controller.js\r\n{code}\r\n$.mainwin.foobar({\r\n\tbackgroundColor : 'blue'\r\n});\r\n\r\n\r\n$.index.open();\r\n{code}\r\n\r\nh6. index.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n\r\nh5. Expected\r\nSince code processor have knowledge about the original source code and the generated source code, it is more viable for the code processor to covert the filename/filepath referenced in errors or warnings to the original code instead of referencing to generated source code.\r\n\r\nh5. Note\r\nAlloy projects could also be displaying errors or warning relative to compiled code, generated by Alloy, not necessarily linked to \"App\" alloy files created by the user but only present in \"Resources\" folder.\r\n", "attachment": [], "flagged": false, "summary": "Code Analyzer: Alloy: Warning or Error found for an Alloy project refer to the Resources project files, instead of App folder", "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": "TiSDK 3.1.1.v20130611104924\r\nAppcelerator Studio 3.1.1.201306101955\r\nTitanium Code Processor 1.0.1-cr4\r\nAlloy 1.1.3-cr", "comment": { "comments": [ { "id": "257273", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bhughes] From chatting with [~mxia] it sounds as if the analyzer is already doing the mapping for the summary page, so it should be straightforward to do it here as well, but please let me know ASAP your thoughts.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T22:43:46.000+0000", "updated": "2013-06-11T22:43:46.000+0000" }, { "id": "257325", "author": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Decided after discussion that Studio will do the mapping back to the original files after reading the raw data from the console.\r\n", "updateAuthor": { "name": "mxia", "key": "mxia", "displayName": "Michael Xia", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-12T00:29:04.000+0000", "updated": "2013-06-12T00:29:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }