DimensionalData.jl icon indicating copy to clipboard operation
DimensionalData.jl copied to clipboard

Warnings on world age problems on nightly

Open felixcremer opened this issue 10 months ago • 1 comments

On the current nightly CI we get a lot of these warnings for accessing some things prior to their world age

  WARNING: Detected access to binding `Dimensions.X` in a world prior to its definition world.
│    Julia 1.12 has introduced more strict world age semantics for global bindings.
│    !!! This code may malfunction under Revise.
│    !!! This code will error in future versions of Julia.

This is something that we would have to look into before julia 1.12 will be released. Unfortunately I don't see from these warnings where the access happens in the code.

felixcremer avatar Feb 25 '25 15:02 felixcremer

Interesting. We can always define those without the macro

rafaqz avatar Feb 25 '25 16:02 rafaqz

If I comment out this line then all the warnings go away: https://github.com/rafaqz/DimensionalData.jl/blob/87a0b40fd2d4fa541161c729dd0a30ddc5cf9d88/src/DimensionalData.jl#L120

sethaxen avatar Apr 10 '25 21:04 sethaxen

This is breaking GO tests on nightly too

asinghvi17 avatar Jun 22 '25 20:06 asinghvi17

Hopefully we just need to move the definition backwards or forwards in the load order? I haven't had time to try

rafaqz avatar Jun 23 '25 06:06 rafaqz