-
-
Notifications
You must be signed in to change notification settings - Fork 4
Fix Pack.@asdf references #30
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
Conversation
OK, no objection to keeping it as well. |
Thanks, your explanations were very interesting. But it does not seem possible for macros. # ╔═╡ 67c2e8fe-67d3-4757-b649-5de0d82735b5
import Pluto.PlutoRunner
# ╔═╡ cd07dcd1-bc1f-43b9-bc8c-9e9893ff89f3
PlutoRunner.bar = 1 # needs an existing name in the module
# ╔═╡ b8f2a0b2-b751-46c7-b676-431c5018e4e9
macro PlutoRunner.bar(x)
esc(x)
end yields
So I'm not sure f74002e is adequate now, |
Thanks, this is great! About your example – I think we would want to make this reactive: Package.@hello 123
But I'm pretty sure we would need some other changes in Pluto to support this. But for the correctness of ExpressionExplorer this is a nice change! And it fixes your issue, which one was it again? |
The issue was not reported per se, just discovered while working on fonsp/Pluto.jl#3263. By the way, the core of that Pluto issue is clear now; |
Using the
Pack.@asdf
example already present in tests (but only for symbol state, notReactiveNode
).Before
This sometimes broke reactivity in Pluto because the
:(import Pack)
cell definitions were:Pack
,which does not match the
Pack.@asdf
in references.With this PR
The Pluto tests pass with these changes (with EE dev'ed),
but please check thoroughly, as I'm very new to this stuff.