When running on some machines, this error is shown when running:
thread 'main' panicked at 'no entry found for key', /home/desktop/.cargo/registry/src/github.com-1ecc6299db9ec823/guess-that-lang-1.0.3/src/terminal.rs:63:20
That trace resolves to here which shows that this function isn't returning a valid string. If the get_theme
call is replaced by a string literal of either theme, it works.
// Both of the following work.
themes.themes["Monokai Extended"].clone(),
themes.themes["Monokai Extended Light"].clone(),
The get_theme
function is copied from the example in dark-light's README. This error also doesn't appear on my personal machine, so I can't quite debug it.
rust-lang/rust#28606 - This might be related.