Skip to content

Deprecation messages should show informative message (eg the corresponding documentation comment) #7468

@timotheecour

Description

@timotheecour

[enhancement request]

Deprecation messages should show informative message (eg the corresponding documentation comment)

eg:

proc writeLn*(s: Stream, args: varargs[string, `$`]) {.deprecated.} =
    ## **Deprecated since version 0.11.4:** Use **writeLine** instead.
    ... 

using writeLn in code produces this:
Warning: writeLn is deprecated [Deprecated]

it should show something like this instead:

  • option 1: put the whole documentation comment of deprecated function:
    Warning: writeLn is deprecated ; **Deprecated since version 0.11.4:** Use **writeLine** instead. [Deprecated]
  • option 2: (if easy to in a general way):
    Warning: writeLn is deprecated ; Use **writeLine** instead. [Deprecated]
  • option 3:
    Warning: writeLn is deprecated (defined at file:line) [Deprecated]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions