panic on empty lines
ChrisJefferson opened this issue · 2 comments
ChrisJefferson commented
When running an input from stdin, if any line is blank I get the following error. Obviously a blank line is silly, but easy to do if you are constructing the file in a text editor. Perhaps just skip them?
parallel: reading inputs from standard input
thread '<unnamed>' panicked at 'index out of bounds: the len is 0 but the index is 0', src/libcollections/vec.rs:1395
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Here is the backtrace:
1: 0x106472bb3 - std::sys::imp::backtrace::tracing::imp::write::h9559bd7cb15d72ad
2: 0x106471e2e - std::panicking::default_hook::{{closure}}::h4b3f2b69c9ce844d
3: 0x106471118 - std::panicking::rust_panic_with_hook::h8e6300d8e8aca457
4: 0x106470c9f - std::panicking::begin_panic::h08622fbe5a379aac
5: 0x106470c12 - std::panicking::begin_panic_fmt::ha00d3aa9db91f578
6: 0x10647ee0e - core::panicking::panic_fmt::h58d018e87f211baf
7: 0x10647ec8c - core::panicking::panic_bounds_check::h38556703686d76f6
8: 0x106461b50 - parallel::execute::command::get_command_output::h8ee21c4e00fb97ba
9: 0x10644371e - <F as alloc::boxed::FnBox<A>>::call_box::hf3a07f776cd4b0bc
10: 0x10647cd38 - std::sys::imp::thread::Thread::new::thread_start::h80e9dc7cc1dfe0d2
11: 0x7fff9cf859ae - _pthread_body
12: 0x7fff9cf858fa - _pthread_start
mmstick commented
I'll look into this soon.
mmstick commented
Issue is now resolved with a new release.