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

Index out of bounds error when searching #1

Open
masukomi opened this issue Apr 10, 2020 · 4 comments
Open

Index out of bounds error when searching #1

masukomi opened this issue Apr 10, 2020 · 4 comments

Comments

@masukomi
Copy link

masukomi commented Apr 10, 2020

$ snipcli search
Unhandled exception: Index out of bounds (IndexError)
  from SniplineCli::Services::DisplayResults#build_snippet:String
  from SniplineCli::Services::DisplayResults#run_character_key<Char, Int32>:Bool
  from SniplineCli::Command::Search#parse_and_run:Nil
  from SniplineCli::Command#parse_and_run:Nil
  from main

the UI drew empty boxes. I typed ruby gems into the search and hit enter before getting the exception above. Tried again with just ruby same result.

@acoustep
Copy link
Contributor

Thanks @masukomi for the bug report. Looks like when there's no results it throws an error. I'll work on a fix :)

@brpaz
Copy link

brpaz commented May 5, 2020

Similar error when searching and pressing the backspace key:

Unhandled exception: Index out of bounds (IndexError)
Failed to raise an exception: END_OF_STACK
[0x7fa5673f07d6] ???
[0x7fa5672c2c19] ???
[0x7fa5672c3a95] ???
[0x7fa5672cdbd9] ???
[0x7fa5672c8e2d] ???
[0x7fa5672c82c2] ???
[0x7fa5672e2b97] ???
[0x7fa5672df9c7] ???
[0x7fa5672c5f67] ???
[0x7fa567664c1e] ???

@acoustep
Copy link
Contributor

acoustep commented May 7, 2020

Thanks @brpaz , I have this fixed locally and I'll be releasing an update soon :)

@acoustep
Copy link
Contributor

This has been fixed in 0.4.0. Thanks all!

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

3 participants