[ALOY-814] Not all widgets are compiled and added to Resources directory by Alloy since 1.2.1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-09-03T21:25:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18 |
Components | Widgets |
Labels | n/a |
Reporter | Timan Rebel |
Assignee | Tony Lukasavage |
Created | 2013-09-03T09:20:46.000+0000 |
Updated | 2013-09-09T20:28:25.000+0000 |
Description
Since version 1.2.1 Alloy is throwing errors like:
{color:red}
Script Error Couldn't find module: alloy/widgets/sc.Weather/controllers/widget
{color}
When I check the Resources directory, not all widgets have been compiled and copied to the Resources directory.
!https://dl.dropboxusercontent.com/u/1849335/AppcJira/alloy-widgets-1.2.1.png!
I created a test app, where I created 2 Widgets using the New -> Alloy Widget menu shortcut and added them to the index controller:
function doClick(e) {
alert($.label.text);
}
$.index.open();
Alloy.createWidget('wz.MenuBarButton');
Alloy.createWidget('wz.StreamItem');
The widgets are completely left untouched, so is all other code except for the index controller.
Downgrading to Alloy 1.2.0 solves the issue.
The test app can be found here: https://dl.dropboxusercontent.com/u/1849335/AppcJira/tv.wappzapp.alloy121test.zip
[~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:
Can you provide more exact details on your environment and _exactly_ how you created the test app and caused the problem? Please list: * Alloy version * TiSDK version * Studio version, if you're using it to create the issue * Your computer's operating system * The _exact_ steps you took to create this test case Once I have these details I can re-open this ticket and try again.
Hi Tony: Alloy version: 1.2.1 (Installed with sudo nom install -g alloy) TiSDK version: 3.1.2GA Studio version: 3.1.2.201308091617 Your computer's operating system: OS X 10.9 Mavericks The exact steps you took to create this test case: * 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. I initially encountered this behaviour in both our Snowciety project as WappZapp's project. I cleared both build and Resources directory. Running
ti build -p iOS
from the CLI also does not help. Check the output and can't find any errorsI'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.
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