Skip to content

source link line number mismatch #781

@Kyle-Ye

Description

@Kyle-Ye

Description

As SPI supported source link recently. A lot of packages hosted on SPI get the feature automatically. And some issue is thus exposed out.

And I noticed some line number mismatch here.

I remember we have encountered and fixed similar issue before on swift-docc-render swiftlang/swift-docc-render#662

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

For example

https://swiftpackageindex.com/openswiftuiproject/opencombine/main/documentation/opencombine/connectablepublisher/connect()

I expect the link to be RootProtocols.swift#L104 instead of RootProtocols.swift#L106

Actual behavior

No response

Steps To Reproduce

Build OpenCombine documentation and pass in the necessary source link feature parameter.

Swift-DocC Version Information

No response

Swift Compiler Version Information

No response

Metadata

Metadata

Assignees

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