{ "id": "117968", "key": "ALOY-774", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15572", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-05T16:18:56.000+0000", "created": "2013-08-03T13:31:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" } ], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-06T00:30:46.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" }, { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "Using Alloy 1.2.0-Alpha5 and TiSDK 3.1.1GA\r\n\r\nTest app source: https://dl.dropboxusercontent.com/u/1849335/Titanium-Jira/WPATH-test.zip\r\n\r\nError message\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : backtrace = \"#0 () at file:///Users/timanrebel/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/7ABD14AC-FA2C-4D47-AE4D-561F698D3C12/WPATH-test.app/alloy/widgets/wpathWidget/styles/widget.js:9\";\r\n[ERROR] : line = 6;\r\n[ERROR] : message = \"Can't find variable: WPATH\";\r\n[ERROR] : name = ReferenceError;\r\n[ERROR] : sourceId = 296484448;\r\n[ERROR] : sourceURL = \"file:///Users/timanrebel/Library/Application%20Support/iPhone%20Simulator/7.0/Applications/7ABD14AC-FA2C-4D47-AE4D-561F698D3C12/WPATH-test.app/alloy/widgets/wpathWidget/styles/widget.js\";\r\n[ERROR] : }\r\n[ERROR] : Script Error Module \"alloy/widgets/wpathWidget/styles/widget\" failed to leave a valid exports object\r\n{code}\r\n\r\nwidget.tss\r\n{code}\r\n\".myImage\": {\r\n image: WPATH('testImage.jpg')\r\n}\r\n{code}\r\n\r\nwidget.js\r\n{code}\r\nvar myImage = $.UI.create('ImageView', {\r\n\tclasses: 'myImage'\r\n});\r\n{code}", "attachment": [], "flagged": false, "summary": "Alloy dynamic styling can't handle WPATH", "creator": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "264893", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you have to do anything to cause the error? ", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-03T14:13:28.000+0000", "updated": "2013-08-03T14:13:28.000+0000" }, { "id": "264894", "author": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "body": "Should've included that!\n\nJust execute $.UI.create, which happens directly in the test app on requiring the widget", "updateAuthor": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "created": "2013-08-03T14:28:29.000+0000", "updated": "2013-08-03T14:28:29.000+0000" }, { "id": "264936", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/212\r\ntest app: https://github.com/appcelerator/alloy/tree/master/test/apps/widgets/wpath\r\n\r\n*NOTE:* Make sure to use Alloy 1.2.0-alpha6 or higher to test.\r\n\r\nTo functionally test, add the following line of code to the end of the widget.js Javascript controller in the com.test.hellobutton widget in the given test:\r\n\r\n{code:javascript}require('alloy/widgets/com.test.hellobutton/styles/widget');{code}\r\n\r\nExecuting the app with this line of code would cause a runtime exception about WPATH missing before this issue was resolved. It should now run without error.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T16:18:56.000+0000", "updated": "2013-08-05T18:16:08.000+0000" }, { "id": "265036", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed on iOS, Android and MobileWeb\n\nTitanium SDK 3.1.2.v20130802180729\nAlloy 1.2.0-alpha6\nAppcelerator Studio 3.1.2.201308021524\nCLI 3.1.1\nNode 0.10.13\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-06T00:21:20.000+0000", "updated": "2013-08-06T00:21:20.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }