zaeleus / noodles

Bioinformatics I/O libraries in Rust
MIT License
477 stars 53 forks source link

Unexpected EOF on BCF File #255

Closed tshauck closed 4 months ago

tshauck commented 4 months ago

Hi, I'm getting Error: Kind(UnexpectedEof) when trying to use the async BCF example here: https://github.com/zaeleus/noodles/blob/master/noodles-bcf/examples/bcf_count_async.rs using both of the attached files (note: I added .txt extensions so GH would support the upload).

Happy to look deeper if you can repro the issue, but thought I'd bring it up here in case it's clear to you what the issue might be. Thanks!

zaeleus commented 4 months ago

Thanks for reporting! This was accidentally introduced in noodles 0.69.0/noodles-bcf 0.50.0 (https://github.com/zaeleus/noodles/commit/f72bddaddc9270cecc59cf1b0343e75a65d69f31) when a proper EOF check was implemented. It is now fixed in noodles 0.70.0/noodles-bcf 0.51.0.

tshauck commented 4 months ago

Thanks!