-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Fix tab completion in Logging for functions from CoreLogging #32473
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
Conversation
CoreLogging is an implementation detail, but the fact that Logging imports things from there breaks tab completion for the parts of the public API which aren't re-exported. Fix this by explicitly creating bindings for each imported symbol.
006151b
to
50e3eb2
Compare
Tests added. |
Any thoughts on who might review? |
Yes, I'm doing this for the same reasons as Pkg (I think). It's a minor change though there are alternatives such as just exporting these parts of the public API. @oxinabox any thoughts? |
On the one hand this is gross, and we should just fix tab-completion. On the other hand, indeed I do indeed only access these things via |
Fixing tab completion "properly" depends on having the right information in the runtime about the desired visibility of symbols. One way to give this information is just to create the bindings explicitly, as I've done here. It's gross but in a reasonably maintainable kind of way ;-) The root of the issue is in the flags on Lines 456 to 466 in 61a0b04
From reading Perhaps this is a reasonable alternative; using |
What about |
It doesn't export Anyway, this will work for now, cheers for just going ahead with the merge. |
We now have `public` to indicate public symbols, which addresses the original reason this hack was introduced. Semantically reverts #32473.
We now have `public` to indicate public symbols, which addresses the original reason this hack was introduced. Semantically reverts #32473.
CoreLogging is an implementation detail, but the fact that Logging
imports things from there breaks tab completion of
Logging.<tab>
even though thesesymbols are exported again. Fix this by explicitly creating bindings for
each imported symbol.