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

REPL: BoundsError in history search #29347

Closed
KristofferC opened this issue Sep 24, 2018 · 0 comments
Closed

REPL: BoundsError in history search #29347

KristofferC opened this issue Sep 24, 2018 · 0 comments
Labels
kind:bug Indicates an unexpected problem or unintended behavior stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@KristofferC
Copy link
Sponsor Member

To reproduce:

  • Ctrl-R to enter reverse mode
  • Paste som gibberish
  • Press Ctrl-R again
': verse-i-search)` sdgfdfgdfgfdgfdgfd        ┌ Error: Error in the keymap
│   exception =
│    BoundsError: attempt to access ""
│      at index [0]
│    Stacktrace:
│     [1] prevind(::String, ::Int64, ::Int64) at ./strings/basic.jl:460
│     [2] prevind(::String, ::Int64) at ./strings/basic.jl:455
│     [3] history_search(::REPL.REPLHistoryProvider, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool, ::Bool) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:631
│     [4] history_next_result(::REPL.LineEdit.MIState, ::REPL.LineEdit.SearchState) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:1565
│     [5] (::getfield(REPL.LineEdit, Symbol("##44#75")))(::Any, ::Any, ::Any) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:1777
...

The paste is not necessary, you can also type something that doesn't make any result in the reverse search come up and trigger the same behavior. Pasting is easier though.

@KristofferC KristofferC added kind:bug Indicates an unexpected problem or unintended behavior stdlib:REPL Julia's REPL (Read Eval Print Loop) labels Sep 24, 2018
KristofferC pushed a commit that referenced this issue Oct 6, 2018
KristofferC pushed a commit that referenced this issue Feb 11, 2019
KristofferC pushed a commit that referenced this issue Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Indicates an unexpected problem or unintended behavior stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

1 participant