{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2291","labels_url":"https://api.github.com/repos/nodejs/node/issues/2291/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2291/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2291/events","html_url":"https://github.com/nodejs/node/issues/2291","id":98718925,"number":2291,"title":"Detect circular dependencies","user":{"login":"Gemtastic","id":9497774,"avatar_url":"https://avatars.githubusercontent.com/u/9497774?v=3","gravatar_id":"","url":"https://api.github.com/users/Gemtastic","html_url":"https://github.com/Gemtastic","followers_url":"https://api.github.com/users/Gemtastic/followers","following_url":"https://api.github.com/users/Gemtastic/following{/other_user}","gists_url":"https://api.github.com/users/Gemtastic/gists{/gist_id}","starred_url":"https://api.github.com/users/Gemtastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gemtastic/subscriptions","organizations_url":"https://api.github.com/users/Gemtastic/orgs","repos_url":"https://api.github.com/users/Gemtastic/repos","events_url":"https://api.github.com/users/Gemtastic/events{/privacy}","received_events_url":"https://api.github.com/users/Gemtastic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/feature%20request","name":"feature request","color":"0D7BDE"},{"url":"https://api.github.com/repos/nodejs/node/labels/module","name":"module","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-03T10:58:36Z","updated_at":"2015-10-10T21:14:59Z","closed_at":null,"body":"As you can see in my SO question here: http://stackoverflow.com/q/31783473/3763850\r\nThis kind of circular pattern cause a TypeError since the 2nd module has yet to load (or I'm assuming that's the reason for this error), something that makes it hard to write a fluent application with a lot of separations of concerns, or other cases where the circular pattern may be desirable.\r\n\r\nIt would be nice if we could raise a flag about it somehow when debugging or in the IDE.\r\n(I'm developing using IntelliJ IDEA)"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/147126568","html_url":"https://github.com/nodejs/node/issues/2291#issuecomment-147126568","issue_url":"https://api.github.com/repos/nodejs/node/issues/2291","id":147126568,"user":{"login":"MadaraUchiha","id":1188951,"avatar_url":"https://avatars.githubusercontent.com/u/1188951?v=3","gravatar_id":"","url":"https://api.github.com/users/MadaraUchiha","html_url":"https://github.com/MadaraUchiha","followers_url":"https://api.github.com/users/MadaraUchiha/followers","following_url":"https://api.github.com/users/MadaraUchiha/following{/other_user}","gists_url":"https://api.github.com/users/MadaraUchiha/gists{/gist_id}","starred_url":"https://api.github.com/users/MadaraUchiha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadaraUchiha/subscriptions","organizations_url":"https://api.github.com/users/MadaraUchiha/orgs","repos_url":"https://api.github.com/users/MadaraUchiha/repos","events_url":"https://api.github.com/users/MadaraUchiha/events{/privacy}","received_events_url":"https://api.github.com/users/MadaraUchiha/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T21:14:59Z","updated_at":"2015-10-10T21:14:59Z","body":"@ChALkeR I don't know, we have a flag for checking against synchronous I/O after the first tick, why not circular dependencies?"}}