{"action":"created","issue":{"url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/101","labels_url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/101/comments","events_url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/101/events","html_url":"https://github.com/yaniswang/HTMLHint/pull/101","id":120267214,"number":101,"title":"wait for node to finish writing to stdout before exiting","user":{"login":"admosity","id":4655972,"avatar_url":"https://avatars.githubusercontent.com/u/4655972?v=3","gravatar_id":"","url":"https://api.github.com/users/admosity","html_url":"https://github.com/admosity","followers_url":"https://api.github.com/users/admosity/followers","following_url":"https://api.github.com/users/admosity/following{/other_user}","gists_url":"https://api.github.com/users/admosity/gists{/gist_id}","starred_url":"https://api.github.com/users/admosity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admosity/subscriptions","organizations_url":"https://api.github.com/users/admosity/orgs","repos_url":"https://api.github.com/users/admosity/repos","events_url":"https://api.github.com/users/admosity/events{/privacy}","received_events_url":"https://api.github.com/users/admosity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-03T20:50:56Z","updated_at":"2015-12-04T02:31:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yaniswang/HTMLHint/pulls/101","html_url":"https://github.com/yaniswang/HTMLHint/pull/101","diff_url":"https://github.com/yaniswang/HTMLHint/pull/101.diff","patch_url":"https://github.com/yaniswang/HTMLHint/pull/101.patch"},"body":"It appears that the exit signal is fired before the entire stdout stream is flushed. This causes issues for editors/IDEs that listen for the process exit event (atom in my case):\r\n\r\nUsing this atom package: https://github.com/AtomLinter/linter-htmlhint\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4655972/11573598/2c4affd8-99d5-11e5-9b4e-8083061abf50.png)\r\n\r\nEarly end of input:\r\n![image](https://cloud.githubusercontent.com/assets/4655972/11573611/35992308-99d5-11e5-9cb1-a785138297f6.png)\r\n\r\nSlapped on a quick fix to listen for the drain event for json (as that's what is used in the linter I am using).\r\n"},"comment":{"url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/comments/161853645","html_url":"https://github.com/yaniswang/HTMLHint/pull/101#issuecomment-161853645","issue_url":"https://api.github.com/repos/yaniswang/HTMLHint/issues/101","id":161853645,"user":{"login":"yaniswang","id":970390,"avatar_url":"https://avatars.githubusercontent.com/u/970390?v=3","gravatar_id":"","url":"https://api.github.com/users/yaniswang","html_url":"https://github.com/yaniswang","followers_url":"https://api.github.com/users/yaniswang/followers","following_url":"https://api.github.com/users/yaniswang/following{/other_user}","gists_url":"https://api.github.com/users/yaniswang/gists{/gist_id}","starred_url":"https://api.github.com/users/yaniswang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaniswang/subscriptions","organizations_url":"https://api.github.com/users/yaniswang/orgs","repos_url":"https://api.github.com/users/yaniswang/repos","events_url":"https://api.github.com/users/yaniswang/events{/privacy}","received_events_url":"https://api.github.com/users/yaniswang/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T02:31:37Z","updated_at":"2015-12-04T02:31:37Z","body":"What's your node version?"}}