You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WIth the Swift 5.9 updates to DocC that change the symbols to allow full unicode character support, I've updated my documentation - but am continuing to get warnings about incorrect symbols. I'm opening this issue per a discussion on the swift forums.
The example that shows this is MeshGenerator, and a perfect example is the symbol TextureCoordinates/_=(_:_:)-38jci.
The kind of warning that is displayed (in both Xcode and from DocC on the command line) is:
/Users/heckj/src/MeshGenerator/Sources/MeshGenerator/MeshGenerator.docc/Extensions/TextureCoordinates.md: warning: '_=(_:_:)-38jci' doesn't exist at '/MeshGenerator/TextureCoordinates'
This package exhibits several of these warnings, all apparently related to synthesized methods from default protocol conformance.
Oh. this stumped me for a bit but now I see what's happening here. [overly specific implementation details to follow]
While crawling the curation to build up the documentation hierarchy, resolved links are updated to their absolute resolved topic reference versions. Before visiting the content of these pages these updated resolved topic reference strings are added to a lookup. I didn't think these links would be visited again before that but if the there's a second crawling pass there's a code path that visits them again before they're added to the lookup. That explains why these warnings don't have a source location. These links don't exist in the actual content, so there can't be a source range for them.
Description
WIth the Swift 5.9 updates to DocC that change the symbols to allow full unicode character support, I've updated my documentation - but am continuing to get warnings about incorrect symbols. I'm opening this issue per a discussion on the swift forums.
The example that shows this is MeshGenerator, and a perfect example is the symbol
TextureCoordinates/_=(_:_:)-38jci.The kind of warning that is displayed (in both Xcode and from DocC on the command line) is:
This package exhibits several of these warnings, all apparently related to synthesized methods from default protocol conformance.
I've also verified this behavior exists on the current main branch of DocC (commit 2131c4358d9345cb72007dd53cca33ef410cf6b6).
Checklist
mainbranch of this package.Expected Behavior
No warnings displayed
Actual behavior
Warnings displayed, such as:
When I've not added the symbol to any markdown (or more explicitly, I've replaced it)
Steps To Reproduce
Project: MeshGenerator
git clone https://github.com/heckj/MeshGeneratorcd MeshGeneratorgit checkout 9912f61d3222a76364b156c6055be35fd48c348cverify that the symbol isn't in use in code or markdown files:
grep -R "\_=(_:_:)-38jci" .exhibit the errors
./docbuild.bashor the more explicit version:
$(xcrun --find swift) package generate-documentation --target MeshGeneratorSwift-DocC Version Information
5.9.0
Swift Compiler Version Information
The text was updated successfully, but these errors were encountered: