REPL lacks tab completion for non-struct types #41652
Labels
Comments
|
It looks to me like the call to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Defining
propertynamesfor 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 followingisstructtypecheck:julia/stdlib/REPL/src/REPLCompletions.jl
Line 147 in c95448f
And indeed, defining something like
Base.isstructtype(::Type{<:Cptr}) = truegets 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 theisstructtypeworkaround?The text was updated successfully, but these errors were encountered: