[AC-339] Alloy compiler not found on Windows
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-11-14T01:31:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Appcelerator CLI, Titanium SDK & CLI |
Labels | alloy, alloy-cli, hook |
Reporter | Brenton House |
Assignee | Shak Hossain |
Created | 2015-09-03T13:22:08.000+0000 |
Updated | 2015-11-14T01:31:36.000+0000 |
Description
the newer versions of the ALloy plugin hook now determine how to execute Alloy using this line:
if (process.platform === 'win32' && paths.alloy.indexOf('.bin') !== -1)
The problem with that is that paths.alloy === 'alloy.cmd' and thus paths.alloy.indexOf('.bin') === -1
You then get this error when trying to compile anything:
[INFO] Executing Alloy compile: C:\Program Files\nodejs\node.exe alloy.cmd compile C:\test\appc-bugs\appc-test-1\app --config platform=mobileweb,version=0,simtype=none,devicefamily=none,deploytype=development,target=web
[DEBUG] module.js:338
[DEBUG] throw err;
[DEBUG] ^
[ERROR] : Cannot find module 'C:\test\appc-bugs\appc-test-1\alloy.cmd'
[DEBUG] at Function.Module._resolveFilename (module.js:336:15)
[DEBUG] at Function.Module._load (module.js:278:25)
[DEBUG] at Function.Module.runMain (module.js:501:10)
[DEBUG] at startup (node.js:129:16)
[DEBUG] at node.js:814:3
[ERROR] Alloy compiler failed
This is the commit that broke everything: https://github.com/appcelerator/alloy/commit/027de224b5a2fffa894661f6e74d35e79ce8bb6e
This seems to be fixed in the current build now.