Skip to content

"header of cache file appears to be corrupt"-error should maybe remove the offending ji file and try again #37794

@KristofferC

Description

@KristofferC

I have a package that cannot be precompiled anymore on master. Maybe related to #37595?

julia> using Foo
ERROR: AssertionError: header of cache file appears to be corrupt
Stacktrace:
 [1] parse_cache_header(f::IOStream)
   @ Base ./loading.jl:1336
 [2] stale_cachefile(modpath::String, cachefile::String, cache::Base.TOMLCache)
   @ Base ./loading.jl:1441
 [3] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, cache::Base.TOMLCache)
   @ Base ./loading.jl:667
 [4] _require(pkg::Base.PkgId, cache::Base.TOMLCache)
   @ Base ./loading.jl:930
 [5] require(uuidkey::Base.PkgId, cache::Base.TOMLCache)
   @ Base ./loading.jl:846
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:833

It seems my Julia is kind of weird in general now so I'll rebuild from scratch and see if this is still a problem.

Edit: Works fine now after nuking Julia and rebuilding.

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