Closed fitzgen closed 8 years ago
Inside Emacs's M-x shell, the cargo benchcmp command will always panic:
M-x shell
cargo benchcmp
$ cargo benchcmp ~/scratch/before ~/scratch/after thread 'main' panicked at 'Cannot print table to standard output : operation not supported by the terminal', /Users/fitzgen/.cargo/registry/src/github.com-1ecc6299db9ec823/prettytable-rs-0.6.5/src/lib.rs:173 stack backtrace: 1: 0x103c9bafa - std::sys::backtrace::tracing::imp::write::h46f28e67d38b4637 2: 0x103c9dabf - std::panicking::default_hook::{{closure}}::h1d3243f546573ff4 3: 0x103c9cf85 - std::panicking::default_hook::h96c288d728df3ebf 4: 0x103c9d536 - std::panicking::rust_panic_with_hook::hb1322e5f2588b4db 5: 0x103c9d3d4 - std::panicking::begin_panic::hfbeda5aad583dc32 6: 0x103c9d2f2 - std::panicking::begin_panic_fmt::h4fe9fb9d5109c4bf 7: 0x103c05962 - prettytable::TableSlice::print_tty::h7f3d5c1f5cfe8a0a 8: 0x103bff5fd - cargo_benchcmp::Args::run::h5c6cc5028d1347fb 9: 0x103bfa6e9 - cargo_benchcmp::main::hb31fd77d8a66a286 10: 0x103c9e07a - __rust_maybe_catch_panic 11: 0x103c9cac6 - std::rt::lang_start::haaae1186de9de8cb
Ideally, this would check if pretty colors or whatever are supported (which M-x shell actually will support, so maybe just removing whatever check will work?) and not use them if they aren't, rather than panicking.
Ah, I see this is in a dependant crate, moving discussion there.
Inside Emacs's
M-x shell
, thecargo benchcmp
command will always panic:Ideally, this would check if pretty colors or whatever are supported (which
M-x shell
actually will support, so maybe just removing whatever check will work?) and not use them if they aren't, rather than panicking.