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

Pkg prompt crashes when you press shift + tab #50690

Closed
LilithHafner opened this issue Jul 27, 2023 · 1 comment · Fixed by #50822
Closed

Pkg prompt crashes when you press shift + tab #50690

LilithHafner opened this issue Jul 27, 2023 · 1 comment · Fixed by #50822
Labels
kind:bug Indicates an unexpected problem or unintended behavior kind:duplicate Indicates similar issues or pull requests stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@LilithHafner
Copy link
Member

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

@LilithHafner LilithHafner added kind:bug Indicates an unexpected problem or unintended behavior stdlib:REPL Julia's REPL (Read Eval Print Loop) labels Jul 27, 2023
@tecosaur
Copy link
Contributor

Already reported in #49435 🙂

@LilithHafner LilithHafner added the kind:duplicate Indicates similar issues or pull requests label Jul 27, 2023
@LilithHafner LilithHafner closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
IanButterworth pushed a commit that referenced this issue Aug 19, 2023
nalimilan pushed a commit that referenced this issue Nov 5, 2023
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 kind:duplicate Indicates similar issues or pull requests stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants