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

Fail to press UP or DOWN keys in REPL after v1.11.0-rc1 #349

Closed
huangyxi opened this issue Jun 27, 2024 · 1 comment · Fixed by #350
Closed

Fail to press UP or DOWN keys in REPL after v1.11.0-rc1 #349

huangyxi opened this issue Jun 27, 2024 · 1 comment · Fixed by #350

Comments

@huangyxi
Copy link
Contributor

Moving up and down failed when pressing the UP or DOWN key in the REPL after importing OhMyREPL, since v1.11.0-rc1 or v1.12.0-DEV.

Reproduction

  1. Run julia with version v1.11.0-rc1.
  2. Use the command using OhMyREPL.
  3. Press the UP key (\e[A) or DOWN key (\e[B).
$ julia +1.11
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.0-rc1 (2024-06-25)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using OhMyREPL

>>>>>> PRESS UP KEY <<<<<<

julia> ┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching enter_prefix_search(::REPL.LineEdit.MIState, ::REPL.LineEdit.HistoryPrompt, ::Bool)
│    The function `enter_prefix_search` exists, but no method is defined for this combination of argument types.
│
│    Closest candidates are:
│      enter_prefix_search(::REPL.LineEdit.MIState, ::REPL.LineEdit.PrefixHistoryPrompt, ::Bool)
│       @ REPL ~/.julia/juliaup/julia-1.11.0-rc1+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2203
│
│    Stacktrace:
│     [1] (::OhMyREPL.Prompt.var"#55#57"{REPL.LineEdit.HistoryPrompt})(::Any, ::Any, ::Vararg{Any})
│       @ OhMyREPL.Prompt ~/.julia/packages/OhMyREPL/6UG7a/src/repl.jl:291
│     [2] #invokelatest#2
│       @ ./essentials.jl:1043 [inlined]
│     [3] invokelatest
│       @ ./essentials.jl:1040 [inlined]
│     [4] (::REPL.LineEdit.var"#30#31"{OhMyREPL.Prompt.var"#55#57"{REPL.LineEdit.HistoryPrompt}, String})(s::Any, p::Any)
│       @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.0-rc1+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:1705
│     [5] macro expansion
│       @ ~/.julia/juliaup/julia-1.11.0-rc1+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2855 [inlined]
│     [6] macro expansion
│       @ ./lock.jl:273 [inlined]
│     [7] (::REPL.LineEdit.var"#282#284"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│       @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.0-rc1+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2845
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.0-rc1+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2857
julia>
julia>
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

Successfully merging a pull request may close this issue.

2 participants