Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method overwrites caused by @proto #42

Open
lassepe opened this issue Jul 25, 2024 · 5 comments
Open

Method overwrites caused by @proto #42

lassepe opened this issue Jul 25, 2024 · 5 comments

Comments

@lassepe
Copy link

lassepe commented Jul 25, 2024

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.
@BeastyBlacksmith
Copy link
Owner

which Julia version is this?

@lassepe
Copy link
Author

lassepe commented Nov 20, 2024

Julia 1.10.4

@BeastyBlacksmith
Copy link
Owner

Do you have Revise loaded?

If yes do you still get the error, if you don't ?

Might be related to #36

@BeastyBlacksmith
Copy link
Owner

BeastyBlacksmith commented Dec 11, 2024

The only Julia related PR I could dig up is JuliaLang/julia#52214

@lassepe
Copy link
Author

lassepe commented Dec 11, 2024

Indeed I am also no longer able to reproduce this. I will close it for now and re-open in case I should see it again. I don't think it is actionable right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants