Skip to content

Duplicated diagnostic causing crash on DefaultDiagnosticConsoleFormatter #729

@Kyle-Ye

Description

@Kyle-Ye

Description

See detail on #678 (comment)

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • This issue hasn't been addressed in an existing GitHub issue.

Expected Behavior

Only emit one diagnostic for the actual location - the Extension file.

Actual behavior

Emit 2 duplicated diagnostic: the Extension Markdown file and the source Swift file

Steps To Reproduce

Change eat(_:quantity:) to eat(_:quantity:extraLog:) and build documentation for SlothCreator.

Swift-DocC Version Information

5.9.0

Swift Compiler Version Information

swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Target: arm64-apple-macosx14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions