JuliaPluto/Malt.jl

Evaluate imports first, other code second

Open

#76 geöffnet am 29. Apr. 2024

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (13 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (53 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

MWE:

import Pkg, Malt
p = Malt.Worker()
j = Pkg.PackageSpec(name="Malt")

Malt.remote_eval_fetch(p, quote
    import Pkg;
    @info $j
end)

ERROR: Remote exception from Malt.Worker on port 9219 with PID 416219:

KeyError: key Base.PkgId(Base.UUID("44cfe95a-1eb2-52ea-b672-e2afdf69b78f"), "Pkg") not found
Stacktrace:

This works perfectly in Julia 1.10.2 @savq Any idea what might be wrong here? I could also reproduce this with Distributed as well but for some reason the MWE with Distributed is working.

Contributor Guide