Skip to content

Pkg prompt crashes when you press shift + tab #50690

Closed
@LilithHafner

Description

@LilithHafner

You can get an internal error in 3 keystrokes :)

], then shift + tab

x@x ~ % julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 1.10.0-alpha1 (2023-07-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> ┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching setmodifiers!(::Pkg.REPLMode.PkgCompletionProvider, ::REPL.LineEdit.Modifiers)
│    
│    Closest candidates are:setmodifiers!(::REPL.REPLCompletionProvider, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/REPL.jl:509setmodifiers!(::REPL.LineEdit.Prompt, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2057setmodifiers!(::REPL.LineEdit.MIState, ::REPL.LineEdit.Modifiers)
│       @ REPL ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2056...
│    
│    Stacktrace:
│      [1] setmodifiers!(p::REPL.LineEdit.Prompt, m::REPL.LineEdit.Modifiers)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2057
│      [2] setmodifiers!(s::REPL.LineEdit.MIState, m::REPL.LineEdit.Modifiers)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2056
│      [3] shift_tab_completion(s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2328 [inlined]
│      [4] (::REPL.LineEdit.var"#115#171")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any})
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2368
│      [5] invokelatest(::REPL.LineEdit.var"#115#171", ::Any, ::Any, ::String; kwargs::@Kwargs{})
│        @ Base ./essentials.jl:867 [inlined]
│      [6] invokelatest(::REPL.LineEdit.var"#115#171", ::Any, ::Any, ::String)
│        @ Base ./essentials.jl:864 [inlined]
│      [7] (::REPL.LineEdit.var"#27#28"{REPL.LineEdit.var"#115#171", String})(s::Any, p::Any)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:1612
│      [8] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2749
│      [9] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2651
│     [10] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
│        @ REPL ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/REPL.jl:1297
│     [11] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
│        @ REPL ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/REPL.jl:373
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.10.0-alpha1+0.aarch64.apple.darwin14/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2751
julia> 

Thanks to @tecosaur for finding this

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behaviorduplicateIndicates similar issues or pull requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions