JuliaLang/julia

Julia 1.11.6 breaks keyword autocompletion in REPL for structures defined using @kwdef

Open

#59.244 aberto em 10 de ago. de 2025

Ver no GitHub
 (15 comments) (1 reaction) (0 assignees)Julia (5.773 forks)batch import
REPLcompletionshelp wantedregression 1.11regression 1.12

Métricas do repositório

Stars
 (48.709 stars)
Métricas de merge de PR
 (Mesclagem média 23d 11h) (145 fundiu PRs em 30d)

Description

Hi!

In Julia 1.11.5, the following works:

julia> @kwdef struct Test
           first = 2
           second = 3
       end
Test

julia> Test(; fi<TAB>
julia> Test(; first=

i.e., if you press TAB it correctly auto-completes the field name.

In Julia 1.11.6, on the other hand, we have:

julia> @kwdef struct Test
           first = 2
           second = 3
       end
Test

julia> Test(; fi<TAB>
fieldcount   fieldname    fieldnames   fieldoffset  fieldtype    fieldtypes
filemode     filesize     fill         fill!        filter       filter!
finalize     finalizer    finally      findall      findfirst    findlast
findmax      findmax!     findmin      findmin!     findnext     findprev
first        firstindex

I am pretty sure that the correct behavior should be the first one.

Guia do colaborador