Skip to content

Detected access to binding MyModule.##docmeta#274 in a world prior to its definition world. #2621

@lgoettgens

Description

@lgoettgens

Since JuliaLang/julia#57133, we see a lot of these issues in our CI at https://github.com/oscar-system/GAP.jl, when running doctests with julia nightly.

I managed to break it down to a very small mwe:

julia> using Documenter

julia> module Foo
       end
Main.Foo

julia> DocMeta.setdocmeta!(Foo, :DocTestSetup, :(using Foo); recursive=true)
WARNING: Detected access to binding `Foo.##docmeta#274` 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.
Hint: Add an appropriate `invokelatest` around the access to this binding.

cc @Keno

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