[ALOY-1047] Compile error when there is no "assets" folder under widget and themed widget directory.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-09T19:20:44.000+0000 |
Affected Version/s | Alloy 1.5.0 |
Fix Version/s | Alloy 1.5.0 |
Components | Tooling |
Labels | qe-closed-3.3.0, qe-manualtest |
Reporter | Feon Sua Xin Miao |
Assignee | Feon Sua Xin Miao |
Created | 2014-06-09T02:55:52.000+0000 |
Updated | 2014-11-20T00:54:45.000+0000 |
Description
*Error*
[INFO] : ----- MVC GENERATION -----
[INFO] : [global style] loading from cache...
[INFO] : [star.xml] starrating view processing...
[INFO] : style: "star.tss"
[INFO] : theme: "PLUSMINUS/star.tss"
[INFO] : theme: "PLUSMINUS/ios/star.tss"
[INFO] : view: "star.xml"
[INFO] : controller: "star.js"
[DEBUG] : fs.js:654
[DEBUG] : return binding.readdir(pathModule._makeLong(path));
[DEBUG] : ^
[ERROR] : : ENOENT, no such file or directory '/Users/fmiao/Development/Titanium_Studio_Workspace/ThemeWidgetNoAssets/Resources/iphone/starrating'
[DEBUG] : at Object.fs.readdirSync (fs.js:654:18)
[DEBUG] : at readdirSyncRecursive (/usr/local/lib/node_modules/alloy/node_modules/wrench/lib/wrench.js:37:23)
[DEBUG] : at Object.exports.readdirSyncRecursive (/usr/local/lib/node_modules/alloy/node_modules/wrench/lib/wrench.js:51:20)
[DEBUG] : at Object.exports.copyWidgetResources (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:612:24)
[DEBUG] : at parseAlloyComponent (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:656:6)
[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:252:6
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:241:6
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:237:4)
[DEBUG] : at Object.<anonymous> (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:100:46)
[DEBUG] : at Module._compile (module.js:456:26)
[DEBUG] : at Object.Module._extensions..js (module.js:474:10)
[DEBUG] : at Module.load (module.js:356:32)
[DEBUG] : at Function.Module._load (module.js:312:12)
[DEBUG] : at Module.require (module.js:364:17)
[DEBUG] : at require (module.js:380:17)
[DEBUG] : at Object.<anonymous> (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)
[DEBUG] : at Module._compile (module.js:456:26)
[DEBUG] : at Object.Module._extensions..js (module.js:474:10)
[DEBUG] : at Module.load (module.js:356:32)
[DEBUG] : at Function.Module._load (module.js:312:12)
[DEBUG] : at Function.Module.runMain (module.js:497:10)
[DEBUG] : at startup (node.js:119:16)
[DEBUG] : at node.js:901:3
[ERROR] : Alloy compiler failed
Attachments
File | Date | Size |
---|---|---|
ThemeWidgetNoAssets.zip | 2014-06-09T03:01:07.000+0000 | 26281 |
PR: https://github.com/appcelerator/alloy/pull/438 Test apps: https://github.com/feons/alloy/tree/ALOY-1047/test/apps/testing/ALOY-1047 https://github.com/feons/alloy/tree/ALOY-1002/test/apps/testing/ALOY-1002 Functional Test: 1. Run the test app ALOY-1047 (there's no assets folder under both widget and themed widget) 2. App loads with no compilation error. 3. Run the test app ALOY-1002 (there's assets folder under both widget and themed widget) 4. App loads with no compilation error.
PR tested and merged
Verified the fix, there is no compile error when there is no "assets" folder under widget and themed widget directory Verified using the following environment: Device : Google Nexus 7, Android Version: 4.3 SDK: 3.3.0.v20140617161713 CLI version : 3.3.0-rc OS : MAC OSX 10.9.2 Alloy: 1.4.0-rc ACS: 1.0.14 npm:1.3.2 LiveView: 1.0.4 Appcelerator Studio, build: 3.3.0.201406171619 titanium-code-processor: 1.1.1 XCode : 5.1.1