CoherentStructures/CoherentStructures.jl

Compiling problem

Closed this issue · 4 comments

Hello,

I just did ]update and I get a 1 dependency error, CoherentStructures won't precompile:

julia> using CoherentStructures
[ Info: Precompiling CoherentStructures [0c1513b4-3a13-56f1-9cd2-8312eaec88c4]
ERROR: LoadError: invalid subtyping in definition of LinearImplicitEuler
Stacktrace:
[1] top-level scope
@ C:\Users\Rodrigo.julia\packages\CoherentStructures\NPGM6\src\odesolvers.jl:7
[2] include(mod::Module, _path::String)
@ Base .\Base.jl:418
[3] include(x::String)
@ CoherentStructures C:\Users\Rodrigo.julia\packages\CoherentStructures\NPGM6\src\CoherentStructures.jl:1
[4] top-level scope
@ C:\Users\Rodrigo.julia\packages\CoherentStructures\NPGM6\src\CoherentStructures.jl:104
[5] include
@ .\Base.jl:418 [inlined]
[6] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1318
[7] top-level scope
@ none:1
[8] eval
@ .\boot.jl:373 [inlined]
[9] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[10] top-level scope
@ none:1
in expression starting at C:\Users\Rodrigo.julia\packages\CoherentStructures\NPGM6\src\odesolvers.jl:7
in expression starting at C:\Users\Rodrigo.julia\packages\CoherentStructures\NPGM6\src\CoherentStructures.jl:1
ERROR: Failed to precompile CoherentStructures [0c1513b4-3a13-56f1-9cd2-8312eaec88c4] to C:\Users\Rodrigo.julia\compiled\v1.7\CoherentStructures\jl_2785.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)

What's the output of ]st? Which julia version do you have? I see: v1.7.

Julia is 1.7.1, and here is ]st

(@v1.7) pkg> st
Status C:\Users\Rodrigo\.julia\environments\v1.7\Project.toml
[28f2ccd6] ApproxFun v0.13.0
[7d9fca2a] Arpack v0.5.3
[c52e3926] Atom v0.12.36
[0c1513b4] CoherentStructures v0.4.8 https://github.com/CoherentStructures/CoherentStructures.jl.git#master
[2445eb08] DataDrivenDiffEq v0.7.0
[a93c6f00] DataFrames v1.3.1
[0c46a032] DifferentialEquations v7.1.0
[26cc04aa] FiniteDifferences v0.12.20
[587475ba] Flux v0.12.8
[f6369f11] ForwardDiff v0.10.24
[44ee3b1c] GeophysicalFlows v0.13.1
[7073ff75] IJulia v1.23.2
[5903a43b] Infiltrator v1.1.2
[a98d9a8b] Interpolations v0.13.5
[033835bb] JLD2 v0.4.17
[e5e0dc1b] Juno v0.8.4
[23fbe1c1] Latexify v0.15.9
[bdcacae8] LoopVectorization v0.12.101
[23992714] MAT v0.10.2
[961ee093] ModelingToolkit v8.3.1
[30363a11] NetCDF v0.11.3
[9e8cae18] Oceananigans v0.68.1
[1dea7af3] OrdinaryDiffEq v6.4.1
[91a5bcdd] Plots v1.25.6
[527681c1] ReversePropagation v0.1.3
[90137ffa] StaticArrays v1.3.2
[1418a599] StreamMacros v0.2.0 https://github.com/CoherentStructures/StreamMacros.jl.git#master
[8254be44] SymbolicRegression v0.6.16
[d1185830] SymbolicUtils v0.18.2
[0c5d862f] Symbolics v4.3.0
[6aa5eb33] TaylorSeries v0.10.13
[48a634ad] Tensors v1.9.1
[1986cc42] Unitful v1.10.1
[8ba89e20] Distributed
[37e2e46d] LinearAlgebra
[2f01184e] SparseArrays
[10745b16] Statistics

The failing part of the code is probably not in use by anybody and a bit hard to maintain, because we hook into machinery from OrdinaryDiffEq.jl that they consider as internal and hence don't follow the semver rules. As long as we decide to provide additional own solvers for time-dependent diffusion equation type problems it's worth it to keep up with the upstream package.

Success! Thanks!