-
-
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
PlutoDependencyExplorer
not understanding importing local modules
#25
Comments
Thanks! Is this also an issue in Pluto? |
julia> order.errable
Dict{SimpleCell, PlutoDependencyExplorer.ReactivityError} with 2 entries:
SimpleCell("using .mod") => MultipleDefinitionsError(Set([:mod]))
SimpleCell("mod = expr") => MultipleDefinitionsError(Set([:mod])) |
Ah right, sorry I should have given the example without the name clashes: julia> let notebook = SimpleCell.(["mod = expr", "using .mod: x"])
empty_topology = PDE.NotebookTopology{SimpleCell}();
topology = PDE.updated_topology(
empty_topology,
notebook, notebook;
get_code_str = c -> c.code,
get_code_expr = c -> Meta.parse(c.code))
order = PDE.topological_order(topology);
order.runnable
end
2-element Vector{SimpleCell}:
SimpleCell("using .mod: x")
SimpleCell("mod = expr") This makes it so that Pluto tries to import And yes, this is also an issue in Pluto, I just figured that since it was due to the dependancy tracker, that I should open the issue here, but I can move the issue there if you prefer. |
(This is an issue with ExpressionExplorer) |
Let's implement it, and see if it breaks anything :) |
Here's an MWE:
Ideally this should return
This is manifesting in errors in Pluto when I try to import a locally defined module.
The text was updated successfully, but these errors were encountered: