Skip to content

BoundsError: attempt to access ... after making selection with rofi #32

@jlapeyre

Description

@jlapeyre

@search cos(1.0) [RETURN] shows a rofi window with a single entry. Upon hitting return the rofi window disappears and I see the error:

ERROR: BoundsError: attempt to access 1-element Vector{SubString{String}} at index [2]
Stacktrace:
 [1] getindex
   @ ./essentials.jl:13 [inlined]
 [2] indexed_iterate
   @ ./tuple.jl:89 [inlined]
 [3] parse_loc(line::String)
   @ InteractiveCodeSearch ~/.julia/packages/InteractiveCodeSearch/irjIV/src/InteractiveCodeSearch.jl:180
 [4] _choose_method(#unused#::Base.HasShape{1}, methods::Base.MethodList)
   @ InteractiveCodeSearch ~/.julia/packages/InteractiveCodeSearch/irjIV/src/InteractiveCodeSearch.jl:220
 [5] choose_method
   @ ~/.julia/packages/InteractiveCodeSearch/irjIV/src/InteractiveCodeSearch.jl:189 [inlined]
 [6] search_methods(methods::Base.MethodList)
   @ InteractiveCodeSearch ~/.julia/packages/InteractiveCodeSearch/irjIV/src/InteractiveCodeSearch.jl:231
 [7] code_search_typed(f::Function, t::Type)

This happens with any search I try, including those with multiple entries in the rofi window.

Julia v"1.9.0-rc2"
rofi -v Version: 1.7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions