{"action":"created","issue":{"url":"https://api.github.com/repos/Aaronepower/tokei/issues/68","repository_url":"https://api.github.com/repos/Aaronepower/tokei","labels_url":"https://api.github.com/repos/Aaronepower/tokei/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/Aaronepower/tokei/issues/68/comments","events_url":"https://api.github.com/repos/Aaronepower/tokei/issues/68/events","html_url":"https://github.com/Aaronepower/tokei/issues/68","id":178353510,"number":68,"title":"Panic when piping output to less and quitting before all output displayed on Windows","user":{"login":"iliekturtles","id":5081378,"avatar_url":"https://avatars.githubusercontent.com/u/5081378?v=3","gravatar_id":"","url":"https://api.github.com/users/iliekturtles","html_url":"https://github.com/iliekturtles","followers_url":"https://api.github.com/users/iliekturtles/followers","following_url":"https://api.github.com/users/iliekturtles/following{/other_user}","gists_url":"https://api.github.com/users/iliekturtles/gists{/gist_id}","starred_url":"https://api.github.com/users/iliekturtles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliekturtles/subscriptions","organizations_url":"https://api.github.com/users/iliekturtles/orgs","repos_url":"https://api.github.com/users/iliekturtles/repos","events_url":"https://api.github.com/users/iliekturtles/events{/privacy}","received_events_url":"https://api.github.com/users/iliekturtles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T13:53:10Z","updated_at":"2016-09-21T17:56:54Z","closed_at":null,"body":"See below for reproduction steps. Once the \"Counting files...\" portion finishes if you scroll down to view the first couple files and then quit the panic will be shown. I haven't been able to see if the same issue occurs on Linux yet.\r\n\r\nLikely any `print!` and `println!` invocations should be changed to `write!` or `writeln!` so that the `Result` can be handled.\r\n\r\n```\r\n$ cargo install tokei\r\n$ RUST_BACKTRACE=1 tokei . --files | less\r\nthread 'main' panicked at 'failed printing to stdout: The pipe is being closed. (os error 232)', ../src/libstd\\io\\stdio.rs:617\r\nthread '<unnamed>' panicked at 'failed printing to stdout: The pipe is being closed. (os error 232)', ../src/libstd\\io\\stdio.rs:617\r\nstack backtrace:\r\n   0:        0x13f4e00ec - <unknown>\r\n   1:        0x13f4df6f9 - <unknown>\r\n   2:        0x13f4cd05d - <unknown>\r\n   3:        0x13f4e272b - <unknown>\r\n   4:        0x13f4cdf5f - <unknown>\r\n   5:        0x13f4d62e3 - <unknown>\r\n   6:        0x13f2a22ad - <unknown>\r\n   7:        0x13f4df0cc - <unknown>\r\n   8:        0x13f4e27c1 - <unknown>\r\n   9:        0x13f4dee04 - <unknown>\r\n  10:        0x13f2cfdc9 - <unknown>\r\n  11:        0x13f4ec1d8 - <unknown>\r\n  12:         0x76d459bc - BaseThreadInitThunk\r\n```\r\n\r\nhttps://github.com/rust-lang/rust/blob/1.11.0/src/libstd/io/stdio.rs#L617"},"comment":{"url":"https://api.github.com/repos/Aaronepower/tokei/issues/comments/248691587","html_url":"https://github.com/Aaronepower/tokei/issues/68#issuecomment-248691587","issue_url":"https://api.github.com/repos/Aaronepower/tokei/issues/68","id":248691587,"user":{"login":"Aaronepower","id":4464295,"avatar_url":"https://avatars.githubusercontent.com/u/4464295?v=3","gravatar_id":"","url":"https://api.github.com/users/Aaronepower","html_url":"https://github.com/Aaronepower","followers_url":"https://api.github.com/users/Aaronepower/followers","following_url":"https://api.github.com/users/Aaronepower/following{/other_user}","gists_url":"https://api.github.com/users/Aaronepower/gists{/gist_id}","starred_url":"https://api.github.com/users/Aaronepower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aaronepower/subscriptions","organizations_url":"https://api.github.com/users/Aaronepower/orgs","repos_url":"https://api.github.com/users/Aaronepower/repos","events_url":"https://api.github.com/users/Aaronepower/events{/privacy}","received_events_url":"https://api.github.com/users/Aaronepower/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T17:56:54Z","updated_at":"2016-09-21T17:56:54Z","body":"@iliekturtles What is your rustc version? `rustc -vV` and what are you running this through? MSYS or Cygwin?"}}
{"actor":{"display_login":"Aaronepower"}}