Skip to content

TypeError in tape_copy for newer versions of Julia #161

Closed
@FredericWantiez

Description

@FredericWantiez

Seems like allocate_binding! fails on a TypeError with newer versions of Julia. For example, on julia 1.9, the tape_copy tests fail on something similar to this:

  Got exception outside of a @test
  TypeError: in Type, in parameter, expected Type, got a value of type Pair{String, Int64}
  Stacktrace:
    [1] allocate_binding!(var::Core.SSAValue, bindings::Vector{Any}, c::Core.Const)
      @ Libtask ~/Documents/projects/turing/Libtask.jl/src/tapedfunction.jl:299
    [2] bind_var!(var::Core.SSAValue, bindings::Vector{Any}, ir::Core.CodeInfo)

This breaks CI and is likely the issue here TuringLang/Turing.jl#1973

Metadata

Metadata

Assignees

No one assigned

    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