Revise.jl icon indicating copy to clipboard operation
Revise.jl copied to clipboard

`juliadir` should probably not be cached during compile time

Open KristofferC opened this issue 1 year ago • 1 comments

If you use another Julia installation that is compatible with the precompile file it will point to the wrong place:

julia> using Revise

julia> Sys.BINDIR
"/Users/kristoffercarlsson/Downloads/gitrepo/julia-1.10.4/bin"

# the Julia that Revise got compiled with:
julia> Revise.juliadir
"/Users/kristoffercarlsson/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia"

KristofferC avatar Aug 01 '24 08:08 KristofferC

Good thought. I'm tempted to fix this by requiring Julia 1.10 and using typed globals, rather than making a Ref which changes the type of this variable. It's internal, but I wouldn't be shocked if people are depending on it regardless (it has a docstring).

timholy avatar Sep 24 '24 10:09 timholy