Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18046] CLI: Fix bug with the analytics process blocking the parent process from exiting

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-11-18T19:29:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsCLI
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2014-11-18T05:51:11.000+0000
Updated2015-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.

Comments

  1. Chris Barber 2014-11-18

    node-appc pull request: https://github.com/appcelerator/node-appc/pull/100 titanium cli pull request: https://github.com/appcelerator/titanium/pull/168
  2. Chris Barber 2014-11-18

    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.
  3. Tim Poulsen 2014-11-18

    Works as expected with: ti build -p ios --build-only
  4. Ewan Harris 2015-03-26

    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.

JSON Source