{ "id": "119378", "key": "ALOY-814", "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": "15670", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-09-03T21:25:04.000+0000", "created": "2013-09-03T09:20:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-09T20:28:25.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": "12333", "name": "Widgets" } ], "description": "Since version 1.2.1 Alloy is throwing errors like:\r\n{color:red} \r\nScript Error Couldn't find module: alloy/widgets/sc.Weather/controllers/widget\r\n{color}\r\n\r\nWhen I check the Resources directory, not all widgets have been compiled and copied to the Resources directory.\r\n\r\n!https://dl.dropboxusercontent.com/u/1849335/AppcJira/alloy-widgets-1.2.1.png!\r\n\r\nI created a test app, where I created 2 Widgets using the New -> Alloy Widget menu shortcut and added them to the index controller:\r\n\r\n{code}\r\nfunction doClick(e) {\r\n alert($.label.text);\r\n}\r\n\r\n$.index.open();\r\n\r\nAlloy.createWidget('wz.MenuBarButton');\r\nAlloy.createWidget('wz.StreamItem');\r\n{code}\r\n\r\nThe widgets are completely left untouched, so is all other code except for the index controller.\r\n\r\nDowngrading to Alloy 1.2.0 solves the issue.\r\n\r\nThe test app can be found here: https://dl.dropboxusercontent.com/u/1849335/AppcJira/tv.wappzapp.alloy121test.zip\r\n\r\n", "attachment": [], "flagged": false, "summary": "Not all widgets are compiled and added to Resources directory by Alloy since 1.2.1", "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": "269366", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~timanrebel] I can't reproduce the issue using Alloy 1.2.1 and TiSDK 3.1.2. I took the app that you attached and ran it via:\r\n\r\n{code}\r\nti build -p ios\r\n{code}\r\n\r\nCan you provide more exact details on your environment and _exactly_ how you created the test app and caused the problem? Please list:\r\n\r\n* Alloy version\r\n* TiSDK version\r\n* Studio version, if you're using it to create the issue\r\n* Your computer's operating system\r\n* The _exact_ steps you took to create this test case\r\n\r\nOnce I have these details I can re-open this ticket and try again.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T21:25:04.000+0000", "updated": "2013-09-03T21:25:04.000+0000" }, { "id": "270276", "author": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "body": "Hi Tony:\r\n\r\nAlloy version: 1.2.1 (Installed with sudo nom install -g alloy)\r\nTiSDK version: 3.1.2GA\r\nStudio version: 3.1.2.201308091617\r\nYour computer's operating system: OS X 10.9 Mavericks\r\nThe exact steps you took to create this test case:\r\n* In Titanium I chosse New -> Mobile Project -> Default Alloy Project. I than added 2 widgets via [Ricght Mouse click] New -> New Alloy Widget. After adding 2 widgets I compiled the app via Run -> iPhone Simulator in the App Explorer pane.\r\n\r\nI initially encountered this behaviour in both our Snowciety project as WappZapp's project. I cleared both build and Resources directory.\r\n\r\nRunning `ti build -p iOS` from the CLI also does not help. Check the output and can't find any errors", "updateAuthor": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-09T08:28:01.000+0000", "updated": "2013-09-09T08:28:01.000+0000" }, { "id": "270299", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm still not able to reproduce. Hate to do this to you, but the only variable I see here is OSX 10.9. Any chance you can run this on a supported OS.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-09T14:15:17.000+0000", "updated": "2013-09-09T14:15:17.000+0000" }, { "id": "270400", "author": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "body": "Really weird and in case it is Mavericks my apologies. I'll try and run the test case on one of the other computers at the office", "updateAuthor": { "name": "timanrebel", "key": "timanrebel", "displayName": "Timan Rebel", "active": true, "timeZone": "Europe/London" }, "created": "2013-09-09T20:28:25.000+0000", "updated": "2013-09-09T20:28:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }