Skip to content

Method overwrites caused by @proto #42

@lassepe

Description

@lassepe

It is not clear to me which exact conditions trigger this error but the definition below triggers method override errors for me:

using ProtoStructs: @proto

@proto struct SimulatorState
    disk_positions::AbstractArray{Float32,2}
    ego_index::Int
    opponent_indices::AbstractVector{Int}
    object_indices::AbstractVector{Int}
    mouse_position::AbstractVector{Float32}
end
WARNING: Method definition (::Type{ToyContactSimulator.SimulatorState{P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, NT} where NT<:(NamedTuple{names, T} where T<:Tuple where names) where P15 where P14 where P13 where P12 where P11 where P10 where P9 where P8 where P7 where P6 where P5 where P4 where P3 where P2 where P1})(AbstractArray{Float32, 2}, Int64, AbstractArray{Int64, 1}, AbstractArray{Int64, 1}, AbstractArray{Float32, 1}) in module ToyContactSimulator at /home/lassepe/.julia/packages/ProtoStructs/6Bp9y/src/ProtoStruct.jl:218 overwritten at /home/lassepe/.julia/packages/ProtoStructs/6Bp9y/src/ProtoStruct.jl:223.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions