-
Notifications
You must be signed in to change notification settings - Fork 26
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
Namespace clash with Debug.jl #12
Comments
There is also a clash with Base.info, although strangely it only occurs if you have used info prior to bringing in Logging
Note that the info() call does not output the Logging format - it has used the Base version
|
Thanks, and thanks for bumping this issue. Both of these are fixable. |
Hi @kmsquire what's the best way of resolving the name clash with |
I'll have to take a closer look when I get to a computer. When this was discussed on the mailing list ages ago, there was some question of whether or not this functionality belonged in Base. I'm wondering if basic logging functions shouldn't all be available there, with more advanced logging relegated to packages. Cc: @StefanKarpinski |
This produces a warning when the module is loaded. It would be nice in situations like this to silence the warning. Fixes part of #12.
@aviks, @johngrogan, I finally pushed a fix for the clash with Because At any rate, the current solution (dba0e9f) is to allow the user to explicitly ask that I would be open to hearing arguments to make overriding the default.
(I don't remember what I was thinking above when I said that both of these issues was fixable...) Feedback welcome! Cheers! |
(Sorry, 92e2506 is the commit with the latest functional changes.) |
That sounds like a series of gotcha's that users will have to be aware of. Particularly since any of these invocations can be in imported libraries, rather than in the user's own code. If you change the order in which you import stuff, you might loose all info logging... I think overriding as the default will make things slightly easier. If you are using logging, then we effectively redirect all output through the logging system. Which seems reasonable. However, this is still problematic if you don't know anything about Maybe we should just change the API, and just use |
That would work as well. @aviks, would you be interested in taking over this package? The other thought I had was to see if there was interest in having it be part of the JuliaLang organization, but it might be good to settle this issue first. (Or it might be good to move it and get more feedback...) |
Thanks for the update.
I agree with this - I typically would use the fully qualified function / macro names now. |
If you give me write access to this repository, that might be good enough, unless you want to completely dissociate yourself from this. |
Done! I don't mind either way--it's just that I've found minimal time to work on Julia recently, so I've been rather slow at getting to issues. |
BTW, if you have time, feel free to change the override behavior above to be the default. Regarding |
Thanks! |
There's a namespace clash with Debug.jl (there may already have been before):
The text was updated successfully, but these errors were encountered: