JuliaPluto / JuliaPluto/ExpressionExplorer.jl

`PlutoDependencyExplorer` not understanding importing local modules

Open
#25 6 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Julia
Stars
18
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Here's an MWE:
```julia
using PlutoDependencyExplorer
const PDE = PlutoDependencyExplorer;
struct SimpleCell <: PDE.AbstractCell
code
end
```
```julia
julia> let notebook = SimpleCell.(["mod = expr", "using .mod"])
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
SimpleCell[]
```
Ideally this should return
```julia
2-element Vector{SimpleCell}:
SimpleCell("mod = expr")
SimpleCell("using .mod")
```
This is manifesting in errors in Pluto when I try to import a locally defined module.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.