Skip to content

Turing fails to precompile due to deprecated method dispatches with v1.10 #2296

Closed
@ChrisRackauckas

Description

@ChrisRackauckas
  [fce5fe82] Turing v0.33.2
ERROR: LoadError: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).
You may need to write `f(x::Vararg{T})` rather than `f(x::Vararg{<:T})` or `f(x::Vararg{T}) where T` instead of `f(x::Vararg{T} where T)`.

Stacktrace:
  [1] UnionAll(v::TypeVar, t::Any)
    @ Core ./boot.jl:256
  [2] top-level scope
    @ ~/.julia/packages/Turing/axR9Q/src/mcmc/gibbs.jl:69
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
  [4] include(x::String)
    @ Turing.Inference ~/.julia/packages/Turing/axR9Q/src/mcmc/Inference.jl:1
  [5] top-level scope
    @ ~/.julia/packages/Turing/axR9Q/src/mcmc/Inference.jl:533
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
  [7] include(x::String)
    @ Turing ~/.julia/packages/Turing/axR9Q/src/Turing.jl:1
  [8] top-level scope
    @ ~/.julia/packages/Turing/axR9Q/src/Turing.jl:50
  [9] include
    @ ./Base.jl:495 [inlined]
 [10] 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::String)
    @ Base ./loading.jl:2222
 [11] top-level scope
    @ stdin:3

in expression starting at /home/runner/.julia/packages/Turing/axR9Q/src/mcmc/gibbs.jl:69
in expression starting at /home/runner/.julia/packages/Turing/axR9Q/src/mcmc/Inference.jl:1
in expression starting at /home/runner/.julia/packages/Turing/axR9Q/src/Turing.jl:1

https://github.com/SciML/EasyModelAnalysis.jl/actions/runs/10149953788/job/28065979320?pr=263#step:6:1198

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions