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

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

Open
lgoettgens opened this issue Jan 28, 2025 · 2 comments · May be fixed by #2622
Open

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

lgoettgens opened this issue Jan 28, 2025 · 2 comments · May be fixed by #2622

Comments

@lgoettgens
Copy link

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

@Keno
Copy link

Keno commented Jan 28, 2025

Yes, the documenter code needs to be fixed. Usually if have done that first, but were trying to get the first rc out, so I'm focusing on the Julia base changes first.

@fingolfin
Copy link
Contributor

@Keno well @lgoettgens also submitted a potential fix as PR #2622 so I hope that can be merged and released quickly

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

Successfully merging a pull request may close this issue.

3 participants