JuliaSymbolics / Symbolics.jl

Symbolic programming for the next generation of numerical software

Home Page:https://symbolics.juliasymbolics.org/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with Julia 1.10

eschnett opened this issue · comments

I see this error since today

julia> using Symbolics
Precompiling Symbolics
        Info Given Symbolics was explicitly requested, output will be shown live
WARNING: Method definition promote_symtype(typeof(setfield!), Type{var"#s292"} where var"#s292"<:(Symbolics.Struct{T} where T), Any, Type{T}) where {T} in module Symbolics at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:71 overwritten at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:76.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? Symbolics
  ? Symbolics → SymbolicsPreallocationToolsExt
[ Info: Precompiling Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7]
WARNING: Method definition promote_symtype(typeof(setfield!), Type{var"#s292"} where var"#s292"<:(Symbolics.Struct{T} where T), Any, Type{T}) where {T} in module Symbolics at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:71 overwritten at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:76.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
[ Info: Skipping precompilation since __precompile__(false). Importing Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7].
Precompiling SymbolicsPreallocationToolsExt
        Info Given SymbolicsPreallocationToolsExt was explicitly requested, output will be shown live
WARNING: Method definition promote_symtype(typeof(setfield!), Type{var"#s292"} where var"#s292"<:(Symbolics.Struct{T} where T), Any, Type{T}) where {T} in module Symbolics at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:71 overwritten at /Users/eschnett/.julia/packages/Symbolics/zau51/src/struct.jl:76.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? Symbolics
  ? Symbolics → SymbolicsPreallocationToolsExt
[ Info: Precompiling SymbolicsPreallocationToolsExt [d479e226-fb54-5ebe-a75e-a7af7f39127f]
┌ Warning: Module Symbolics with build ID ffffffff-ffff-ffff-0001-1cc612c9ea8a is missing from the cache.
│ This may mean Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1948
[ Info: Skipping precompilation since __precompile__(false). Importing SymbolicsPreallocationToolsExt [d479e226-fb54-5ebe-a75e-a7af7f39127f].

I am using

julia> versioninfo()
Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin22.4.0)
  CPU: 16 × Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

with these versions

  [d1185830] SymbolicUtils v1.5.1
  [0c5d862f] Symbolics v5.25.1

This is resolved in v5.25.2.