Skip to content

setfield!: const field .names of type TypeName cannot be changed on Julia 1.8 #109

@KristofferC

Description

@KristofferC

This came up in PkgEval:

Anonymous Functions: Error During Test at /home/pkgeval/.julia/packages/BSON/rOaki/test/runtests.jl:125
  Got exception outside of a @test
  setfield!: const field .names of type TypeName cannot be changed
  Stacktrace:
    [1] setproperty!(x::Core.TypeName, f::Symbol, v::Core.SimpleVector)
      @ Base ./Base.jl:39
    [2] newstruct_raw(cache::IdDict{Any, Any}, #unused#::Type{Core.TypeName}, d::Dict{Symbol, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/anonymous.jl:136
    [3] (::BSON.var"#49#50")(d::Dict{Symbol, Any}, cache::IdDict{Any, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/extensions.jl:169
    [4] raise_recursive(d::Dict{Symbol, Any}, cache::IdDict{Any, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/read.jl:92
    [5] (::BSON.var"#18#21"{IdDict{Any, Any}, Module})(x::Dict{Symbol, Any})
      @ BSON ~/.julia/packages/BSON/rOaki/src/read.jl:82
    [6] applychildren!(f::BSON.var"#18#21"{IdDict{Any, Any}, Module}, x::Dict{Symbol, Any})
      @ BSON ~/.julia/packages/BSON/rOaki/src/BSON.jl:19
    [7] _raise_recursive(d::Dict{Symbol, Any}, cache::IdDict{Any, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/read.jl:82
    [8] raise_recursive(d::Dict{Symbol, Any}, cache::IdDict{Any, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/read.jl:93
    [9] (::BSON.var"#49#50")(d::Dict{Symbol, Any}, cache::IdDict{Any, Any}, init::Module)
      @ BSON ~/.julia/packages/BSON/rOaki/src/extensions.jl:167
... 

PkgEval log: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/f51f24c_vs_2ca8b0c/BSON.primary.log

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