-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
get_assignees tries to read macro input #17
Comments
Hey! The function But I also get the warning when computing assignees the usual way: julia> ExpressionExplorer.compute_reactive_node(:(p = @ivp(X' = AX, X(0) ∈ X0))).definitions
┌ Warning: unknown use of `=`. Assignee is unrecognised.
│ ex = :(X')
└ @ ExpressionExplorer ~/Documents/ExpressionExplorer.jl/src/explore.jl:177
Set{Symbol} with 1 element:
:p The warning is safe to ignore (although I am not sure why you're seeing it, @Pangoraw might know), because contents of macros are always ignored: julia> ExpressionExplorer.compute_reactive_node(:(p = @ivp(X = AX, X(0) ∈ X0))).definitions
Set{Symbol} with 1 element:
:p If you want macros to be handled, you have the option to macroexpand before using ExpressionExplorer: https://github.com/JuliaPluto/ExpressionExplorer.jl#macro-calls Let me know if this helps! |
I forgot to mention that I do not use this package directly but saw the warning in Pluto, and narrowed it down to land here. |
Alright! Try to always write down what steps you took to get to an issue 👍 |
I get hit by this warning:
ExpressionExplorer.jl/src/explore.jl
Line 177 in 4272b28
The corresponding expression is:
I presume this means that the parser tries to read
X' = AX
. But this is inside a macro (fromMathematicalSystems
), which handles this expression already and returns a result forp
. So I think the parser should just let the macro do its job and parse the result instead. Is there a way to say "please execute the macro first"?The text was updated successfully, but these errors were encountered: