Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundsError when completing a Cmd-string in the REPL #57624

Open
xal-0 opened this issue Mar 3, 2025 · 0 comments · May be fixed by #57767
Open

BoundsError when completing a Cmd-string in the REPL #57624

xal-0 opened this issue Mar 3, 2025 · 0 comments · May be fixed by #57767
Labels
bug Indicates an unexpected problem or unintended behavior completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop)

Comments

@xal-0
Copy link
Member

xal-0 commented Mar 3, 2025

Applies to 1.11 and nightly.

julia> `ls ~/De<TAB>┌ Error: Error in the keymap
│   exception =
│    BoundsError: attempt to access 8-codeunit String at index [16]
│    Stacktrace:
│      [1] _nextind_str
│        @ ./strings/string.jl:199 [inlined]
│      [2] nextind
│        @ ./strings/string.jl:193 [inlined]
│      [3] completions(string::String, pos::Int64, context_module::Module, shift::Bool, hint::Bool)
│        @ REPL.REPLCompletions ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/REPLCompletions.jl:1278
│      [4] complete_line(c::REPL.REPLCompletionProvider, s::REPL.LineEdit.PromptState, mod::Module; hint::Bool)
│        @ REPL ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/REPL.jl:637
│      [5] complete_line(s::REPL.LineEdit.PromptState, repeats::Int64, mod::Module; hint::Bool)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:428
│      [6] complete_line(s::REPL.LineEdit.PromptState, repeats::Int64, mod::Module)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:427
│      [7] complete_line(s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:369
│      [8] edit_tab(s::REPL.LineEdit.MIState, jump_spaces::Bool, delete_trailing::Bool)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2419
│      [9] edit_tab
│        @ ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2419 [inlined]
│     [10] (::REPL.LineEdit.var"#118#174")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any})
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2465
│     [11] #invokelatest#2
│        @ ./essentials.jl:1055 [inlined]
│     [12] invokelatest
│        @ ./essentials.jl:1052 [inlined]
│     [13] (::REPL.LineEdit.var"#30#31"{REPL.LineEdit.var"#118#174", String})(s::Any, p::Any)
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:1711
│     [14] macro expansion
│        @ ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2861 [inlined]
│     [15] macro expansion
│        @ ./lock.jl:273 [inlined]
│     [16] (::REPL.LineEdit.var"#282#284"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│        @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2851
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.3+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2863
@xal-0 xal-0 added completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop) labels Mar 3, 2025
@nsajko nsajko added the bug Indicates an unexpected problem or unintended behavior label Mar 4, 2025
@xal-0 xal-0 linked a pull request Mar 13, 2025 that will close this issue
@giordano giordano linked a pull request Mar 14, 2025 that will close this issue
xal-0 added a commit to xal-0/julia that referenced this issue Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior completions Tab and autocompletion in the repl REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants