-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Remove the hasmethod
check
#1095
Comments
I though as of JuliaLang/julia#48639, it should be done at compile time. |
Yes, but it has been reported not to happen apparently. |
@vtjnash any idea why this would happen? |
kwarg matching is a runtime feature, so it doesn't have a compile time component |
@oscardssmith, in which SciMLBase version was this new way of calling |
https://github.com/SciML/SciMLBase.jl/releases/tag/v2.53.0 is the scimlbase part, but it's actually a downstream requirement on SciML/OrdinaryDiffEq.jl#2467 existing (and figuring out what OrdinaryDiffEqCore version that's a part of is a doozy due to the issues with the tooling 😅) |
can't we at this point just delete the hasmethod check since it only exists for compatibility with old versions of OrdinaryDiffEq? |
I deleted all |
Wow, that is very weird how another package extends a method with a new keyword like that. |
Agreed, we really need JuliaLang/julia#55516. OrdinaryDiffEq and DiffEqBase are split mostly to lesson the load times of Sundials.jl and not for any real code separation reason. |
It is still kind of weird how one function takes different kwargs depending on the integrator... |
All of the integrators have been updated so this interface now just has kwargs for all current releases. |
I was looking at https://github.com/SciML/SciMLBase.jl/blob/17f45482531981c25274dd9f0a7d8b934bc0a50b/src/integrator_interface.jl#L323-L335 which does not have a kwarg, or? |
It's missing the kwarg. We need to update the interface spec, but since you can't really test interfaces well downstream that's a bug that just hadn't been caught yet. We need some language tooling to help here 😅. |
The
hasmethod
check inDiffEqBase.jl/src/callbacks.jl
Line 622 in 01fd853
As far as I understand, this is some kind of compatibility check so moving that to top-level would be preferable.
The text was updated successfully, but these errors were encountered: