Titanium JIRA Archive
Appcelerator Community (AC)

[AC-339] Alloy compiler not found on Windows

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-11-14T01:31:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI, Titanium SDK & CLI
Labelsalloy, alloy-cli, hook
ReporterBrenton House
AssigneeShak Hossain
Created2015-09-03T13:22:08.000+0000
Updated2015-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

Comments

  1. Brenton House 2015-09-03

    This is the commit that broke everything: https://github.com/appcelerator/alloy/commit/027de224b5a2fffa894661f6e74d35e79ce8bb6e
  2. Brenton House 2015-09-23

    This seems to be fixed in the current build now.

JSON Source