-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix ?(#TAB method search name exploration #52555
Merged
aviatesk
merged 2 commits into
JuliaLang:master
from
Liozou:fixmethodsearchnameexploration
Dec 20, 2023
Merged
Fix ?(#TAB method search name exploration #52555
aviatesk
merged 2 commits into
JuliaLang:master
from
Liozou:fixmethodsearchnameexploration
Dec 20, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aviatesk
reviewed
Dec 20, 2023
Co-authored-by: Shuhei Kadowaki <[email protected]>
Thanks for fixing this! |
aviatesk
approved these changes
Dec 20, 2023
With pleasure! Should it be backported to 1.10? |
Yeah, I think this is eligible for backport. Still, it might be wise to proceed in a manner that doesn't hold up the release, like aiming for 1.10.1 instead of 1.10.0. |
KristofferC
pushed a commit
that referenced
this pull request
Dec 23, 2023
Fix #52551. This PR ensures that a `SomeModule.?(...#TAB` completion can only suggests method `foo` such that `SomeModule.foo` exists (by checking `isdefined(SomeModule, :foo)`). This is equivalent, I believe, to the initial implementation of #38791, less the bug. Now that we have #51345, we may want to relax the above condition somewhat to include public names present in modules loaded into `SomeModule`, so that, for instance, a direct completion of `?(` would include `@assume_effects`. This could be good for method exploration because even though typing `@assume_effects` with no qualification in `Main` will error, the error now includes the helpful message ``` Hint: a global variable of this name also exists in Base. ``` But that can wait for a later PR anyway, this one is just the bugfix. The bug mentioned at #52551 (comment) dates from the initial #38791 so this could be backported as far back as v1.8. --------- Co-authored-by: Shuhei Kadowaki <[email protected]> (cherry picked from commit a987f56)
Removing the backport label. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #52551.
This PR ensures that a
SomeModule.?(...#TAB
completion can only suggests methodfoo
such thatSomeModule.foo
exists (by checkingisdefined(SomeModule, :foo)
). This is equivalent, I believe, to the initial implementation of #38791, less the bug.Now that we have #51345, we may want to relax the above condition somewhat to include public names present in modules loaded into
SomeModule
, so that, for instance, a direct completion of?(
would include@assume_effects
. This could be good for method exploration because even though typing@assume_effects
with no qualification inMain
will error, the error now includes the helpful messageBut that can wait for a later PR anyway, this one is just the bugfix.
The bug mentioned at #52551 (comment) dates from the initial #38791 so this could be backported as far back as v1.8.