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 in REPL keymap on shift-tab #49435

Closed
tecosaur opened this issue Apr 20, 2023 · 2 comments
Closed

Error in REPL keymap on shift-tab #49435

tecosaur opened this issue Apr 20, 2023 · 2 comments
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)
Milestone

Comments

@tecosaur
Copy link
Contributor

On Julia 1.9-rc2, I've found a few times that if I tab on pkg> add [a few letters] I can get this error message:

┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching setmodifiers!(::Pkg.REPLMode.PkgCompletionProvider, ::REPL.LineEdit.Modifiers)
│    
│    Closest candidates are:
│      setmodifiers!(::REPL.LineEdit.MIState, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2047
│      setmodifiers!(::REPL.LineEdit.Prompt, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2048
│      setmodifiers!(::REPL.REPLCompletionProvider, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:510
│      ...

The stacktrace follows

│    Stacktrace:
│      [1] setmodifiers!(p::REPL.LineEdit.Prompt, m::REPL.LineEdit.Modifiers)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2048
│      [2] setmodifiers!(s::REPL.LineEdit.MIState, m::REPL.LineEdit.Modifiers)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2047
│      [3] shift_tab_completion
│        @ ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2319 [inlined]
│      [4] (::REPL.LineEdit.var"#115#171")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any})
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2359
│      [5] #invokelatest#2
│        @ ./essentials.jl:816 [inlined]
│      [6] invokelatest
│        @ ./essentials.jl:813 [inlined]
│      [7] (::REPL.LineEdit.var"#27#28"{REPL.LineEdit.var"#115#171", String})(s::Any, p::Any)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:1603
│      [8] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2740
│      [9] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2642
│     [10] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
│        @ REPL ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1298
│     [11] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
│        @ REPL ./task.jl:514
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.9.0-rc2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2742

Looks like perhaps a bit of LineEdit.jl was modified but not everything updated.

@KristofferC KristofferC added bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop) labels Apr 21, 2023
@mbauman
Copy link
Member

mbauman commented Jun 1, 2023

This reliably happens in both shell and pkg modes upon typing shifttab

@mbauman mbauman changed the title Error in REPL keymap Error in REPL keymap on shift-tab Jun 1, 2023
@oscardssmith oscardssmith added this to the 1.10 milestone Jul 27, 2023
@LilithHafner
Copy link
Member

Fixed by #50822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

5 participants