Skip to content

Commit 42c8436

Browse files
authored
Remove un-actionable warning about not finding an external symbol (#1010)
1 parent afa6752 commit 42c8436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDocC/Infrastructure/DocumentationContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,9 +1621,9 @@ public class DocumentationContext: DocumentationContextDataProviderDelegate {
16211621
for symbolID in symbolsToResolve {
16221622
if let (reference, entity) = resolveSymbol(symbolID: symbolID) {
16231623
externalCache.add(entity, reference: reference, symbolID: symbolID)
1624-
} else {
1625-
diagnosticEngine.emit(Problem(diagnostic: Diagnostic(source: nil, severity: .warning, range: nil, identifier: "org.swift.docc.ReferenceSymbolNotFound", summary: "Symbol with identifier \(symbolID.singleQuoted) was referenced in the combined symbol graph but couldn't be found in the symbol graph or externally."), possibleSolutions: []))
16261624
}
1625+
// It's expected that some symbols won't resolve.
1626+
// The build doesn't necessarily include all documentation dependencies that appear in declarations, conformances, etc.
16271627
}
16281628
}
16291629

0 commit comments

Comments
 (0)