Skip to content

StringIndexError: invalid index in new History search #60036

@KristofferC

Description

@KristofferC

I am not sure exactly what I did, I wrote a ! by accident I think and something else and the REPL kind of froze and then I got:

│        nested task error: StringIndexError: invalid index [3], valid nearby index [2]=>'¡'
│        Stacktrace:
│         [1] string_index_err(s::AbstractString, i::Int64)
│           @ Base ./strings/string.jl:12
│         [2] SubString{String}(s::String, i::Int64, j::Int64)
│           @ Base ./strings/substring.jl:35
│         [3] SubString
│           @ ./strings/substring.jl:49 [inlined]
│         [4] SubString
│           @ ./strings/substring.jl:52 [inlined]
│         [5] REPL.History.ConditionSet(spec::String)
│           @ REPL.History ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.14/REPL/src/History/resumablefiltering.jl:169
│         [6] run_display!(::@NamedTuple{term::Base.Terminals.TTYTerminal, prompt::REPL.LineEdit.Prompt, istate::REPL.LineEdit.MIState, pstate::REPL.LineEdit.PromptState}, events::Channel{Symbol}, hist::Vector{REPL.History.HistEntry})
│           @ REPL.History ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.14/REPL/src/History/search.jl:126
│         [7] (::REPL.History.var"#runsearch##2#runsearch##3"{REPL.History.HistoryFile, @NamedTuple{term::Base.Terminals.TTYTerminal, prompt::REPL.LineEdit.Prompt, istate::REPL.LineEdit.MIState, pstate::REPL.LineEdit.PromptState}, Channel{Symbol}})()
│        

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions