-
Notifications
You must be signed in to change notification settings - Fork 111
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
Revise and DispatchDoctor #820
Comments
@timholy does Revise work by mapping |
I think it's due to #634? Roughly, function inner(ex)
new_ex, _ = _stabilize_all(ex, DownwardMetadata(); kws...)
return new_ex
end and insert include($(inner), "file.jl") This recursively applies |
@timholy friendly ping :) |
@thofma see #634 (comment). I feel like Revise.jl needs very deep changes for this to happen. Therefore I think it would be better we just find a way to work around this limitation rather than fix it at the source. |
I have been playing around with https://github.com/MilesCranmer/DispatchDoctor.jl/ (v0.4.2) and found it quite useful. It also seems to work well with
Revise.includet
:If I then change test.jl, i.e. change
f
from unstable -> stable, things are properly revised (even changingf
from unstable -> unstable works.)But it does not seem to work well within a module. If I have a module with the following content:
Now if I do
using Revise, A
etc, and changef
from unstable -> unstable, the error is not reported anymore.As far as I understand, DispatchDoctor.jl replaces
A.include
with https://github.com/MilesCranmer/DispatchDoctor.jl/blob/569aac2fc3a904aa6e499a6a0b406aaa3a3ed849/src/stabilization.jl#L196-L205, and it seems this does not work properly in connection with Revise.I am not sure how realistic it is to have both packages work nicely together. So feel free to close this issue, if it is technically not possible.
CC: @MilesCranmer
The text was updated successfully, but these errors were encountered: