The following came up in the context of IJulia; @stevengj suggested to post it here.
Building packages with Julia 1.10.0-rc1 fails on my machine unless I start Julia with --startup-file=no
. My startup.jl contains the line using InteractiveUtils
(because I use InteractiveUtils.define_editor
). When building IJulia (or installing it from scratch), I get the error message
(@v1.10) pkg> st
Status `~/.julia/environments/v1.10/Project.toml` (empty project)
(@v1.10) pkg> add IJulia
Resolving package versions...
Installed IJulia β v1.24.2
Installed Conda ββ v1.9.1
Updating `~/.julia/environments/v1.10/Project.toml`
[7073ff75] + IJulia v1.24.2
Updating `~/.julia/environments/v1.10/Manifest.toml`
[...]
Building Conda ββ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/8c86e48c0db1564a1d49548d3515ced5d604c408/build.log`
ERROR: Error building `Conda`:
ERROR: LoadError: ArgumentError: Package InteractiveUtils not found in current path.
- Run `import Pkg; Pkg.add("InteractiveUtils")` to install the InteractiveUtils package.
Stacktrace:
[1] macro expansion
@ Base ./loading.jl:1766 [inlined]
[2] macro expansion
@ Base ./lock.jl:267 [inlined]
[3] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:1747
[4] #invoke_in_world#3
@ Base ./essentials.jl:921 [inlined]
[5] invoke_in_world
@ Base ./essentials.jl:918 [inlined]
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1740
in expression starting at ~/.julia/config/startup.jl:3
unless startup.jl is disabled. If I instead add Gurobi.jl, I get an analogous error message when Gurobi is built. Adding InteractiveUtils manually to the environment doesnβt change anything.
The error happens even with an empty, temporary environment. It does not occur with Julia 1.9.3. Could it be considered a bug in Julia 1.10.0-rc1?