Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panics on non-utf8 data #19

Open
symphorien opened this issue May 26, 2024 · 2 comments
Open

panics on non-utf8 data #19

symphorien opened this issue May 26, 2024 · 2 comments

Comments

@symphorien
Copy link

when running ttags on a local clone of nixpkgs, I got:

$  ttags .                                                                 
thread 'main' panicked at src/tagger.rs:83:63:
called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 12, error_len: Some(1) }
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: ttags::tagger::Tagger::read_and_parse
   4: <core::iter::adapters::flatten::FlatMap<I,U,F> as core::iter::traits::iterator::Iterator>::next
   5: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
   6: ttags::App::run
   7: ttags::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
@npezza93
Copy link
Owner

whats the text it's erroring on?

@symphorien
Copy link
Author

repro.tar.gz

here it is. It's a git pack file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants