Skip to content

Type of @doc x changes when REPL is loaded #54664

Open
@lgoettgens

Description

@lgoettgens

#54499 approached to fix #52986 (to no longer return nothing without REPL).
But as @ztangent and @KristofferC discussed in #52986 (comment), the returned object is still different, making tests like probcomp/Gen.jl#523 and Nemocas/AbstractAlgebra.jl#1716 fail.

IMO, an okay solution would be to add some repr (or similar) method for Base.Doc.DocStr, so that at least string(@doc x) is consistent between 1.10 and 1.11+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviordocsystemThe documentation building system

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions