Skip to content

v0.11 breaks precompilation of depent packages #51

@marius311

Description

@marius311

If your package Foo depends on PlotlyLight then because of

ed2bc3c#diff-607aa798775b3d7a27ebf3f1388885aa1700f02024b6e97bf56a157fadd08326R15-R21

you get

Failed to precompile Foo [9ce808a0-219e-4859-ab2b-09515ef07fa1] to "/Users/marius/.julia/compiled/v1.11/Foo/jl_TkvSg1".
ERROR: LoadError: InitError: Evaluation into the closed module `PlotlyLight` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `PlotlyLight` with `eval` during precompilation - don't do this.
Stacktrace:
  [1] eval
    @ ./boot.jl:430 [inlined]
  [2] __init__()
    @ PlotlyLight ~/.julia/packages/PlotlyLight/5gUUf/src/PlotlyLight.jl:19

I think used to be a warning (I'm not sure) but it certainly appears to be an error in Julia 1.11. This seems related too: JuliaLang/julia#39648

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions