Skip to content

Base.@doc in macro doesn't work on master #52986

@Tortar

Description

As the title says this seems to be the case because in a PR on SumTypes.jl (https://github.com/MasonProtter/SumTypes.jl/pull/63/files) the doctest failing is only on nightly, while all the other works well, as you can see at https://github.com/MasonProtter/SumTypes.jl/actions/runs/7595253256/job/20687608559 the test fails with

Basics  : Test Failed at /home/runner/work/SumTypes.jl/SumTypes.jl/test/runtests.jl:40
  Expression: string(#= /home/runner/work/SumTypes.jl/SumTypes.jl/test/runtests.jl:40 =# @doc(Foo)) == "This is a Foo.\n"
   Evaluated: "nothing" == "This is a Foo.\n"

while for all other Julia versions it returns "This is a Foo.\n". Same is happening also on the CI of ProtoStructs.jl e.g. here https://github.com/BeastyBlacksmith/ProtoStructs.jl/actions/runs/7500520539/job/20419369109

Unfortunately I wasn't able to find a MWE when I searched for it

Metadata

Assignees

Labels

docsThis change adds or pertains to documentationregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions