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 completion not working in REPL #77

Closed
sloede opened this issue Jul 20, 2021 · 3 comments
Closed

Tab completion not working in REPL #77

sloede opened this issue Jul 20, 2021 · 3 comments

Comments

@sloede
Copy link

sloede commented Jul 20, 2021

Using your fork https://github.com/krrutkow/P4est.jl/tree/update-to-cbinding-v1 I tried to use P4est.jl on the REPL. Even though I faintly recall it used to work at some point in the past, tab-completion in the REPL is not working anymore, at least for me:

julia> using P4est

julia> conn_ptr = p4est_connectivity_new_periodic()
CBinding.Cptr{var"c\"struct p4est_connectivity\""}(0x000000000441d5e0)

julia> propertynames(conn_ptr)
(:num_vertices, :num_trees, :num_corners, :vertices, :tree_to_vertex, :tree_attr_bytes, :tree_to_attr, :tree_to_tree, :tree_to_face, :tree_to_corner, :ctt_offset, :corner_to_tree, :corner_to_corner)

Thus although propertynames seems to return the correct list of properties, when I enter conn_ptr. and hit Tab, it just gives me a list of hundreds of symbols. Is this a known issue?

@krrutkow
Copy link
Member

This worked in pre-v1 code because Caccessor was a struct type wrapping a pointer. This no longer works due to JuliaLang/julia#41652 and the fact that pointers (non-structs) are used directly now. There is at least one slightly risky workaround that fixes this anyways.

@sloede
Copy link
Author

sloede commented Jul 20, 2021

OK, thanks for letting me know. I'll keep tabs on JuliaLang/julia#41652 to see what happens.

@krrutkow
Copy link
Member

A fix for JuliaLang/julia#41652 has been merged into Julia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants