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

Error running fuzzy_navigator example #3

Open
megatux opened this issue Oct 12, 2020 · 0 comments
Open

Error running fuzzy_navigator example #3

megatux opened this issue Oct 12, 2020 · 0 comments

Comments

@megatux
Copy link

megatux commented Oct 12, 2020

Entering some input on the filter, like "a" or "1" or actually anything I've tried, throws this error:

Filter: aUnhandled exception: Empty enumerable (Enumerable::EmptyError)
from ../../../.asdf/installs/crystal/0.35.1/share/crystal/src/enumerable.cr:502:13 in 'first'
from src/keimeno/menu.cr:95:21 in 'key_enter'
from demo/fuzzy_navigator.cr:28:5 in 'key_enter'
from src/keimeno/base.cr:92:5 in 'function_key'
from src/keimeno/base.cr:162:9 in 'key_pressed'
from src/keimeno/base.cr:189:9 in 'wait_for_input'
from src/keimeno/base.cr:53:9 in 'display_loop'
from src/keimeno/base.cr:30:11 in 'run'
from demo/fuzzy_navigator.cr:150:20 in '__crystal_main'
from ../../../.asdf/installs/crystal/0.35.1/share/crystal/src/crystal/main.cr:105:5 in 'main_user_code'
from ../../../.asdf/installs/crystal/0.35.1/share/crystal/src/crystal/main.cr:91:7 in 'main'
from ../../../.asdf/installs/crystal/0.35.1/share/crystal/src/crystal/main.cr:114:3 in 'main'
from __libc_start_main
from _start
from ???

Crystal info:

crystal -v
Crystal 0.35.1 [5999ae29b] (2020-06-19)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu

Commands to produce error:

$ crystal build demo/fuzzy_navigator.cr
$ ./fuzzy_navigator

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

1 participant