[ALOY-1066] Windows, Android: Alloy build to device fails when spawning Alloy compile command
|Affected Version/s||Alloy 1.4.0|
|Fix Version/s||Alloy 1.5.0, Alloy 1.4.0|
DescriptionAndroid device builds will fail with Android SDK-Tools 23.0.1 installed. Attached the log file of the error from the CLI.
Steps To Reproduce1. Install the Android SDK-Tools 23.0.1 and all the necessary components 2. Create an Alloy project 3. Build to device
Expected ResultApp should install on device
Actual ResultBuild throws and errors and fails to install on device
This error is happening because the stdio is not inheriting properly from the parent Titanium CLI process. This could be a Node.js issue, but I doubt it.[ERROR] Failed to run command "build" [ERROR] TypeError: Cannot call method 'on' of null at C:\Users\Tester\Documents\Appcelerator_Studio_Workspace\alloyAndroidProject\plugins\ti.alloy\hooks\alloy.js:132:18
SolutionI think we need to explicitly specify the stdio streams for the spawned process. Inheriting stdio does not appear to be working. In the long term, the Alloy compile command needs to be a first-class CLI hook that does not spawn the Alloy compile command. That will fix this permanently. +Extra Information+ This only occurs on Windows.