-
-
Notifications
You must be signed in to change notification settings - Fork 285
Description
In the following, I've freshly cloned the repo CellMLToolkit.jl. I proceed to ]up which generates a Manifest.toml.
At the end of ]uping, it says:
Precompiling project...
1 dependency successfully precompiled in 9 seconds (139 already precompiled)
To verify that Pkg is lying, I ]precompile which indeed shows that ]up is lying.
Then, ]precompile is also lying by doing a using, which shows that CellMLToolkit is not precompiled.
Maybe I don't understand Pkg well enough to get what is happening, but maybe some disambiguation for the usage of precompiling project is needed.
I'm guessing from https://pkgdocs.julialang.org/dev/environments/#Precompiling-a-project, it means that the actual project package (in this case CellMLToolkit), doesn't get precompiled in up or precompile, but only on using. That sort of makes sense to me. If this is the case, then I think the only problem is up, as we get multiple copies of the Precompiling project message.
Sorry for rant, but it's a little frustrating when I don't know which commands are going to make me wait a while. In this case it's short, but some packages will cause longer waits.
#2461 seems like the same issue, perhaps it's still unresolved.
(CellMLToolkit) pkg> up
Updating registry at `~/.julia/registries/General.toml`
Updating `~/.julia/dev/CellMLToolkit.jl/Project.toml`
... [deps list removed, not relevant]
Precompiling project...
1 dependency successfully precompiled in 9 seconds (139 already precompiled)
(CellMLToolkit) pkg> precompile
Precompiling project...
1 dependency successfully precompiled in 8 seconds (139 already precompiled)
julia> using CellMLToolkit
[ Info: Precompiling CellMLToolkit [03cb29e0-1ef4-4721-aa24-cf58a006576f]in temp env:
(jl_ZhDXVe) pkg> add CellMLToolkit
[omitted]
Precompiling project...
1 dependency successfully precompiled in 8 seconds (139 already precompiled)
(jl_ZhDXVe) pkg> precompile
Precompiling project...
1 dependency successfully precompiled in 7 seconds (139 already precompiled)
julia> using CellMLToolkit
[ Info: Precompiling CellMLToolkit [03cb29e0-1ef4-4721-aa24-cf58a006576f]Julia Version 1.7.0-rc1
Commit 9eade6195e (2021-09-12 06:45 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin20.5.0)
CPU: Apple M1
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
Environment:
JULIA_NUM_THREADS = 4
JULIA_EDITOR = code
JULIA_PKG_SERVER =
Project CellMLToolkit v2.6.0
Status `~/.julia/dev/CellMLToolkit.jl/Project.toml`
[8f5d6c58] EzXML v1.1.0
[abcecc63] MathML v0.1.9
[c03570c3] Memoize v0.4.4
[961ee093] ModelingToolkit v6.6.0
[efcf1570] Setfield v0.7.1
[d1185830] SymbolicUtils v0.16.0
[9a3f8284] Random
[8dfed614] Test