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.