You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which shows that the macro generates full_cache(var"#329#c"::OrdinaryDiffEq.RK_ALGCache), with RK_ALGCache defined in the OrdinaryDiffEq namespace, and not in Main (where the example is run), leading to the UndefVarError.
The text was updated successfully, but these errors were encountered:
Describe the bug 🐞
@cache
macro generates code with OrdinaryDiffEq namespace.Expected behavior
No error on using
@cache
on our own structs.Minimal Reproducible Example 👇
Following the documentation on adding algorithms, we run:
Error & Stacktrace⚠️
Which produces the following error:
Additional context
Macroexpand to the rescue:
Which shows that the macro generates
full_cache(var"#329#c"::OrdinaryDiffEq.RK_ALGCache)
, withRK_ALGCache
defined in theOrdinaryDiffEq
namespace, and not inMain
(where the example is run), leading to theUndefVarError
.The text was updated successfully, but these errors were encountered: