Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
235dd3e
Forray into capturing swift compiler output logs
bripeticca Nov 5, 2025
f9dfdf3
Revert usage of JSON parser; selectively emit DiagnosticInfo
bripeticca Nov 11, 2025
b1ff231
Implement per-task-buffer of Data output
bripeticca Nov 13, 2025
ac6b81b
Fallback to locationContext if locationContext2 properties are nil
bripeticca Nov 13, 2025
1ae0f38
Merge branch 'main' into swb/diagnosticcodesnippet
bripeticca Nov 13, 2025
b81bfca
Cleanup; add descriptions related to redundant task output
bripeticca Nov 13, 2025
f3aaabf
attempt to parse decoded string into individual diagnostics
bripeticca Nov 20, 2025
c48e606
cleanup
bripeticca Nov 20, 2025
f14600c
Revert diagnostic parsing and emit directly to outputStream
bripeticca Nov 21, 2025
359331a
Address PR comments
bripeticca Nov 21, 2025
56f0a45
implement generic print method for observability scope
bripeticca Nov 24, 2025
dd1505a
Introduce model to store data buffer per task type
bripeticca Nov 25, 2025
08306e2
minor changes to TaskDataBuffer + cleanup
bripeticca Nov 25, 2025
424492f
Modify emission of command line display strings
bripeticca Nov 27, 2025
4074c59
cleanup; stronger assertions for redundant task output
bripeticca Nov 27, 2025
05ee043
Fix protocol adherence errors
bripeticca Dec 2, 2025
7a00f35
Address PR comments
bripeticca Dec 4, 2025
e88ab96
Fix check on global task for LocationContext
bripeticca Dec 5, 2025
5f0911d
Track serialized diagnostic path by targetID
bripeticca Dec 5, 2025
8f713a0
Merge branch 'main' into swb/diagnosticcodesnippet
bripeticca Dec 5, 2025
fd21a42
Add FIXME + richer model to track emitted tasks
bripeticca Dec 8, 2025
7a91843
Merge branch 'main' into swb/diagnosticcodesnippet
bripeticca Dec 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Sources/Basics/Observability.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class ObservabilitySystem {
self.underlying(scope, diagnostic)
}

func printToOutput(message: String) {
self.diagnosticsHandler.printToOutput(message: message)
func print(_ output: String, verbose: Bool) {
self.diagnosticsHandler.print(output, verbose: verbose)
}
}

Expand Down Expand Up @@ -132,8 +132,8 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, Sendable, Cus
return parent?.errorsReportedInAnyScope ?? false
}

public func print(message: String) {
self.diagnosticsHandler.printToOutput(message: message)
public func print(_ output: String, verbose: Bool) {
self.diagnosticsHandler.print(output, verbose: verbose)
}

// DiagnosticsEmitterProtocol
Expand All @@ -158,8 +158,8 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, Sendable, Cus
self.underlying.handleDiagnostic(scope: scope, diagnostic: diagnostic)
}

public func printToOutput(message: String) {
self.underlying.printToOutput(message: message)
public func print(_ output: String, verbose: Bool) {
self.underlying.print(output, verbose: verbose)
}

var errorsReported: Bool {
Expand All @@ -173,7 +173,7 @@ public final class ObservabilityScope: DiagnosticsEmitterProtocol, Sendable, Cus
public protocol DiagnosticsHandler: Sendable {
func handleDiagnostic(scope: ObservabilityScope, diagnostic: Diagnostic)

func printToOutput(message: String)
func print(_ output: String, verbose: Bool)
}

/// Helper protocol to share default behavior.
Expand Down
3 changes: 2 additions & 1 deletion Sources/SwiftBuildSupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ add_library(SwiftBuildSupport STATIC
PIF.swift
PIFBuilder.swift
PluginConfiguration.swift
SwiftBuildSystem.swift)
SwiftBuildSystem.swift
SwiftBuildSystemMessageHandler.swift)
target_link_libraries(SwiftBuildSupport PUBLIC
Build
DriverSupport
Expand Down
Loading