nom icon indicating copy to clipboard operation
nom copied to clipboard

no entry found for key

Open alanpoon opened this issue 8 years ago • 1 comments

thread 'main' panicked at 'no entry found for key', libcore/option.rs:1008:5 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: std::sys_common::backtrace::_print at libstd/sys_common/backtrace.rs:71 2: std::panicking::default_hook::{{closure}} at libstd/sys_common/backtrace.rs:59 at libstd/panicking.rs:211 3: std::panicking::default_hook at libstd/panicking.rs:227 4: std::panicking::rust_panic_with_hook at libstd/panicking.rs:476 5: std::panicking::continue_panic_fmt at libstd/panicking.rs:390 6: rust_begin_unwind at libstd/panicking.rs:325 7: core::panicking::panic_fmt at libcore/panicking.rs:77 8: core::option::expect_failed at libcore/option.rs:1008 9: <core::option::Option>::expect at /rustc/9fefb67669f00c25b476e7a80c9c9300a987d517/src/libcore/option.rs:322 10: <std::collections::hash::map::HashMap<K, V, S> as core::ops::index::Index<&'a Q>>::index at /rustc/9fefb67669f00c25b476e7a80c9c9300a987d517/src/libstd/collections/hash/map.rs:1661 11: tscn_amethyst::parse at src/lib.rs:72 12: parse::main at examples/parse.rs:6 13: std::rt::lang_start::{{closure}} at /rustc/9fefb67669f00c25b476e7a80c9c9300a987d517/src/libstd/rt.rs:74 14: std::panicking::try::do_call at libstd/rt.rs:59 at libstd/panicking.rs:310 15: __rust_maybe_catch_panic at libpanic_unwind/lib.rs:102 16: std::rt::lang_start_internal at libstd/panicking.rs:289 at libstd/panic.rs:398 at libstd/rt.rs:58 17: std::rt::lang_start at /rustc/9fefb67669f00c25b476e7a80c9c9300a987d517/src/libstd/rt.rs:74 18: main 19: __libc_start_main 20: _start

when running this named!(transform_<Vec<&str>>,do_parse!( _a:take_until!(" ") >> b:separated_list!(tag!(","),take_until!(" ")) >> (b.iter().map(|x|std::str::from_utf8(x).unwrap()).collect()) ) );

alanpoon avatar Nov 27 '18 15:11 alanpoon

This is not enough info to really troubleshoot what's happening here. We don't really know much about the statement you've pasted, and you've ignored (and deleted) the already-inserted-for-you issue template. It pretty clearly describes what we need for an issue to be useful, and why.

I should note that the full-length, unformatted stack trace is also unhelpful on it's own with only a (supposedly) triggering statement. I understand that it means that you think you were invoking the function the macro expansion generates, but that's all I know. I'm not sure where a hashtable would be involved here, and this panic appears to stem from a hashtable.

Zarenor avatar Nov 27 '18 19:11 Zarenor