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

Tab-complete error with pkg mode #4121

Open
jakobjpeters opened this issue Dec 20, 2024 · 0 comments
Open

Tab-complete error with pkg mode #4121

jakobjpeters opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@jakobjpeters
Copy link

To reproduce, enter package mode and type a;[TAB]. Uncertain if it's related, but sometimes you can type ; in package mode and it will stay in package mode, rather than switch to shell mode. In this case, entering [TAB] throws the same error as with a;[TAB].

~> julia --startup-file=no --banner=no
julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, tigerlake)
Threads: 8 default, 0 interactive, 4 GC (on 8 virtual cores)
Environment:
  JULIA_NUM_THREADS = auto

(@v1.11) pkg> a;┌ Error: Error in the keymap
│   exception =
│    MethodError: no method matching startswith(::String, ::Nothing)
│    The function `startswith` exists, but no method is defined for this combination of argument types.
│
│    Closest candidates are:
│      startswith(::AbstractString, ::Regex)
│       @ Base regex.jl:324
│      startswith(::Union{SubString{String}, String}, ::Union{SubString{String}, String})
│       @ Base strings/util.jl:69
│      startswith(::AbstractString, ::AbstractString)
│       @ Base strings/util.jl:31
│      ...
│
│    Stacktrace:
│      [1] (::REPLExt.var"#39#41")(possible::String)
│        @ REPLExt ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/completions.jl:253
│      [2] filter(f::REPLExt.var"#39#41", a::Vector{String})
│        @ Base ./array.jl:2876
│      [3] #_completions#38
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/completions.jl:253
│      [4] _completions
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/completions.jl:216 [inlined]
│      [5] #completions#42
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/completions.jl:270
│      [6] completions
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/completions.jl:258 [inlined]
│      [7] #complete_line#46
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/Pkg/ext/REPLExt/REPLExt.jl:29
│      [8] complete_line
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:188
│      [9] #complete_line#14
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:428
│     [10] complete_line
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:427
│     [11] complete_line
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:369
│     [12] edit_tab (repeats 2 times)
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2419
│     [13] JuliaLang/julia#118
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2465
│     [14] #invokelatest#2
│        @ ./essentials.jl:1055 [inlined]
│     [15] invokelatest
│        @ ./essentials.jl:1052 [inlined]
│     [16] JuliaLang/julia#30
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:1711
│     [17] macro expansion
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2861 [inlined]
│     [18] macro expansion
│        @ ./lock.jl:273 [inlined]
│     [19] JuliaLang/julia#282
│        @ ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2851
└ @ REPL.LineEdit ~/.julia/juliaup/julia-1.11.2+0.x64.linux.gnu/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2863
julia>
julia>
@giordano giordano added the REPL label Dec 20, 2024
@KristofferC KristofferC transferred this issue from JuliaLang/julia Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants