julia 2:1.11.0-1 fails to precompile and can't update
Description:
Upgrading julia from 2:1.10.5-1 to 2:1.11.0-1 from Archlinux pacman results in precompilation errors, then packages can't be updated, package manager isn't working,...
I don't think this is an upstream issue, it may be a problem with the repo package (?), it probably works if you upgrade "manually" or using juliaup, although I have not tried. Sorry if I am mistaken about this assumption.
I did try to install julia "from scratch" by deleting the .julia directory and removing julia with pacman -Rs, and reinstalling, but the issue persists.
This is what I get when I try to run julia in the new version.
julia
[ Info: Precompiling InteractiveUtils [b77e0a4c-d291-57a0-90e8-8db25a27a240] (cache misses: target mismatch (1), mismatched flags (1))
[ Info: Precompiling REPL [3fa0cd96-eef1-5676-8a61-b3b8758bbffb] (cache misses: target mismatch (1), mismatched flags (1))
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.11.0 (2024-10-07)
_/ |\__'_|_|_|\__'_| |
|__/ |
julia>
Then when I try to access the package manager I get this:
Stacktrace:
[1] #invoke_in_world#3
@ ./essentials.jl:1088 [inlined]
[2] invoke_in_world
@ ./essentials.jl:1085 [inlined]
[3] _require_prelocked
@ ./loading.jl:2287 [inlined]
[4] _require_prelocked
@ ./loading.jl:2286 [inlined]
[5] macro expansion
@ ./loading.jl:2587 [inlined]
[6] macro expansion
@ ./lock.jl:273 [inlined]
[7] require_stdlib(package_uuidkey::Base.PkgId, ext::String)
@ Base ./loading.jl:2542
[8] macro expansion
@ /usr/share/julia/stdlib/v1.11/REPL/src/Pkg_beforeload.jl:8 [inlined]
[9] macro expansion
@ ./lock.jl:273 [inlined]
[10] load_pkg()
@ REPL /usr/share/julia/stdlib/v1.11/REPL/src/Pkg_beforeload.jl:7
[11] (::REPL.var"#119#137"{REPL.LineEdit.MIState, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ REPL /usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:1233
┌ Error: Error in the keymap
│ exception =
│ ArgumentError: Package REPLExt [e5eb5ef1-03cf-53a7-ae1d-5a66b08e832b] is required but does not seem to be installed:
│ - Run `Pkg.instantiate()` to install all recorded dependencies.
│
│ Stacktrace:
│ [1] #invoke_in_world#3
│ @ ./essentials.jl:1088 [inlined]
│ [2] invoke_in_world
│ @ ./essentials.jl:1085 [inlined]
│ [3] _require_prelocked
│ @ ./loading.jl:2287 [inlined]
│ [4] _require_prelocked
│ @ ./loading.jl:2286 [inlined]
│ [5] macro expansion
│ @ ./loading.jl:2587 [inlined]
│ [6] macro expansion
│ @ ./lock.jl:273 [inlined]
│ [7] require_stdlib(package_uuidkey::Base.PkgId, ext::String)
│ @ Base ./loading.jl:2542
│ [8] macro expansion
│ @ /usr/share/julia/stdlib/v1.11/REPL/src/Pkg_beforeload.jl:8 [inlined]
│ [9] macro expansion
│ @ ./lock.jl:273 [inlined]
│ [10] load_pkg()
│ @ REPL /usr/share/julia/stdlib/v1.11/REPL/src/Pkg_beforeload.jl:7
│ [11] (::REPL.var"#109#127"{REPL.LineEditREPL})(s::REPL.LineEdit.MIState)
│ @ REPL /usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:1138
│ [12] on_enter(s::REPL.LineEdit.MIState)
│ @ REPL.LineEdit /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2314
│ [13] (::REPL.LineEdit.var"#120#176")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any})
│ @ REPL.LineEdit /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2464
│ [14] #invokelatest#2
│ @ ./essentials.jl:1054 [inlined]
│ [15] invokelatest
│ @ ./essentials.jl:1051 [inlined]
│ [16] (::REPL.LineEdit.var"#30#31"{REPL.LineEdit.var"#120#176", String})(s::Any, p::Any)
│ @ REPL.LineEdit /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:1705
│ [17] macro expansion
│ @ /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2855 [inlined]
│ [18] macro expansion
│ @ ./lock.jl:273 [inlined]
│ [19] (::REPL.LineEdit.var"#282#284"{REPL.Terminals.TTYTerminal, REPL.LineEdit.ModalInterface, REPL.LineEdit.MIState, ReentrantLock, REPL.LineEdit.Prompt})()
│ @ REPL.LineEdit /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2845
└ @ REPL.LineEdit /usr/share/julia/stdlib/v1.11/REPL/src/LineEdit.jl:2857
julia>
Additional info:
- package version(s): 2:1.11.0-1
- config and/or log files: NA
- link to upstream bug report, if any: NA
Steps to reproduce:
- install julia with pacman -S julia
- run julia
- access package manager with "]" or run Pkg.instantiate()
To fix issue:
revert to julia 2:1.10.5-1