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

dark_light match statement bug #5

Closed
Lioness100 opened this issue Aug 9, 2022 · 1 comment
Closed

dark_light match statement bug #5

Lioness100 opened this issue Aug 9, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Lioness100
Copy link
Owner

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.

@Lioness100 Lioness100 added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Aug 9, 2022
@Lioness100
Copy link
Owner Author

For now I've removed dark-light and hardcoded Monokai Extended for everyone.
bd7d559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant