[ALOY-1066] Windows, Android: Alloy build to device fails when spawning Alloy compile command
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-11-26T22:40:34.000+0000 |
Affected Version/s | Alloy 1.4.0 |
Fix Version/s | Alloy 1.5.0, Alloy 1.4.0 |
Components | Tooling |
Labels | qe-3.3.0, qe-noTestNeeded |
Reporter | Samuel Dowse |
Assignee | Tim Poulsen |
Created | 2014-07-01T18:11:21.000+0000 |
Updated | 2014-11-26T22:40:34.000+0000 |
Description
Description
Android device builds will fail with Android SDK-Tools 23.0.1 installed. Attached the log file of the error from the CLI.Steps To Reproduce
1. Install the Android SDK-Tools 23.0.1 and all the necessary components 2. Create an Alloy project 3. Build to deviceExpected Result
App should install on deviceActual Result
Build throws and errors and fails to install on device
[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
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.
Solution
I 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.Attachments
File | Date | Size |
---|---|---|
Android2301Alloy.txt | 2014-07-01T18:11:21.000+0000 | 6603 |