# Error in the keymap: bug in Debugger

**URL:** <https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131>\
**Category:** General Usage\
**Tags:** debugger\
**Created:** [September 1, 2026, 5:36am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131 "2026-09-01T05:36:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 1, 2026, 5:36am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/1 "2026-09-01T05:36:50Z")

</div>

I just updated Julia on puma to 1.12.7, after updating kodkod to 1.12.7 with no problem. I then did `instantiate`, `update`, and `resolve` until it appeared to load a script without problem. I then ran `cvtdeg("foo")` (one of the functions in the script) and got an error as soon as I typed the right banana. I then typed `sqrt(3)` and got the same error:

```julia-auto
julia> sqrt(3┌ Error: Error in the keymap
│ exception =
│ MethodError: no method matching edit_insert(::REPL.LineEdit.PromptState, ::REPL.LineEditREPL, ::String)
│ The function `edit_insert` exists, but no method is defined for this combination of argument types.
│    
│ Closest candidates are:
│ edit_insert(::REPL.LineEdit.MIState, ::Any...)
│ @ REPL ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:263
│ edit_insert(::REPL.LineEdit.PromptState, ::Union{Char, SubString{String}, String})
│ @ REPL ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:960
│ edit_insert(::IOBuffer, ::Union{Char, SubString{String}, String})
│ @ REPL ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:1034
│    
│ Stacktrace:
│ [1] edit_insert(::REPL.LineEdit.MIState, ::Any, ::Any)
│ @ REPL.LineEdit ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:265
│ [2] (::Debugger.var"#110#111"{typeof(REPL.LineEdit.edit_insert), REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::REPL.LineEditREPL, ::Vararg{Any})
│ @ Debugger ~/.julia/packages/Debugger/1HzXT/src/debugmode.jl:129
│ [3] (::REPL.LineEdit.var"#match_input##0#match_input##1"{Debugger.var"#110#111"{typeof(REPL.LineEdit.edit_insert), REPL.LineEdit.Prompt}, String})(s::Any, p::Any)
│ @ REPL.LineEdit ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:1810
│ [4] macro expansion
│ @ ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2960 [inlined]
│ [5] macro expansion
│ @ ./lock.jl:376 [inlined]
│ [6] (::REPL.LineEdit.var"#prompt!##2#prompt!##3"{Base.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, REPL.LineEdit.Prompt})()
│ @ REPL.LineEdit ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2949
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.12.7+0.x64.linux.gnu/share/julia/stdlib/v1.12/REPL/src/LineEdit.jl:2962
julia> 

```

How do I fix this?

---

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 1, 2026, 5:49am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/2 "2026-09-01T05:49:19Z")

</div>

Going back to 1.12.6 didn’t help.

---

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 1, 2026, 5:55am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/3 "2026-09-01T05:55:19Z")

</div>

Tried typing `)` by itself and got `debug>`. Typing `)` on kodkod gives `)` as expected. But on kodkod, I’m running a program I’m developing in a module, not this script.

---

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 1, 2026, 6:00am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/4 "2026-09-01T06:00:51Z")

</div>

Ran the script on kodkod, typed `)`, and got `debug>`. Looks like it’s a bug in `Debugger`.

---

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 1, 2026, 6:03am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/5 "2026-09-01T06:03:29Z")

</div>

On puma, commented out `using Debugger` in `startup.jl` and ran the script again. Typed `)`, got `)`.

---

<div class="post-metadata">

**Author:** ![phma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phma/32/6576_2.png) [@phma](https://discourse.julialang.org/u/phma)\
**Post date:** [September 2, 2026, 8:40am UTC](https://discourse.julialang.org/t/error-in-the-keymap-bug-in-debugger/139131/6 "2026-09-02T08:40:20Z")

</div>

This is now fixed. See [MethodError in edit\_insert keymap fallback on Julia 1.12 (debugmode.jl:129) · Issue #420 · JuliaDebug/Debugger.jl · GitHub](https://github.com/JuliaDebug/Debugger.jl/issues/420) .
