fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

ERROR: Failed to precompile Pluto on Julia Nightly version 1.12.0-DEV #2847

Closed vivekkiran closed 3 months ago

vivekkiran commented 3 months ago

I am getting this error on Julia Nightly version 1.12.0-DEV on EndeavorOS/Arch Linux

 Info: Precompiling Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781] 
ERROR: LoadError: EOFError: read end of file
Stacktrace:
  [1] read_data(tar::Base.Process, file::IOBuffer; size::Int64, buf::Vector{UInt8}, tee::Base.DevNull)
    @ Tar ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Tar/src/extract.jl:715
  [2] read_data
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Tar/src/extract.jl:703 [inlined]
  [3] (::RegistryInstances.var"#12#15"{Base.Process, IOBuffer, Vector{UInt8}, Dict{String, String}})(hdr::Tar.Header, ::Vector{SubString{String}})
    @ RegistryInstances ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:202
  [4] read_tarball(callback::RegistryInstances.var"#12#15"{Base.Process, IOBuffer, Vector{UInt8}, Dict{String, String}}, predicate::RegistryInstances.var"#13#16", tar::Base.Process; buf::Vector{UInt8}, skeleton::Base.DevNull)
    @ Tar ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Tar/src/extract.jl:407
  [5] read_tarball
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/Tar/src/extract.jl:341 [inlined]
  [6] #11
    @ ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:200 [inlined]
  [7] open(::RegistryInstances.var"#11#14"{IOBuffer, Vector{UInt8}, Dict{String, String}}, ::Cmd; kwargs::@Kwargs{})
    @ Base ./process.jl:447
  [8] open
    @ ./process.jl:428 [inlined]
  [9] uncompress_registry(tar_gz::String)
    @ RegistryInstances ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:199
 [10] RegistryInstances.RegistryInstance(path::String)
    @ RegistryInstances ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:266
 [11] reachable_registries(; depots::Vector{String})
    @ RegistryInstances ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:372
 [12] reachable_registries
    @ ~/.julia/packages/RegistryInstances/QzJAw/src/registry_instance.jl:342 [inlined]
 [13] _get_registries()
    @ Pluto.PkgCompat ~/.julia/packages/Pluto/HYpFq/src/packages/PkgCompat.jl:170
 [14] top-level scope
    @ ~/.julia/packages/Pluto/HYpFq/src/packages/PkgCompat.jl:173
 [15] include(mod::Module, _path::String)
    @ Base ./Base.jl:559
 [16] include(x::String)
    @ Pluto ~/.julia/packages/Pluto/HYpFq/src/Pluto.jl:11
 [17] top-level scope
    @ ~/.julia/packages/Pluto/HYpFq/src/Pluto.jl:53
 [18] include
    @ ./Base.jl:559 [inlined]
 [19] 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:2679
 [20] top-level scope
    @ stdin:4
in expression starting at /home/vivek/.julia/packages/Pluto/HYpFq/src/packages/PkgCompat.jl:1
in expression starting at /home/vivek/.julia/packages/Pluto/HYpFq/src/Pluto.jl:1
in expression starting at stdin:4
ERROR: Failed to precompile Pluto [c3e4b0f8-55cb-11ea-2926-15256bba5781] to "/home/vivek/.julia/compiled/v1.12/Pluto/jl_cS1SRj".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{…})
    @ Base ./loading.jl:2837
  [3] (::Base.var"#1096#1097"{Base.PkgId})()
    @ Base ./loading.jl:2347
  [4] mkpidlock(f::Base.var"#1096#1097"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
  [5] #mkpidlock#6
    @ ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:88 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile ~/.julia/juliaup/julia-nightly/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:114
  [7] #invokelatest#2
    @ ./essentials.jl:1032 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1027 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1096#1097"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3441
 [10] maybe_cachefile_lock
    @ ./loading.jl:3438 [inlined]
 [11] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2303
 [12] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2175
 [13] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
 [15] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2166
 [16] macro expansion
    @ ./loading.jl:58 [inlined]
 [17] macro expansion
    @ ./lock.jl:17 [inlined]
 [18] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2063
 [19] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
 [20] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
 [21] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2056
Some type information was truncated. Use `show(err)` to see complete types.
Pangoraw commented 3 months ago

I believe this was fixed in https://github.com/fonsp/Pluto.jl/issues/2810, feel free to reopen if the issue is different.