Julia 1.13.0 startup `SearchState` error on startup when OhMyREPL is installed

Error: Error in the keymap
│   exception =
│    UndefVarError: `SearchState` not defined in `REPL.LineEdit`

I am aware that this has cropped up before some key bindings in repl ..

It errors with or without using TerminalPager, here is the top part of my startup.jl :

println("running ~./julia/config/startup.jl")
#using TerminalPager
using OhMyREPL
using Pkg

atreplinit() do repl
    try
        @eval using Revise
        @async Revise.wait_steal_repl_backend()
        println("Revise version = ", @eval pkgversion(Revise))#, " is loaded and running in the background.")
    catch
    end
end

Full exception message:

   exception =
│    UndefVarError: `SearchState` not defined in `REPL.LineEdit`
│    Suggestion: check for spelling errors or missing imports.
│    Stacktrace:
│     [1] getproperty
│       @ ./Base_compiler.jl:50 [inlined]
│     [2] rewrite_with_ANSI(s::Any, cursormove::Bool)
│       @ OhMyREPL.Prompt ~/.julia/packages/OhMyREPL/V6mw0/src/repl.jl:27
│     [3] rewrite_with_ANSI
│       @ ~/.julia/packages/OhMyREPL/V6mw0/src/repl.jl:27 [inlined]
│     [4] (::OhMyREPL.Prompt.var"#create_keybindings##2#create_keybindings##3")(s::Any, data::Any, c::Any)
│       @ OhMyREPL.Prompt ~/.julia/packages/OhMyREPL/V6mw0/src/repl.jl:97
│     [5] (::REPL.LineEdit.var"#match_input##0#match_input##1"{OhMyREPL.Prompt.var"#create_keybindings##2#create_keybindings##3", String})(s::Any, p::Any)
│       @ REPL.LineEdit ~/.julia/juliaup/julia-1.13.0+0.x64.linux.gnu/share/julia/stdlib/v1.13/REPL/src/LineEdit.jl:1897
│     [6] macro expansion
│       @ ~/.julia/juliaup/julia-1.13.0+0.x64.linux.gnu/share/julia/stdlib/v1.13/REPL/src/LineEdit.jl:3068 [inlined]
│     [7] macro expansion
│       @ ./lock.jl:376 [inlined]
│     [8] (::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.13.0+0.x64.linux.gnu/share/julia/stdlib/v1.13/REPL/src/LineEdit.jl:3057
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.13.0+0.x64.linux.gnu/share/julia/stdlib/v1.13/REPL/src/LineEdit.jl:3070

Julia starts OK when when started without using startup.jl. I have a UK/GB/EN keymap if that’s any help. Earlier Julia versions have worked perfectly with my current startup.jl.

I only remember that from way back on a first nightly, but I think 1.13 makes OhMyRepl basically obsolete – you get even a bit nicer color markup on REPL directly.
edit also the search of course.

@kellertuer Not using OhMyREPL fixed it (sort of obviously). Didn’t know it was retired.
Many thanks. Roger.

I checked, my startup already has

using Revise, REPL, About
# Omit in 1.13?
if VERSION < v"1.13.0-rc1"
    using OhMyREPL
end

but for such a long time that I do not remember when exactly, and I just vaguely remember trying out the new search and/or highlight a long time back on nightly.
I do remember that the the Readme of OhMyREPL states

Note that this package overwrites some methods from Julia Base. If you get a weird error when using OhMyREPL you should reproduce it without having OhMyREPL loaded before reporting it as a Julia bug.

…and for now the highlight and search are directly a feature of Julia 1.13, see

and

Hm, I actually read through the blogpost today before seeing your post and they explicitly state that OhMyREPL is not needed anymore, but, unless I missed it, did not say that it should clash and julia would not run.

Well, OhMyREPL itself says they rely heavily on internals and might break due to that.