{"action":"opened","issue":{"url":"https://api.github.com/repos/paulmillr/chokidar/issues/257","labels_url":"https://api.github.com/repos/paulmillr/chokidar/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/paulmillr/chokidar/issues/257/comments","events_url":"https://api.github.com/repos/paulmillr/chokidar/issues/257/events","html_url":"https://github.com/paulmillr/chokidar/issues/257","id":62163432,"number":257,"title":"Early emitting change event","user":{"login":"floatdrop","id":365089,"avatar_url":"https://avatars.githubusercontent.com/u/365089?v=3","gravatar_id":"","url":"https://api.github.com/users/floatdrop","html_url":"https://github.com/floatdrop","followers_url":"https://api.github.com/users/floatdrop/followers","following_url":"https://api.github.com/users/floatdrop/following{/other_user}","gists_url":"https://api.github.com/users/floatdrop/gists{/gist_id}","starred_url":"https://api.github.com/users/floatdrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floatdrop/subscriptions","organizations_url":"https://api.github.com/users/floatdrop/orgs","repos_url":"https://api.github.com/users/floatdrop/repos","events_url":"https://api.github.com/users/floatdrop/events{/privacy}","received_events_url":"https://api.github.com/users/floatdrop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T17:56:10Z","updated_at":"2015-03-16T17:56:10Z","closed_at":null,"body":"Some wierd stuff happens sometimes. `change` event is emitted, but file contents is empty:\r\n\r\n```\r\nchange\r\n<File \"mobile/app.js\" <Buffer 61 61 61 73 64 61 73 64 61 73 0a>>\r\n  watch 51012352 +128ms\r\nchange\r\n<File \"mobile/app.js\" <Buffer >>\r\n  watch 51012352 +122ms\r\nchange\r\n<File \"mobile/app.js\" <Buffer 61 61 61 73 64 61 73 64 61 73 0a>>\r\n  watch 51012352 +108ms\r\n```\r\n\r\nI'm getting this in Atom with `ctrl+s` pressed constantly (it happens pretty rare thou). We workaround it with some delay before reading, because it could be just how IDE's work.\r\n\r\nhttps://github.com/floatdrop/gulp-watch/issues/143"}}