You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module TestSymFailure
abstract type FailureModel end
f(m::FailureModel,a1,a2,x = [1.0]) = sum(x)*f0(m,a1,a2)
f0(m::FailureModel,a1,a2) = a1 + a2
struct Failure <: FailureModel end
end # module
Symbolics Extension:
module SymExt
using Symbolics
using TestSymFailure
@register_symbolic TestSymFailure.f(model::TestSymFailure.FailureModel,a1,a2,x::AbstractVector{<:Number})
@register_symbolic TestSymFailure.f(model::TestSymFailure.FailureModel,a1,a2,x::Symbolics.Arr{Num,1}) false
end
when precompiling:
Precompiling project...
? TestSymFailure → SymExt
40 dependencies successfully precompiled in 103 seconds. 111 already precompiled.
1 dependencies failed but may be precompilable after restarting julia
1 dependency had output during precompilation:
┌ TestSymFailure → SymExt
│ WARNING: Method definition f(SymbolicUtils.Symbolic{var"#s82"} where var"#s82"<:TestSymFailure.FailureModel, Real, Real, Symbolics.Arr{Symbolics.Num, 1}) in module SymExt at C:\Users\user\.julia\packages\Symbolics\8MbnV\src\wrapper-types.jl:158 overwritten on the same line (check for duplicate calls to `include`).
│ ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└
Symbolics v6.15.3, julia 1.11.1.
The text was updated successfully, but these errors were encountered:
longemen3000
changed the title
Precompilation failure when registering functions:
Precompilation failure when registering functions that with a vector type
Nov 12, 2024
MWE:
main module:
Symbolics Extension:
when precompiling:
Symbolics v6.15.3, julia 1.11.1.
The text was updated successfully, but these errors were encountered: