-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
REPL: know when to release the prefix context when completing #56322
REPL: know when to release the prefix context when completing #56322
Conversation
c762ca9
to
958c1f7
Compare
stdlib/REPL/test/replcompletions.jl
Outdated
|
||
# release context once past a qualified name | ||
for s in ("Base.@time TestInternalBinding", "Base.@time Base.@time TestInternalBinding", | ||
"Base.@time(TestInternalBinding", "@time(Base.@time TestInternalBinding") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be obvious, apologies, but does it also work in e.g Foo.Bar.@macro
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fcebd2d
to
6073643
Compare
@aviatesk while this appears to work, one worry I have with this is that this fix should somehow be earlier in the completion handling. Like, |
Thanks for looking into this! However examples at #55518 (comment) and #55518 (comment) are still broken:
|
I feel like REPLCompletions needs to be refactored around JuliaSyntax. There's too much string comparison and regex. |
@aviatesk #54858 feels quite breaking, unfortunately. Evidently there just weren't enough tests. In the context of Mose's examples
I don't even know how to approach fixing this, given how REPLCompletions is structured. I'm going to have to defer to you @aviatesk |
Superseded by #57767 |
Fixes #55518