From 1d257f68f6dac90a6d57eb3513fca3f9c6f6d0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Tue, 28 Jan 2025 13:17:13 +0100 Subject: [PATCH 1/3] Fix world age warning --- src/DocMeta.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DocMeta.jl b/src/DocMeta.jl index 5c5ac1bf00..7bd9e7907b 100644 --- a/src/DocMeta.jl +++ b/src/DocMeta.jl @@ -35,10 +35,11 @@ function initdocmeta!(m::Module) @debug "Creating documentation metadata dictionary (META=$META) in $m" Core.eval(m, :(const $META = $(METATYPE()))) push!(METAMODULES, m) + invokelatest(getfield, m, META) else @warn "Existing documentation metadata dictionary (META=$META) in $m. Ignoring." + return getfield(m, META) end - return getfield(m, META) end """ From 7018b2c5593c0ebe702b52bd74ddc951f2f303a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Tue, 28 Jan 2025 13:22:02 +0100 Subject: [PATCH 2/3] Add to changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9bcc7e9c8..0e8ce296d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +* `Docmeta.initdocmeta!` no longer accesses outdated bindings in julia 1.12-dev. ([#2622]) + ## Version [v1.8.0] - 2024-11-07 ### Changed @@ -1916,6 +1922,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#2571]: https://github.com/JuliaDocs/Documenter.jl/issues/2571 [#2592]: https://github.com/JuliaDocs/Documenter.jl/issues/2592 [#2593]: https://github.com/JuliaDocs/Documenter.jl/issues/2593 +[#2622]: https://github.com/JuliaDocs/Documenter.jl/issues/2622 [JuliaLang/julia#36953]: https://github.com/JuliaLang/julia/issues/36953 [JuliaLang/julia#38054]: https://github.com/JuliaLang/julia/issues/38054 [JuliaLang/julia#39841]: https://github.com/JuliaLang/julia/issues/39841 From 0e06b1288b3a351f85da922f04f8eeb7c4536c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Tue, 28 Jan 2025 13:43:19 +0100 Subject: [PATCH 3/3] Update src/DocMeta.jl --- src/DocMeta.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocMeta.jl b/src/DocMeta.jl index 7bd9e7907b..baa8e6d256 100644 --- a/src/DocMeta.jl +++ b/src/DocMeta.jl @@ -35,7 +35,7 @@ function initdocmeta!(m::Module) @debug "Creating documentation metadata dictionary (META=$META) in $m" Core.eval(m, :(const $META = $(METATYPE()))) push!(METAMODULES, m) - invokelatest(getfield, m, META) + Base.invokelatest(getfield, m, META) else @warn "Existing documentation metadata dictionary (META=$META) in $m. Ignoring." return getfield(m, META)