[TIMOB-18046] CLI: Fix bug with the analytics process blocking the parent process from exiting
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-11-18T19:29:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0 |
Components | CLI |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2014-11-18T05:51:11.000+0000 |
Updated | 2015-03-26T01:41:14.000+0000 |
Description
When a CLI command finishes such as 'create' or 'build', then it processes analytics events and tries to send them to the server. Despite the analytics child process disconnecting from the parent, the parent will stick around and wait for the child to finish.
This issue needs to be fixed in node-appc, then the dependency version updated in Titanium.
node-appc pull request: https://github.com/appcelerator/node-appc/pull/100 titanium cli pull request: https://github.com/appcelerator/titanium/pull/168
To test, perform a build and notice the time the command waits even after it says it completed. After this fix, the command should immediately return.
Works as expected with:
ti build -p ios --build-only
Verified fix using: Mac OSX 10.10.2 Titanium SDK build: 4.0.0.v20150323131014 Titanium CLI, build: 4.0.0-alpha Alloy: 1.6.0-alpha Build a project using ti build -p ios --build-only. The command returns immediately. Closing ticket.