{"action":"created","issue":{"url":"https://api.github.com/repos/yeoman/generator/issues/778","labels_url":"https://api.github.com/repos/yeoman/generator/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/yeoman/generator/issues/778/comments","events_url":"https://api.github.com/repos/yeoman/generator/issues/778/events","html_url":"https://github.com/yeoman/generator/issues/778","id":64361659,"number":778,"title":"composeWith local sub generator causes EventEmitter leak","user":{"login":"Freyert","id":449155,"avatar_url":"https://avatars.githubusercontent.com/u/449155?v=3","gravatar_id":"","url":"https://api.github.com/users/Freyert","html_url":"https://github.com/Freyert","followers_url":"https://api.github.com/users/Freyert/followers","following_url":"https://api.github.com/users/Freyert/following{/other_user}","gists_url":"https://api.github.com/users/Freyert/gists{/gist_id}","starred_url":"https://api.github.com/users/Freyert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Freyert/subscriptions","organizations_url":"https://api.github.com/users/Freyert/orgs","repos_url":"https://api.github.com/users/Freyert/repos","events_url":"https://api.github.com/users/Freyert/events{/privacy}","received_events_url":"https://api.github.com/users/Freyert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yeoman/generator/labels/actionnable","name":"actionnable","color":"009800"},{"url":"https://api.github.com/repos/yeoman/generator/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/yeoman/generator/labels/medium","name":"medium","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-25T20:06:10Z","updated_at":"2015-03-27T07:13:21Z","closed_at":null,"body":"I'm using `generator-generator` and you can reproduce this easily with the instructions below.\r\n\r\nScaffold out an application using `yo generator`.\r\nAdd a sub-generator using `yo generator:subgenerator x`\r\n\r\nIn `app/index.js` add ...\r\n```javascript\r\nwriting: {\r\n  sub: function () {\r\n    this.composeWith('gen:x', {});\r\n  }\r\n}\r\n```\r\n\r\nNow, after reading the docs more closely I understand I needed to add `settings.local` to the composition in order for it to work. Previously this threw a warning about the EventEmitter and just timed out no matter what version of Node I was using.\r\n\r\n```\r\n(node) warning: possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit.\r\nTrace\r\n    at Queue.addListener (events.js:179:15)\r\n    at Queue.once (events.js:204:8)\r\n    at run (/Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:381:20)\r\n    at composeWith (/Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:590:15)\r\n    at module.exports.yeoman.generators.Base.extend.writing.models (/Users/f/Desktop/generator/app/index.js:39:12)\r\n    at /Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:409:16\r\n    at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n(node) warning: possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit.\r\nTrace\r\n    at addListener (events.js:179:15)\r\n    at run (/Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:445:21)\r\n    at composeWith (/Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:590:15)\r\n    at module.exports.yeoman.generators.Base.extend.writing.models (/Users/f/Desktop/generator/app/index.js:39:12)\r\n    at /Users/f/Desktop/generator/node_modules/yeoman-generator/lib/base.js:409:16\r\n    at processImmediate [as _immediateCallback] (timers.js:358:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/yeoman/generator/issues/comments/86851393","html_url":"https://github.com/yeoman/generator/issues/778#issuecomment-86851393","issue_url":"https://api.github.com/repos/yeoman/generator/issues/778","id":86851393,"user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T07:13:21Z","updated_at":"2015-03-27T07:13:21Z","body":"I get a feeling this might be related to node 0.12\r\n\r\nI'm running 0.10 locally and the generator throw an error about not finding the composed generator."}}