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

no method matching edit_splice!(...) when using the REPL #56864

Open
KristofferC opened this issue Dec 18, 2024 · 1 comment
Open

no method matching edit_splice!(...) when using the REPL #56864

KristofferC opened this issue Dec 18, 2024 · 1 comment
Labels
bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop)

Comments

@KristofferC
Copy link
Member

Not sure exactly what I did to encounter this, I think I pressed tab?

julia> Profile.print(noisef┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching edit_splice!(::REPL.LineEdit.PromptState, ::Pair{Int64, Int64}, ::REPL.LineEdit.NamedCompletion)
│    The function `edit_splice!` exists, but no method is defined for this combination of argument types.
│    
│    Closest candidates are:
│      edit_splice!(::Union{REPL.LineEdit.MIState, REPL.LineEdit.ModeState, IOBuffer}, ::Pair{Int64, Int64}, ::String; rigid_mark)
│       @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:871
│      edit_splice!(::Union{REPL.LineEdit.MIState, REPL.LineEdit.ModeState, IOBuffer}, ::Pair{Int64, Int64}; ...)
│       @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:871
│      edit_splice!(::Union{REPL.LineEdit.MIState, REPL.LineEdit.ModeState, IOBuffer}; ...)
│       @ REPL ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:871
│      ...
│    
│    Stacktrace:
│     [1] edit_move_right(m::REPL.LineEdit.MIState)
│       @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:791
│     [2] (::REPL.LineEdit.var"#222#223")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any})
│       @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2602
│     [3] #invokelatest#1
│       @ ./essentials.jl:1056 [inlined]
│     [4] invokelatest
│       @ ./essentials.jl:1052 [inlined]
│     [5] (::REPL.LineEdit.var"#match_input##0#match_input##1"{REPL.LineEdit.var"#222#223", String})(s::Any, p::Any)
│       @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:1756
│     [6] macro expansion
│       @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2906 [inlined]
│     [7] macro expansion
│       @ ./lock.jl:294 [inlined]
│     [8] (::REPL.LineEdit.var"#prompt!##2#prompt!##3"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│       @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2896
└ @ REPL.LineEdit ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2908
@KristofferC KristofferC added bug Indicates an unexpected problem or unintended behavior REPL Julia's REPL (Read Eval Print Loop) labels Dec 18, 2024
@mbauman
Copy link
Member

mbauman commented Dec 18, 2024

Yep, I can reproduce on nightly by pasting the following and then hitting the right arrow (or control-f) twice

julia> using Profile

julia> Profile.print(noisef

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

2 participants