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

Autocomplete nested Dicts #9

Closed
disberd opened this issue Jun 14, 2021 · 3 comments
Closed

Autocomplete nested Dicts #9

disberd opened this issue Jun 14, 2021 · 3 comments

Comments

@disberd
Copy link

disberd commented Jun 14, 2021

I noticed that first level keys of Dictionaries are nicely handled by FuzzyCompletions but when trying to autocomplete keys at higher levels of nested dicts the autocompletion doesn't work anymore.

I have noticed that nested autocompletion is also an issue with standard REPL completions so it might be a design decision, but would it be feasible to have nested dict completion functionality?

@aviatesk
Copy link
Member

I think it's by design, since to access an inner dictionary, we first evaluate getindex(::AbstractDict, key) and it's just a generic function and involves arbitrary sub effects, and thus not might be safe to be called within completion pipeline.

@disberd
Copy link
Author

disberd commented Jun 14, 2021

Ok thanks for the clarification, I suppose this issue might be closed then

@disberd disberd closed this as completed Jun 14, 2021
@pfitzseb
Copy link
Member

Technically evaluating propertynames could have side-effects as well :P But yes, I agree with the reasoning.

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

3 participants