This happens when I import Revise, but I suspect Revise is the victim here. How can I track down the culprit?
$ julia --startup-file=no
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.8.2 (2022-09-29)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.8) pkg> st Revise
Status `~/.julia/environments/v1.8/Project.toml`
⌃ [295af30f] Revise v1.1.1
Info Packages marked with ⌃ have new versions available and may be upgradable.
julia> try
using Revise
catch
for (exc, bt) in current_exceptions()
showerror(stdout, exc, bt)
println(stdout)
end
end
InitError: AssertionError: header of cache file appears to be corrupt
Stacktrace:
[1] parse_cache_header(f::IOStream)
@ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:43
[2] parse_cache_header(cachefile::String)
@ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:51
[3] parse_pkg_files(id::Base.PkgId)
@ Revise ~/.julia/packages/Revise/AFtTt/src/pkgs.jl:78
[4] __init__()
@ Revise ~/.julia/packages/Revise/AFtTt/src/Revise.jl:865
[5] _include_from_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})
@ Base ./loading.jl:831
[6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt64)
@ Base ./loading.jl:1039
[7] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1315
[8] _require_prelocked(uuidkey::Base.PkgId)
@ Base ./loading.jl:1200
[9] macro expansion
@ ./loading.jl:1180 [inlined]
[10] macro expansion
@ ./lock.jl:223 [inlined]
[11] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144
[12] top-level scope
@ REPL[2]:2
[13] eval
@ ./boot.jl:368 [inlined]
[14] eval_user_input(ast::Any, backend::REPL.REPLBackend)
@ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:151
[15] repl_backend_loop(backend::REPL.REPLBackend)
@ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:247
[16] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
@ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:232
[17] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
@ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:369
[18] run_repl(repl::REPL.AbstractREPL, consumer::Any)
@ REPL /usr/local/stow/julia-1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:355
[19] (::Base.var"#967#969"{Bool, Bool, Bool})(REPL::Module)
@ Base ./client.jl:419
[20] #invokelatest#2
@ ./essentials.jl:729 [inlined]
[21] invokelatest
@ ./essentials.jl:726 [inlined]
[22] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
@ Base ./client.jl:404
[23] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:318
[24] _start()
@ Base ./client.jl:522
during initialization of module Revise