Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia 1.10 compatabilities #576

Closed
Jonas-a-Zimmermann opened this issue Feb 12, 2025 · 2 comments
Closed

Julia 1.10 compatabilities #576

Jonas-a-Zimmermann opened this issue Feb 12, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Jonas-a-Zimmermann
Copy link

Jonas-a-Zimmermann commented Feb 12, 2025

Using Julia version 1.10.6 or below leads to the Error:
3.321 ERROR: LoadError: LinearSolve has a malformed Project.toml, the extension package SparseArrays is not listed in [weakdeps] 3.674 Stacktrace: 3.674 [1] pkgerror(::String, ::Vararg{String}) 3.683 @ Pkg.Types /usr/local/julia/share/julia/stdlib/v1.10/Pkg/src/Types.jl:70 3.683 [2] status_ext_info(pkg::Pkg.Types.PackageSpec, env::Pkg.Types.EnvCache) ...
when trying to add the package.

Expected behavior

It should not crash.

Minimal Reproducible Example 👇
I used the following minimal Docker Container:

FROM julia:1.10.6
LABEL Name=juliadocker Version=0.0.1
RUN julia -e 'using Pkg; Pkg.activate("test_env"); Pkg.add("LinearSolve")'

Additional context

I guess that this is due to the moving from SparseArrays as a dependency to an extension in version 3.0

This Issue does not persist in Julia 1.11, or 1.10.8.

However in 1.10.8 we obtain circular dependencies when trying to precompile (see #573 )

 ┌ Warning: Circular dependency detected.
│ Precompilation will be skipped for dependencies in this cycle:
│  ┌ LinearSolve  LinearSolveSparseArraysExt
│  └─ LinearSolve  LinearSolveRecursiveArrayToolsExt

(run with the docker file

FROM julia:1.10.8
LABEL Name=juliadocker Version=0.0.1
RUN julia -e 'using Pkg; Pkg.activate("test_env"); Pkg.add("LinearSolve")'

and then triggering precompilation in a shell)

@Jonas-a-Zimmermann Jonas-a-Zimmermann added the bug Something isn't working label Feb 12, 2025
@Jonas-a-Zimmermann
Copy link
Author

I suppose the easiest fix would be just to remove julia 1.10 from the compat section in the Project.toml

@ChrisRackauckas
Copy link
Member

Duplicate of #573

@ChrisRackauckas ChrisRackauckas marked this as a duplicate of #573 Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants