Skip to content

Commit 1f0dde6

Browse files
committed
Log targets marked out-of-date
I am seeing more preparation tasks going on than I expect. This should help us figure out why targets are being marked as out-of-date.
1 parent b7b225c commit 1f0dde6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/SemanticIndex/SemanticIndexManager.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,15 @@ public final actor SemanticIndexManager {
312312
// configured for macOS but not in target T configured for iOS.
313313
let targets = await changedFiles.asyncMap { await buildSystemManager.configuredTargets(for: $0) }.flatMap { $0 }
314314
if let dependentTargets = await buildSystemManager.targets(dependingOn: targets) {
315+
logger.info(
316+
"""
317+
Marking targets as out-of-date: \
318+
\(String(dependentTargets.map(\.description).joined(separator: ", ")))
319+
"""
320+
)
315321
await preparationUpToDateTracker.markOutOfDate(dependentTargets)
316322
} else {
323+
logger.info("Marking all targets as out-of-date")
317324
await preparationUpToDateTracker.markAllKnownOutOfDate()
318325
// `markAllOutOfDate` only marks targets out-of-date that have been indexed before. Also mark all targets with
319326
// in-progress preparation out of date. So we don't get into the following situation, which would result in an

0 commit comments

Comments
 (0)