JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.6k stars 5.48k forks source link

Autocomplete doesn't work on Pkg REPL mode on Windows on v1.11 #56171

Open el-oso opened 2 days ago

el-oso commented 2 days ago

Tried in Windows and Linux, TAB autocomplete

(jl_qkt9Yn) pkg> dev C:\┌ Error: Error in the keymap
│   exception =
│    IOError: stat("C:\\DumpStack.log.tmp"): resource busy or locked (EBUSY)
│    Stacktrace:
│      [1] uv_error
│        @ .\libuv.jl:106 [inlined]
│      [2] stat(path::String)
│        @ Base.Filesystem .\stat.jl:176
│      [3] isdir
│        @ .\stat.jl:494 [inlined]
│      [4] (::REPLExt.var"#3#6"{String, Int64, UnitRange{Int64}})(x::String)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:42
│      [5] filter!(f::REPLExt.var"#3#6"{String, Int64, UnitRange{Int64}}, a::Vector{String})
│        @ Base .\array.jl:2905
│      [6] complete_expanded_local_dir(s::String, i1::Int64, i2::Int64, expanded_user::Bool, oldi2::Int64)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:40
│      [7] complete_local_dir(s::String, i1::Int64, i2::Int64)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:33
│      [8] complete_add_dev(options::Dict{Symbol, Any}, partial::String, i1::Int64, i2::Int64; hint::Bool)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:156
│      [9] complete_add_dev
│        @ C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:155 [inlined]
│     [10] #34#35
│        @ C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:207 [inlined]
│     [11] complete_argument(spec::Pkg.REPLMode.CommandSpec, options::Vector{String}, partial::String, offset::Int64, index::Int64; hint::Bool)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:221
│     [12] _completions(input::String, final::Bool, offset::Int64, index::Int64; hint::Bool)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:249
│     [13] _completions
│        @ C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:224 [inlined]
│     [14] completions(full::String, index::Int64; hint::Bool)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:278
│     [15] completions
│        @ C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\completions.jl:266 [inlined]
│     [16] complete_line(c::REPLExt.PkgCompletionProvider, s::REPL.LineEdit.PromptState; hint::Bool)
│        @ REPLExt C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Pkg\ext\REPLExt\REPLExt.jl:29
│     [17] complete_line(c::REPL.LineEdit.CompletionProvider, s::Any, ::Module; hint::Bool)
│        @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:188
│     [18] check_for_hint(s::REPL.LineEdit.MIState)
│        @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:385
│     [19] (::REPL.LineEdit.var"#143#199")(s::REPL.LineEdit.MIState, data::Any, c::Union{Char, SubString{String}, String})
│        @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2521
│     [20] #invokelatest#2
│        @ .\essentials.jl:1054 [inlined]
│     [21] invokelatest
│        @ .\essentials.jl:1051 [inlined]
│     [22] (::REPL.LineEdit.var"#30#31"{REPL.LineEdit.var"#143#199", String})(s::Any, p::Any)
│        @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:1705
│     [23] macro expansion
│        @ C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2855 [inlined]
│     [24] macro expansion
│        @ .\lock.jl:273 [inlined]
│     [25] (::REPL.LineEdit.var"#282#284"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│        @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2845
└ @ REPL.LineEdit C:\Users\jvieyras\.julia\juliaup\julia-1.11.0+0.x64.w64.mingw32\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2857
(jl_qkt9Yn) pkg> 
el-oso commented 1 day ago

@IanButterworth @ararslan could you add the 1.11 regression label?

IanButterworth commented 1 day ago

Bug in a new feature but given it's automatic when typing it's fair to mark as a regression.

el-oso commented 20 hours ago

@IanButterworth just for my understanding, what is this new feature? I don't see the correlation

IanButterworth commented 18 hours ago

Tab complete hints