-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update dependency and fix deprecation #43
Conversation
Any hope on merging this? I tested @devmotion PR and this worked to fix my turing logging woes after he isolated the issue to this package. @devmotion Not sure if it matters, but when I did my test it did downgrade the The output here was
I tried to manually update those with a |
It's adding an old version of LeftChildRightSiblingTrees in your setup that is not compatible with AbstractTrees 0.4. You can run |
Thanks. The relevant lines seem to be
So maybe if this
|
This PR does support LCRSTrees 0.2. The problem is that you did not install the PR but the default branch in my fork: (HMCExamples) pkg> add https://github.com/devmotion/TerminalLoggers.jl#037403c You should be able to install the PR with e.g. |
Made the change and I think we are in business. Thanks for your help. Will switch to the official version after this is merged. |
Bump 🙂 @c42f, could you review the PR? Or suggest another reviewer? |
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.
Looks pretty good, thanks, sorry for the delay!
I feel like we don't need the overload of showvalue
here?
src/TerminalLogger.jl
Outdated
@eval begin | ||
showvalue(io, key, ex::Base.ExceptionStack) = Base.show_exception_stack(io, ex) | ||
end |
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.
I don't think this is necessary, show()
already works for ExceptionStack
?
It was intended that we have the small amount of extra decoration of show()
vs the internal function show_exception_stack
- an exception stack isn't necessarily an error per se. Eg, you can use
@info "we ignored a thing" current_exceptions()
BTW if this was kept you don't need the @eval
here because this is top level code.
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
=======================================
Coverage 95.28% 95.28%
=======================================
Files 4 4
Lines 318 318
=======================================
Hits 303 303
Misses 15 15
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I've taken the liberty of removing that small section with |
Thanks for this, should be released in 0.1.6: |
Thank you! |
I just noticed that TerminalLoggers holds back LeftChildRightSiblingTrees. This PR bumps the dependency and adds a CompatHelper setup to automate such updates in the future.
Moreover, when running the tests a deprecation warning turned up which I fixed. While doing that I came across JuliaLang/julia#29901 and adapted the package accordingly.