Closed ceuk closed 2 years ago
Steps to recreate:
bat cache --build --source . --target .
sync_from_bat.py
cp $XDG_CACHE_HOME/bat/themes.bin .
cd .. && cargo install --path .
Running anything (e.g. silicon --list-themes) will give you this error:
silicon --list-themes
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Custom { kind: InvalidInput, error: "corrupt deflate stream" })', ~/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/syntect-4.6.0/src/dumps.rs:83:20 stack backtrace: 0: 0x5651d208360c - std::backtrace_rs::backtrace::libunwind::trace::h91c465e73bf6c785 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x5651d208360c - std::backtrace_rs::backtrace::trace_unsynchronized::hae9da36f5d58b5f3 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x5651d208360c - std::sys_common::backtrace::_print_fmt::h7f499fa126a7effb at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:67:5 3: 0x5651d208360c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h3e2b509ce2ce6007 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:46:22 4: 0x5651d20ab31c - core::fmt::write::h753c7571fa063ecb at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/fmt/mod.rs:1168:17 5: 0x5651d207eb13 - std::io::Write::write_fmt::h2815c0519c99ba09 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/io/mod.rs:1660:15 6: 0x5651d2085c82 - std::sys_common::backtrace::_print::h64941a6fc8b0ed9b at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:49:5 7: 0x5651d2085c82 - std::sys_common::backtrace::print::hcf25e43e1a9b0766 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:36:9 8: 0x5651d2085c82 - std::panicking::default_hook::{{closure}}::h78d3e6cf97fc623d at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:211:50 9: 0x5651d2085865 - std::panicking::default_hook::hda898f8d3ad1a5ae at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:228:9 10: 0x5651d20862d3 - std::panicking::rust_panic_with_hook::h1a5ea2d6c23051aa at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:606:17 11: 0x5651d2085ff0 - std::panicking::begin_panic_handler::{{closure}}::h07f549390938b73f at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:502:13 12: 0x5651d2083ab4 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ec3758a92cfb00d at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:139:18 13: 0x5651d2085d29 - rust_begin_unwind at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5 14: 0x5651d1ef9d51 - core::panicking::panic_fmt::h3a79a6a99affe1d5 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14 15: 0x5651d1ef9e43 - core::result::unwrap_failed::ha0327e3803285d6e at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5 16: 0x5651d1f49e5a - syntect::dumps::from_binary::h09539f679a7cef35 17: 0x5651d1f39935 - silicon::utils::init_syntect::hfc3490cf67a74f14 18: 0x5651d1effc5d - silicon::main::h197fe7e884f43639 19: 0x5651d1f02553 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0b5b25f8011191b1 20: 0x5651d1f1c389 - std::rt::lang_start::{{closure}}::h30e6218ec364a500 21: 0x5651d2082cc0 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h443f738a8e9f947a at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:259:13 22: 0x5651d2082cc0 - std::panicking::try::do_call::h1e21ba261ba489ec at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 23: 0x5651d2082cc0 - std::panicking::try::h6afd48af8b6c96ac at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 24: 0x5651d2082cc0 - std::panic::catch_unwind::h85dd95e0bab7fb60 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 25: 0x5651d2082cc0 - std::rt::lang_start_internal::{{closure}}::h038455e697c8b03e at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/rt.rs:128:48 26: 0x5651d2082cc0 - std::panicking::try::do_call::h6b0ad65979f3077a at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40 27: 0x5651d2082cc0 - std::panicking::try::h010108d314169ac6 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19 28: 0x5651d2082cc0 - std::panic::catch_unwind::hff397f912b1535c2 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14 29: 0x5651d2082cc0 - std::rt::lang_start_internal::h52e73755f77c7dd9 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/rt.rs:128:20 30: 0x5651d1f025d2 - main 31: 0x7f6a06429290 - <unknown> 32: 0x7f6a0642934a - __libc_start_main 33: 0x5651d1efa4c5 - _start at /build/glibc/src/glibc/csu/../sysdeps/x86_64/start.S:115 34: 0x0 - <unknown>
Steps to recreate:
bat cache --build --source . --target .
without changing anything elsesync_from_bat.py
scriptbat cache --build --source . --target .
cp $XDG_CACHE_HOME/bat/themes.bin .
)cd .. && cargo install --path .
Running anything (e.g.
silicon --list-themes
) will give you this error: