REPL lacks tab completion for non-struct types #41652
Labels
good first issue
Indicates a good issue for first-time contributors to Julia
REPL
Julia's REPL (Read Eval Print Loop)
Defining
propertynames
for non-struct types is not enough to enable tab completion in the REPL, as is being done withCptr
(analytech-solutions/CBinding.jl#77) and eventually withPtr
(JuliaInterop/Clang.jl#316). It appears to be prevented because of the followingisstructtype
check:julia/stdlib/REPL/src/REPLCompletions.jl
Line 147 in c95448f
And indeed, defining something like
Base.isstructtype(::Type{<:Cptr}) = true
gets tab completion working, but is fairly a cringe-worthy workaround. Is this a bug in (or feature request for) the REPL? Or is there another approach besides theisstructtype
workaround?The text was updated successfully, but these errors were encountered: