Skip to content

Precompilation fails since LoweredCodeUtils 3.2.0 release #906

@danielwe

Description

@danielwe

LoweredCodeUtils 3.2.0 no longer defines trackedheads: JuliaDebug/LoweredCodeUtils.jl#124. This name is explicitly imported by Revise:

using LoweredCodeUtils: next_or_nothing!, trackedheads, callee_matches

Consequently, Revise won't precompile or load.

(@v1.10) pkg> activate --temp
  Activating new project at `/tmp/jl_dZ5RpI`

(jl_dZ5RpI) pkg> add Revise
   Resolving package versions...
    Updating `/tmp/jl_dZ5RpI/Project.toml`
  [295af30f] + Revise v3.7.3
    Updating `/tmp/jl_dZ5RpI/Manifest.toml`
[...]
  [6f1432cf] + LoweredCodeUtils v3.2.0
[...]
  ✗ Revise
Precompiling packages finished.
  0 dependencies successfully precompiled in 3 seconds. 5 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

Revise

Failed to precompile Revise [295af30f-e4ad-537b-8983-00126c2a3abe] to "/home/danielwe/.julia/compiled/v1.10/Revise/jl_fykj2J".
ERROR: LoadError: UndefVarError: `trackedheads` not defined
Stacktrace:
 [1] include
   @ ./Base.jl:495 [inlined]
 [2] 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:2292
 [3] top-level scope
   @ stdin:4
in expression starting at /home/danielwe/.julia/packages/Revise/mLfYT/src/Revise.jl:1
in expression starting at stdin:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions