Hi,
I posted a few days ago because I was having trouble with the package system, I resolved the problem then, but now I have an eerily similar problem and I can’t fix it.
I have a package that I’ve been developing, and all was well. I was able to add packages (FFTW, LinearAlgebra, Memoization) to my project.toml and it was still working.
Just now, I added BandedMatrices and now my package is completely broken and unusable.
How do I fix it? Here are some interactions:
sebastienloisel@macbook-pro julia % julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.3 (2023-08-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.9) pkg> activate FastSpectralMethod/
Activating project at `~/Dropbox/2023/Spectral Barrier Method/julia/FastSpectralMethod`
(FastSpectralMethod) pkg> add BandedMatrices
Resolving package versions...
Updating `~/Dropbox/2023/Spectral Barrier Method/julia/FastSpectralMethod/Project.toml`
[aae01518] + BandedMatrices v1.1.0
Updating `~/Dropbox/2023/Spectral Barrier Method/julia/FastSpectralMethod/Manifest.toml`
[4c555306] + ArrayLayouts v1.4.2
[aae01518] + BandedMatrices v1.1.0
[1a297f60] + FillArrays v1.6.1
[aea7be01] + PrecompileTools v1.2.0
sebastienloisel@macbook-pro julia % julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.9.3 (2023-08-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using FastSpectralMethod
[ Info: Precompiling FastSpectralMethod [1892a1d0-fd6d-478f-b818-a3c0730c2c0b]
ERROR: LoadError: ArgumentError: Package FastSpectralMethod does not have BandedMatrix in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
to ensure all packages in the environment are installed.
- Or, if you have FastSpectralMethod checked out for development and have
added BandedMatrix as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with FastSpectralMethod
Stacktrace:
[1] macro expansion
@ ./loading.jl:1634 [inlined]
[2] macro expansion
@ ./lock.jl:267 [inlined]
[3] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1611
[4] include
@ ./Base.jl:457 [inlined]
[5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2049
[6] top-level scope
@ stdin:3
in expression starting at /Users/sebastienloisel/Dropbox/2023/Spectral Barrier Method/julia/FastSpectralMethod/src/FastSpectralMethod.jl:1
in expression starting at stdin:3
ERROR: Failed to precompile FastSpectralMethod [1892a1d0-fd6d-478f-b818-a3c0730c2c0b] to "/Users/sebastienloisel/.julia/compiled/v1.9/FastSpectralMethod/jl_ZnrZXe".
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:2300
[3] compilecache
@ ./loading.jl:2167 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:1660
[6] macro expansion
@ ./loading.jl:1648 [inlined]
[7] macro expansion
@ ./lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1611