Open
Conversation
…mpatibility Julia 1.12 introduced binding partitions (JuliaLang/julia#57133, #57150, #57253) which enforce strict world-age semantics for global bindings. When DocStringExtensions performs method resolution during docstring formatting, the calls happen in a stale world age and fail to find matching methods. This is the same pattern that Julia's own doc system (JuliaLang/julia#57349) and Documenter.jl (JuliaDocs/Documenter.jl#2624) adopted for 1.12 compatibility. Changes: - Wrap all Docs.resolve() calls with Base.invokelatest - Wrap methods() calls in getmethods!() with Base.invokelatest - Wrap Base.return_types() call with Base.invokelatest - Add nothing guard on findfirst/findlast result in TypedMethodSignatures to prevent ArgumentError when no matching tuple is found - Add world-age safety tests exercising all abbreviation types via Base.invokelatest to simulate the stale world-age scenario Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
MichaelHatherly
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Julia 1.12 introduced binding partitions (JuliaLang/julia#57133, #57150, #57253) which enforce strict world-age semantics for global bindings. When DocStringExtensions performs method resolution during docstring formatting, the calls happen in a stale world age and fail to find matching methods. This is the same pattern that Julia's own doc system (JuliaLang/julia#57349) and Documenter.jl (JuliaDocs/Documenter.jl#2624) adopted for 1.12 compatibility.
Changes:
This PR was made with the help of Claude.