Pluto.jl icon indicating copy to clipboard operation
Pluto.jl copied to clipboard

precompilation fails on Julia v1.12: "FieldError: type Method has no field `deleted_world`"

Open nsajko opened this issue 5 months ago • 5 comments
trafficstars

julia> using Pluto
Info Given Pluto was explicitly requested, output will be shown live 
ERROR: LoadError: FieldError: type Method has no field `deleted_world`, available fields: `name`, `module`, `file`, `line`, `dispatch_status`, `primary_world`, `sig`, `specializations`, `speckeyset`, `slot_syms`, `external_mt`, `source`, `debuginfo`, `unspecialized`, `generator`, `roots`, `root_blocks`, `nroots_sysimg`, `ccallable`, `invokes`, `recursion_relation`, `nargs`, `called`, `nospecialize`, `nkw`, `isva`, `is_for_opaque_closure`, `nospecializeinfer`, `did_scan_source`, `constprop`, `max_varargs`, `purity`
Stacktrace:
  [1] getproperty(x::Method, f::Symbol)
    @ Base ./Base_compiler.jl:54
  [2] top-level scope
    @ ~/.julia/packages/Pluto/endwR/src/runner/PlutoRunner/src/evaluation/deleting globals.jl:203
  [3] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:304
  [4] top-level scope
    @ ~/.julia/packages/Pluto/endwR/src/runner/PlutoRunner/src/PlutoRunner.jl:63
  [5] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:304
  [6] top-level scope
    @ ~/.julia/packages/Pluto/endwR/src/Pluto.jl:52
  [7] include(mod::Module, _path::String)
    @ Base ./Base.jl:303
  [8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2991
  [9] top-level scope
    @ stdin:5
 [10] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [11] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2837
 [12] include_string
    @ ./loading.jl:2847 [inlined]
 [13] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:319
 [14] _start()
    @ Base ./client.jl:554
in expression starting at /home/nsajko/.julia/packages/Pluto/endwR/src/runner/PlutoRunner/src/evaluation/deleting globals.jl:203
in expression starting at /home/nsajko/.julia/packages/Pluto/endwR/src/runner/PlutoRunner/src/PlutoRunner.jl:1
in expression starting at /home/nsajko/.julia/packages/Pluto/endwR/src/Pluto.jl:1
in expression starting at stdin:5
  ✗ Pluto

The line in question:

https://github.com/fonsp/Pluto.jl/blob/41184502e3f595eaccb934fda458e1cca3dba1ba/src/runner/PlutoRunner/src/evaluation/deleting%20globals.jl#L203-L203

nsajko avatar Jun 07 '25 18:06 nsajko