Build Information
Successful build of swift-snapshot-testing, reference main (a3650f
), with Swift 6.0 for macOS (SPM) on 8 Nov 2024 17:55:49 UTC.
Swift 6 data race errors: 14
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:37:77: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | ?? Async { callback in
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
39 | let image = NSImage(size: view.bounds.size)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:20: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:215:26: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
215 | @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)
| `- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
216 | @available(swift, obsoleted: 3, renamed: "cacheDisplay(in:to:)")
217 | open func cacheDisplayInRect(_ rect: NSRect, toBitmapImageRep bitmapImageRep: NSBitmapImageRep)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:42: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:39:46: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
39 | let image = NSImage(size: view.bounds.size)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | image.addRepresentation(bitmapRep)
41 | callback(image)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:42:34: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | image.addRepresentation(bitmapRep)
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | view.frame.size = initialSize
44 | }
AppKit.NSView:44:26: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
42 | open func didAddSubview(_ subview: NSView)
43 | open func willRemoveSubview(_ subview: NSView)
44 | @MainActor open func removeFromSuperview()
| `- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
45 | open func replaceSubview(_ oldView: NSView, with newView: NSView)
46 | open func removeFromSuperviewWithoutNeedingDisplay()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:43:20: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
43 | view.frame.size = initialSize
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSViewController.swift:25:23: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | return Snapshotting<NSView, NSImage>.image(
24 | precision: precision, perceptualPrecision: perceptualPrecision, size: size
25 | ).pullback { $0.view }
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
26 | }
27 | }
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSViewController.swift:33:78: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | /// their properties and hierarchies.
32 | public static var recursiveDescription: Snapshotting {
33 | return Snapshotting<NSView, String>.recursiveDescription.pullback { $0.view }
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | }
35 | }
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:20: warning: sending 'bitmapRep' risks causing data races; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| |- warning: sending 'bitmapRep' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'bitmapRep' to main actor-isolated instance method 'cacheDisplay(in:to:)' risks causing data races between main actor-isolated and local nonisolated uses
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
| `- note: access can happen concurrently
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSImage.swift:7:23: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Diffing<NSImage>' may have shared mutable state; this is an error in the Swift 6 language mode
5 | extension Diffing where Value == NSImage {
6 | /// A pixel-diffing strategy for NSImage's which requires a 100% match.
7 | public static let image = Diffing.image()
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Diffing<NSImage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
8 |
9 | /// A pixel-diffing strategy for NSImage that allows customizing how precise the matching must be.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:29:32: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
27 | precision: precision, perceptualPrecision: perceptualPrecision
28 | ).asyncPullback { view in
29 | let initialSize = view.frame.size
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
30 | if let size = size { view.frame.size = size }
31 | guard view.frame.width > 0, view.frame.height > 0 else {
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:30:35: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | ).asyncPullback { view in
29 | let initialSize = view.frame.size
30 | if let size = size { view.frame.size = size }
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
31 | guard view.frame.width > 0, view.frame.height > 0 else {
32 | fatalError("View not renderable to image at size \(view.frame.size)")
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:31:20: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | let initialSize = view.frame.size
30 | if let size = size { view.frame.size = size }
31 | guard view.frame.width > 0, view.frame.height > 0 else {
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | fatalError("View not renderable to image at size \(view.frame.size)")
33 | }
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:31:42: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | let initialSize = view.frame.size
30 | if let size = size { view.frame.size = size }
31 | guard view.frame.width > 0, view.frame.height > 0 else {
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | fatalError("View not renderable to image at size \(view.frame.size)")
33 | }
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:32:67: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
30 | if let size = size { view.frame.size = size }
31 | guard view.frame.width > 0, view.frame.height > 0 else {
32 | fatalError("View not renderable to image at size \(view.frame.size)")
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
33 | }
34 | return view.snapshot
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:34:21: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | fatalError("View not renderable to image at size \(view.frame.size)")
33 | }
34 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | ?? Async { callback in
36 | addImagesForRenderedViews(view).sequence().run { views in
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:855:9: note: property declared here
853 |
854 | extension View {
855 | var snapshot: Async<Image>? {
| `- note: property declared here
856 | func inWindow<T>(_ perform: () -> T) -> T {
857 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:37:36: warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | ?? Async { callback in
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
| `- warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
39 | let image = NSImage(size: view.bounds.size)
AppKit.NSView:212:26: note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
210 | @available(swift, obsoleted: 3, renamed: "displayIgnoringOpacity(_:in:)")
211 | open func displayRectIgnoringOpacity(_ rect: NSRect, inContext context: NSGraphicsContext)
212 | @MainActor open func bitmapImageRepForCachingDisplay(in rect: NSRect) -> NSBitmapImageRep?
| `- note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:37:77: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | ?? Async { callback in
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
39 | let image = NSImage(size: view.bounds.size)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:20: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:215:26: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
215 | @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)
| `- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
216 | @available(swift, obsoleted: 3, renamed: "cacheDisplay(in:to:)")
217 | open func cacheDisplayInRect(_ rect: NSRect, toBitmapImageRep bitmapImageRep: NSBitmapImageRep)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:42: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:39:46: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
39 | let image = NSImage(size: view.bounds.size)
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | image.addRepresentation(bitmapRep)
41 | callback(image)
AppKit.NSView:76:14: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:42:34: warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | image.addRepresentation(bitmapRep)
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
| `- warning: call to main actor-isolated instance method 'removeFromSuperview()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | view.frame.size = initialSize
44 | }
AppKit.NSView:44:26: note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
42 | open func didAddSubview(_ subview: NSView)
43 | open func willRemoveSubview(_ subview: NSView)
44 | @MainActor open func removeFromSuperview()
| `- note: calls to instance method 'removeFromSuperview()' from outside of its actor context are implicitly asynchronous
45 | open func replaceSubview(_ oldView: NSView, with newView: NSView)
46 | open func removeFromSuperviewWithoutNeedingDisplay()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:43:20: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
43 | view.frame.size = initialSize
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSViewController.swift:25:23: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | return Snapshotting<NSView, NSImage>.image(
24 | precision: precision, perceptualPrecision: perceptualPrecision, size: size
25 | ).pullback { $0.view }
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
26 | }
27 | }
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSViewController.swift:33:78: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
31 | /// their properties and hierarchies.
32 | public static var recursiveDescription: Snapshotting {
33 | return Snapshotting<NSView, String>.recursiveDescription.pullback { $0.view }
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
34 | }
35 | }
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/NSView.swift:38:20: warning: sending 'bitmapRep' risks causing data races; this is an error in the Swift 6 language mode
36 | addImagesForRenderedViews(view).sequence().run { views in
37 | let bitmapRep = view.bitmapImageRepForCachingDisplay(in: view.bounds)!
38 | view.cacheDisplay(in: view.bounds, to: bitmapRep)
| |- warning: sending 'bitmapRep' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated 'bitmapRep' to main actor-isolated instance method 'cacheDisplay(in:to:)' risks causing data races between main actor-isolated and local nonisolated uses
39 | let image = NSImage(size: view.bounds.size)
40 | image.addRepresentation(bitmapRep)
| `- note: access can happen concurrently
41 | callback(image)
42 | views.forEach { $0.removeFromSuperview() }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
SceneKit.SCNView:26:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
24 | @available(macOS, introduced: 10.8, deprecated: 10.14, message: "OpenGL API deprecated, please use Metal instead. (Define SCN_SILENCE_GL_DEPRECATION to silence these warnings)")
25 | open var pixelFormat: NSOpenGLPixelFormat? { get set }
26 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
27 | public init?(coder: NSCoder)
28 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SceneKit.SCNView:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class SCNView : NSView, SCNSceneRenderer, SCNTechniqueSupport {
2 | @MainActor public init(frame: NSRect, options: [String : Any]? = nil)
3 | open var scene: SCNScene? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var rendersContinuously: Bool { get set }
5 | @NSCopying open var backgroundColor: NSColor { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
SpriteKit.SKView:46:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
44 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
45 | open func convertPoint(_ point: CGPoint, fromScene scene: SKScene) -> CGPoint
46 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
47 | public init?(coder: NSCoder)
48 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView:31:26: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
29 | @available(macOS, introduced: 10.12, deprecated: 10.12)
30 | open var preferredFrameRate: Float { get set }
31 | @MainActor open func presentScene(_ scene: SKScene?)
| `- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
32 | open func presentScene(_ scene: SKScene, transition: SKTransition)
33 | open var scene: SKScene? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
SceneKit.SCNView:26:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
24 | @available(macOS, introduced: 10.8, deprecated: 10.14, message: "OpenGL API deprecated, please use Metal instead. (Define SCN_SILENCE_GL_DEPRECATION to silence these warnings)")
25 | open var pixelFormat: NSOpenGLPixelFormat? { get set }
26 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
27 | public init?(coder: NSCoder)
28 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SceneKit.SCNView:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class SCNView : NSView, SCNSceneRenderer, SCNTechniqueSupport {
2 | @MainActor public init(frame: NSRect, options: [String : Any]? = nil)
3 | open var scene: SCNScene? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var rendersContinuously: Bool { get set }
5 | @NSCopying open var backgroundColor: NSColor { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
SpriteKit.SKView:46:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
44 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
45 | open func convertPoint(_ point: CGPoint, fromScene scene: SKScene) -> CGPoint
46 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
47 | public init?(coder: NSCoder)
48 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView:31:26: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
29 | @available(macOS, introduced: 10.12, deprecated: 10.12)
30 | open var preferredFrameRate: Float { get set }
31 | @MainActor open func presentScene(_ scene: SKScene?)
| `- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
32 | open func presentScene(_ scene: SKScene, transition: SKTransition)
33 | open var scene: SKScene? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.scene = scene
54 | return view
SceneKit.SCNView:26:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
24 | @available(macOS, introduced: 10.8, deprecated: 10.14, message: "OpenGL API deprecated, please use Metal instead. (Define SCN_SILENCE_GL_DEPRECATION to silence these warnings)")
25 | open var pixelFormat: NSOpenGLPixelFormat? { get set }
26 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
27 | public init?(coder: NSCoder)
28 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SceneKit.swift:53:14: warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SCNView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.scene = scene
| `- warning: main actor-isolated property 'scene' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SceneKit.SCNView:3:14: note: mutation of this property is only permitted within the actor
1 | @MainActor open class SCNView : NSView, SCNSceneRenderer, SCNTechniqueSupport {
2 | @MainActor public init(frame: NSRect, options: [String : Any]? = nil)
3 | open var scene: SCNScene? { get set }
| `- note: mutation of this property is only permitted within the actor
4 | open var rendersContinuously: Bool { get set }
5 | @NSCopying open var backgroundColor: NSColor { get set }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:52:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
50 | precision: precision, perceptualPrecision: perceptualPrecision
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
53 | view.presentScene(scene)
54 | return view
SpriteKit.SKView:46:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
44 | @available(swift, obsoleted: 3, renamed: "convert(_:from:)")
45 | open func convertPoint(_ point: CGPoint, fromScene scene: SKScene) -> CGPoint
46 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
47 | public init?(coder: NSCoder)
48 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/SpriteKit.swift:53:14: warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
51 | ).pullback { scene in
52 | let view = SKView(frame: .init(x: 0, y: 0, width: size.width, height: size.height))
53 | view.presentScene(scene)
| `- warning: call to main actor-isolated instance method 'presentScene' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
54 | return view
55 | }
SpriteKit.SKView:31:26: note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
29 | @available(macOS, introduced: 10.12, deprecated: 10.12)
30 | open var preferredFrameRate: Float { get set }
31 | @MainActor open func presentScene(_ scene: SKScene?)
| `- note: calls to instance method 'presentScene' from outside of its actor context are implicitly asynchronous
32 | open func presentScene(_ scene: SKScene, transition: SKTransition)
33 | open var scene: SKScene? { get }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:6:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
4 | extension Snapshotting where Value == String, Format == String {
5 | /// A snapshot strategy for comparing strings based on equality.
6 | public static let lines = Snapshotting(pathExtension: "txt", diffing: .lines)
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Snapshotting<String, String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 | }
8 |
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting.swift:6:15: note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
4 | /// A type representing the ability to transform a snapshottable value into a diffable format (like
5 | /// text or an image) for snapshot testing.
6 | public struct Snapshotting<Value, Format> {
| `- note: consider making generic struct 'Snapshotting' conform to the 'Sendable' protocol
7 | /// The path extension applied to references saved to disk.
8 | public var pathExtension: String?
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/String.swift:11:21: warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
9 | extension Diffing where Value == String {
10 | /// A line-diffing strategy for UTF-8 text.
11 | public static let lines = Diffing(
| |- warning: static property 'lines' is not concurrency-safe because non-'Sendable' type 'Diffing<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'lines' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | toData: { Data($0.utf8) },
13 | fromData: { String(decoding: $0, as: UTF8.self) }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Diffing.swift:5:15: note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
3 |
4 | /// The ability to compare `Value`s and convert them to and from `Data`.
5 | public struct Diffing<Value> {
| `- note: consider making generic struct 'Diffing' conform to the 'Sendable' protocol
6 | /// Converts a value _to_ data.
7 | public var toData: (Value) -> Data
[81/125] Compiling SwiftSyntax TokenKind.swift
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:833:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
830 | #endif
831 |
832 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
833 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
834 | .map { async in
835 | [
:
853 |
854 | extension View {
855 | var snapshot: Async<Image>? {
| `- note: property declared here
856 | func inWindow<T>(_ perform: () -> T) -> T {
857 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:838:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
836 | Async { callback in
837 | async.run { image in
838 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
839 | imageView.image = image
840 | imageView.frame = view.frame
AppKit.NSImageView:28:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
26 | public init(frame frameRect: NSRect)
27 | public init?(coder: NSCoder)
28 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
29 | open func accessibilityLabel() -> String?
30 | @MainActor open func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:839:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
837 | async.run { image in
838 | let imageView = ImageView()
839 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
AppKit.NSImageView:7:14: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:30:26: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
28 | open func viewDidUnhide()
29 | open func addSubview(_ view: NSView)
30 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
| `- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
32 | @available(swift, obsoleted: 3, renamed: "sortSubviews(_:context:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:5:30: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:851:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
849 | ]
850 | }
851 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
852 | }
853 |
AppKit.NSView:6:14: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:918:19: warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
918 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
919 | }
920 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:915:17: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
913 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
914 | (webview, change) in
915 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:916:17: warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
914 | (webview, change) in
915 | subscription?.invalidate()
916 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
917 | if change.newValue == false {
918 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:833:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
830 | #endif
831 |
832 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
833 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
834 | .map { async in
835 | [
:
853 |
854 | extension View {
855 | var snapshot: Async<Image>? {
| `- note: property declared here
856 | func inWindow<T>(_ perform: () -> T) -> T {
857 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:838:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
836 | Async { callback in
837 | async.run { image in
838 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
839 | imageView.image = image
840 | imageView.frame = view.frame
AppKit.NSImageView:28:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
26 | public init(frame frameRect: NSRect)
27 | public init?(coder: NSCoder)
28 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
29 | open func accessibilityLabel() -> String?
30 | @MainActor open func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:839:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
837 | async.run { image in
838 | let imageView = ImageView()
839 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
AppKit.NSImageView:7:14: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:30:26: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
28 | open func viewDidUnhide()
29 | open func addSubview(_ view: NSView)
30 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
| `- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
32 | @available(swift, obsoleted: 3, renamed: "sortSubviews(_:context:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:5:30: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:851:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
849 | ]
850 | }
851 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
852 | }
853 |
AppKit.NSView:6:14: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:918:19: warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
918 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
919 | }
920 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:915:17: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
913 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
914 | (webview, change) in
915 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:916:17: warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
914 | (webview, change) in
915 | subscription?.invalidate()
916 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
917 | if change.newValue == false {
918 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:833:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
830 | #endif
831 |
832 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
833 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
834 | .map { async in
835 | [
:
853 |
854 | extension View {
855 | var snapshot: Async<Image>? {
| `- note: property declared here
856 | func inWindow<T>(_ perform: () -> T) -> T {
857 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:838:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
836 | Async { callback in
837 | async.run { image in
838 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
839 | imageView.image = image
840 | imageView.frame = view.frame
AppKit.NSImageView:28:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
26 | public init(frame frameRect: NSRect)
27 | public init?(coder: NSCoder)
28 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
29 | open func accessibilityLabel() -> String?
30 | @MainActor open func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:839:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
837 | async.run { image in
838 | let imageView = ImageView()
839 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
AppKit.NSImageView:7:14: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:30:26: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
28 | open func viewDidUnhide()
29 | open func addSubview(_ view: NSView)
30 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
| `- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
32 | @available(swift, obsoleted: 3, renamed: "sortSubviews(_:context:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:5:30: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:851:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
849 | ]
850 | }
851 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
852 | }
853 |
AppKit.NSView:6:14: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:918:19: warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
918 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
919 | }
920 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:915:17: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
913 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
914 | (webview, change) in
915 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:916:17: warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
914 | (webview, change) in
915 | subscription?.invalidate()
916 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
917 | if change.newValue == false {
918 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:833:17: warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
830 | #endif
831 |
832 | func addImagesForRenderedViews(_ view: View) -> [Async<View>] {
| `- note: add '@MainActor' to make global function 'addImagesForRenderedViews' part of global actor 'MainActor'
833 | return view.snapshot
| `- warning: main actor-isolated property 'snapshot' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
834 | .map { async in
835 | [
:
853 |
854 | extension View {
855 | var snapshot: Async<Image>? {
| `- note: property declared here
856 | func inWindow<T>(_ perform: () -> T) -> T {
857 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:838:31: warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
836 | Async { callback in
837 | async.run { image in
838 | let imageView = ImageView()
| `- warning: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
839 | imageView.image = image
840 | imageView.frame = view.frame
AppKit.NSImageView:28:35: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
26 | public init(frame frameRect: NSRect)
27 | public init?(coder: NSCoder)
28 | @MainActor public convenience init()
| `- note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
29 | open func accessibilityLabel() -> String?
30 | @MainActor open func validateMenuItem(_ menuItem: NSMenuItem) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:839:25: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
837 | async.run { image in
838 | let imageView = ImageView()
839 | imageView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
AppKit.NSImageView:7:14: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:25: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: mutation of this property is only permitted within the actor
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: mutation of this property is only permitted within the actor
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:840:38: warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
838 | let imageView = ImageView()
839 | imageView.image = image
840 | imageView.frame = view.frame
| `- warning: main actor-isolated property 'frame' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
AppKit.NSView:60:25: note: property declared here
58 | open func setFrameOrigin(_ newOrigin: NSPoint)
59 | open func setFrameSize(_ newSize: NSSize)
60 | @MainActor open var frame: NSRect { get set }
| `- note: property declared here
61 | open var frameRotation: CGFloat { get set }
62 | @available(macOS 10.5, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:33: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:30:26: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
28 | open func viewDidUnhide()
29 | open func addSubview(_ view: NSView)
30 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
| `- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
32 | @available(swift, obsoleted: 3, renamed: "sortSubviews(_:context:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:842:22: warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
840 | imageView.frame = view.frame
841 | #if os(macOS)
842 | view.superview?.addSubview(imageView, positioned: .above, relativeTo: view)
| `- warning: main actor-isolated property 'superview' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
843 | #elseif os(iOS) || os(tvOS) || os(visionOS)
844 | view.superview?.insertSubview(imageView, aboveSubview: view)
AppKit.NSView:5:30: note: property declared here
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
| `- note: property declared here
6 | open var subviews: [NSView] { get set }
7 | open func isDescendant(of view: NSView) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:851:15: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
849 | ]
850 | }
851 | ?? view.subviews.flatMap(addImagesForRenderedViews)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
852 | }
853 |
AppKit.NSView:6:14: note: property declared here
4 | unowned(unsafe) open var window: NSWindow? { get }
5 | unowned(unsafe) open var superview: NSView? { get }
6 | open var subviews: [NSView] { get set }
| `- note: property declared here
7 | open func isDescendant(of view: NSView) -> Bool
8 | @available(swift, obsoleted: 3, renamed: "isDescendant(of:)")
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:918:19: warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
918 | work()
| |- warning: capture of 'work' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
919 | }
920 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:915:17: warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
913 | subscription = wkWebView.observe(\.isLoading, options: [.initial, .new]) {
914 | (webview, change) in
915 | subscription?.invalidate()
| `- warning: reference to captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
916 | subscription = nil
917 | if change.newValue == false {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/View.swift:916:17: warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
914 | (webview, change) in
915 | subscription?.invalidate()
916 | subscription = nil
| `- warning: mutation of captured var 'subscription' in concurrently-executing code; this is an error in the Swift 6 language mode
917 | if change.newValue == false {
918 | work()
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__diffTool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__record' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:465:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
463 |
464 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
465 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'counterMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |
467 | func sanitizePathComponent(_ string: String) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:476:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 | // We need to clean counter between tests executions in order to support test-iterations.
475 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
476 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'registered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
477 |
478 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:361:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
353 | }
354 |
355 | func recordSnapshot() throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot()' part of global actor 'MainActor'
356 | try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
357 | #if !os(Linux) && !os(Windows)
:
359 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
360 | {
361 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
362 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
363 | activity.add(attachment)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:423:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
421 | #if !os(Linux) && !os(Windows)
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
424 | attachments.forEach {
425 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_plistNullNSString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:424:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
424 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
425 | activity.add($0)
426 | }
:
443 |
444 | if record == .failed {
445 | try recordSnapshot()
| `- note: access can happen concurrently
446 | failureMessage += " A new snapshot was automatically recorded."
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__diffTool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__record' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:465:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
463 |
464 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
465 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'counterMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |
467 | func sanitizePathComponent(_ string: String) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:476:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 | // We need to clean counter between tests executions in order to support test-iterations.
475 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
476 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'registered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
477 |
478 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:361:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
353 | }
354 |
355 | func recordSnapshot() throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot()' part of global actor 'MainActor'
356 | try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
357 | #if !os(Linux) && !os(Windows)
:
359 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
360 | {
361 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
362 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
363 | activity.add(attachment)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:423:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
421 | #if !os(Linux) && !os(Windows)
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
424 | attachments.forEach {
425 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_plistNullNSString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:424:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
424 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
425 | activity.add($0)
426 | }
:
443 |
444 | if record == .failed {
445 | try recordSnapshot()
| `- note: access can happen concurrently
446 | failureMessage += " A new snapshot was automatically recorded."
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__diffTool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__record' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:465:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
463 |
464 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
465 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'counterMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |
467 | func sanitizePathComponent(_ string: String) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:476:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 | // We need to clean counter between tests executions in order to support test-iterations.
475 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
476 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'registered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
477 |
478 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:361:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
353 | }
354 |
355 | func recordSnapshot() throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot()' part of global actor 'MainActor'
356 | try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
357 | #if !os(Linux) && !os(Windows)
:
359 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
360 | {
361 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
362 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
363 | activity.add(attachment)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:423:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
421 | #if !os(Linux) && !os(Windows)
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
424 | attachments.forEach {
425 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_plistNullNSString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:424:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
424 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
425 | activity.add($0)
426 | }
:
443 |
444 | if record == .failed {
445 | try recordSnapshot()
| `- note: access can happen concurrently
446 | failureMessage += " A new snapshot was automatically recorded."
447 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:42:12: warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | @_spi(Internals)
42 | public var __diffTool: SnapshotTestingConfiguration.DiffTool = .default
| |- warning: var '__diffTool' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__diffTool' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__diffTool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | /// Whether or not to record all new references.
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:75:12: warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
73 |
74 | @_spi(Internals)
75 | public var __record: SnapshotTestingConfiguration.Record = {
| |- warning: var '__record' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '__record' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__record' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | if let value = ProcessInfo.processInfo.environment["SNAPSHOT_TESTING_RECORD"],
77 | let record = SnapshotTestingConfiguration.Record(rawValue: value)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:465:13: warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
463 |
464 | private let counterQueue = DispatchQueue(label: "co.pointfree.SnapshotTesting.counter")
465 | private var counterMap: [URL: Int] = [:]
| |- warning: var 'counterMap' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'counterMap' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'counterMap' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
466 |
467 | func sanitizePathComponent(_ string: String) -> String {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:476:22: warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
474 | // We need to clean counter between tests executions in order to support test-iterations.
475 | private class CleanCounterBetweenTestCases: NSObject, XCTestObservation {
476 | private static var registered = false
| |- warning: static property 'registered' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'registered' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'registered' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
477 |
478 | static func registerIfNeeded() {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:361:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
353 | }
354 |
355 | func recordSnapshot() throws {
| `- note: add '@MainActor' to make local function 'recordSnapshot()' part of global actor 'MainActor'
356 | try snapshotting.diffing.toData(diffable).write(to: snapshotFileUrl)
357 | #if !os(Linux) && !os(Windows)
:
359 | ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS")
360 | {
361 | XCTContext.runActivity(named: "Attached Recorded Snapshot") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
362 | let attachment = XCTAttachment(contentsOfFile: snapshotFileUrl)
363 | activity.add(attachment)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:423:24: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
421 | #if !os(Linux) && !os(Windows)
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
424 | attachments.forEach {
425 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Common/PlistEncoder.swift:2245:13: warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
2243 | // Since plists do not support null values by default, we will encode them as "$null".
2244 | private let _plistNull = "$null"
2245 | private let _plistNullNSString = NSString(string: _plistNull)
| |- warning: let '_plistNullNSString' is not concurrency-safe because non-'Sendable' type 'NSString' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_plistNullNSString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
2246 |
2247 | //===----------------------------------------------------------------------===//
Foundation.NSString:1:12: note: class 'NSString' does not conform to the 'Sendable' protocol
1 | open class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
| `- note: class 'NSString' does not conform to the 'Sendable' protocol
2 | open var length: Int { get }
3 | open func character(at index: Int) -> unichar
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/AssertSnapshot.swift:424:15: warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
422 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
423 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
424 | attachments.forEach {
| |- warning: sending 'attachments' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'attachments' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
425 | activity.add($0)
426 | }
:
443 |
444 | if record == .failed {
445 | try recordSnapshot()
| `- note: access can happen concurrently
446 | failureMessage += " A new snapshot was automatically recorded."
447 | }
[90/125] Emitting module SwiftSyntax
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:22: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | message: "Use 'assertInlineSnapshot(of:)' from the 'InlineSnapshotTesting' module, instead."
44 | )
45 | public func _verifyInlineSnapshot<Value>(
| `- note: add '@MainActor' to make global function '_verifyInlineSnapshot(matching:as:record:timeout:with:fileID:file:testName:line:column:)' part of global actor 'MainActor'
46 | matching value: @autoclosure () throws -> Value,
47 | as snapshotting: Snapshotting<Value, String>,
:
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | attachments.forEach {
143 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:22: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | message: "Use 'assertInlineSnapshot(of:)' from the 'InlineSnapshotTesting' module, instead."
44 | )
45 | public func _verifyInlineSnapshot<Value>(
| `- note: add '@MainActor' to make global function '_verifyInlineSnapshot(matching:as:record:timeout:with:fileID:file:testName:line:column:)' part of global actor 'MainActor'
46 | matching value: @autoclosure () throws -> Value,
47 | as snapshotting: Snapshotting<Value, String>,
:
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | attachments.forEach {
143 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:22: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | message: "Use 'assertInlineSnapshot(of:)' from the 'InlineSnapshotTesting' module, instead."
44 | )
45 | public func _verifyInlineSnapshot<Value>(
| `- note: add '@MainActor' to make global function '_verifyInlineSnapshot(matching:as:record:timeout:with:fileID:file:testName:line:column:)' part of global actor 'MainActor'
46 | matching value: @autoclosure () throws -> Value,
47 | as snapshotting: Snapshotting<Value, String>,
:
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | attachments.forEach {
143 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:321:13: warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
319 | // accurate. With the FileRecording values we keep track of we modify the files so we can adjust
320 | // line numbers.
321 | private var recordings: Recordings = [:]
| |- warning: var 'recordings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'recordings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'recordings' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
322 |
323 | // Deprecated after 1.11.1:
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Internal/Deprecations.swift:141:22: warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 | message: "Use 'assertInlineSnapshot(of:)' from the 'InlineSnapshotTesting' module, instead."
44 | )
45 | public func _verifyInlineSnapshot<Value>(
| `- note: add '@MainActor' to make global function '_verifyInlineSnapshot(matching:as:record:timeout:with:fileID:file:testName:line:column:)' part of global actor 'MainActor'
46 | matching value: @autoclosure () throws -> Value,
47 | as snapshotting: Snapshotting<Value, String>,
:
139 | #if !os(Linux) && !os(Windows)
140 | if ProcessInfo.processInfo.environment.keys.contains("__XCODE_BUILT_PRODUCTS_DIR_PATHS") {
141 | XCTContext.runActivity(named: "Attached Failure Diff") { activity in
| `- warning: call to main actor-isolated class method 'runActivity(named:block:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
142 | attachments.forEach {
143 | activity.add($0)
XCTest.XCTContext:2:50: note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
1 | extension XCTContext {
2 | @MainActor @preconcurrency public class func runActivity<Result>(named name: String, block: @MainActor (any XCTActivity) throws -> Result) rethrows -> Result
| `- note: calls to class method 'runActivity(named:block:)' from outside of its actor context are implicitly asynchronous
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:338:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
339 |
340 | static var isSupported: Bool {
Metal.MTLDevice:2:17: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.11, *)
2 | public protocol MTLDevice : NSObjectProtocol {
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
3 | var name: String { get }
4 | @available(macOS 10.13, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:199:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
197 |
198 | #if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
199 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
200 | import CoreImage.CIKernel
201 | import MetalPerformanceShaders
:
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| |- note: annotate 'device' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
339 |
340 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:338:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
339 |
340 | static var isSupported: Bool {
Metal.MTLDevice:2:17: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.11, *)
2 | public protocol MTLDevice : NSObjectProtocol {
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
3 | var name: String { get }
4 | @available(macOS 10.13, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:199:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
197 |
198 | #if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
199 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
200 | import CoreImage.CIKernel
201 | import MetalPerformanceShaders
:
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| |- note: annotate 'device' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
339 |
340 | static var isSupported: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:338:16: warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| `- warning: static property 'device' is not concurrency-safe because non-'Sendable' type '(any MTLDevice)?' may have shared mutable state; this is an error in the Swift 6 language mode
339 |
340 | static var isSupported: Bool {
Metal.MTLDevice:2:17: note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
1 | @available(macOS 10.11, *)
2 | public protocol MTLDevice : NSObjectProtocol {
| `- note: protocol 'MTLDevice' does not conform to the 'Sendable' protocol
3 | var name: String { get }
4 | @available(macOS 10.13, *)
/Users/admin/builder/spi-builder-workspace/Sources/SnapshotTesting/Snapshotting/UIImage.swift:199:3: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
197 |
198 | #if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
199 | import Accelerate.vImage
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Metal'
200 | import CoreImage.CIKernel
201 | import MetalPerformanceShaders
:
336 | final class ThresholdImageProcessorKernel: CIImageProcessorKernel {
337 | static let inputThresholdKey = "thresholdValue"
338 | static let device = MTLCreateSystemDefaultDevice()
| |- note: annotate 'device' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
339 |
340 | static var isSupported: Bool {
[98/125] Compiling SwiftSyntax SyntaxProtocol.swift
[99/125] Compiling SwiftSyntax SyntaxText.swift
[100/125] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[101/125] Compiling SwiftSyntax TokenDiagnostic.swift
[102/125] Compiling SwiftSyntax TokenSequence.swift
[103/125] Compiling SwiftSyntax TokenSyntax.swift
[104/125] Compiling SwiftSyntax Trivia.swift
[105/125] Compiling SwiftSyntax Utils.swift
[106/125] Compiling SwiftSyntax ChildNameForKeyPath.swift
[107/125] Compiling SwiftSyntax Keyword.swift
[108/125] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[109/125] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[110/125] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[111/125] Compiling SwiftSyntax SyntaxBaseNodes.swift
[112/125] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[113/125] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[114/125] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[115/125] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[116/125] Compiling SwiftSyntax RawSyntaxValidation.swift
[117/125] Compiling SwiftSyntax SyntaxNodesAB.swift
[118/125] Compiling SwiftSyntax SyntaxNodesC.swift
[119/125] Compiling SwiftSyntax SyntaxNodesD.swift
[120/125] Compiling SwiftSyntax SyntaxNodesEF.swift
[121/125] Compiling SwiftSyntax SyntaxNodesGHI.swift
[122/125] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[123/125] Compiling SwiftSyntax SyntaxNodesOP.swift
[124/125] Compiling SwiftSyntax SyntaxNodesQRS.swift
[125/125] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[126/183] Compiling SwiftDiagnostics Diagnostic.swift
[127/183] Compiling SwiftDiagnostics Message.swift
[128/184] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[129/184] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[130/184] Compiling SwiftDiagnostics Note.swift
[131/184] Compiling SwiftBasicFormat Syntax+Extensions.swift
[132/184] Compiling SwiftBasicFormat InferIndentation.swift
[133/184] Compiling SwiftDiagnostics FixIt.swift
[134/184] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[135/184] Compiling SwiftDiagnostics ANSIDiagnosticDecorator.swift
[136/184] Compiling SwiftDiagnostics BasicDiagnosticDecorator.swift
[137/184] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[138/184] Compiling SwiftDiagnostics Convenience.swift
[139/184] Emitting module SwiftDiagnostics
[140/184] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[141/184] Emitting module SwiftBasicFormat
[142/184] Compiling SwiftBasicFormat BasicFormat.swift
[143/184] Compiling SwiftParser StringLiterals.swift
[144/184] Compiling SwiftParser SwiftParserCompatibility.swift
[145/184] Compiling SwiftParser SwiftVersion.swift
[146/184] Compiling SwiftParser SyntaxUtils.swift
[147/184] Compiling SwiftParser TopLevel.swift
[148/184] Compiling SwiftParser TriviaParser.swift
[149/184] Compiling SwiftParser Types.swift
[150/184] Compiling SwiftParser ExperimentalFeatures.swift
[151/184] Compiling SwiftParser UnicodeScalarExtensions.swift
[152/184] Compiling SwiftParser Lookahead.swift
[153/184] Compiling SwiftParser LoopProgressCondition.swift
[154/184] Compiling SwiftParser Modifiers.swift
[155/184] Compiling SwiftParser Names.swift
[156/188] Compiling SwiftParser TokenConsumer.swift
[157/188] Compiling SwiftParser TokenPrecedence.swift
[158/188] Compiling SwiftParser TokenSpec.swift
[159/188] Compiling SwiftParser TokenSpecSet.swift
[160/188] Compiling SwiftParser Recovery.swift
[161/188] Compiling SwiftParser Specifiers.swift
[162/188] Compiling SwiftParser Statements.swift
[163/188] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[164/188] Compiling SwiftParser Nominals.swift
[165/188] Compiling SwiftParser Parameters.swift
[166/188] Compiling SwiftParser ParseSourceFile.swift
[167/188] Compiling SwiftParser Parser.swift
[168/188] Compiling SwiftParser Patterns.swift
[169/188] Compiling SwiftParser Directives.swift
[170/188] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[171/188] Compiling SwiftParser Expressions.swift
[172/188] Compiling SwiftParser IncrementalParseTransition.swift
[173/188] Compiling SwiftParser IsValidIdentifier.swift
[174/188] Compiling SwiftParser Cursor.swift
[175/188] Compiling SwiftParser Lexeme.swift
[176/188] Compiling SwiftParser LexemeSequence.swift
[177/188] Compiling SwiftParser Lexer.swift
[178/188] Compiling SwiftParser RegexLiteralLexer.swift
[179/188] Compiling SwiftParser Attributes.swift
[180/188] Compiling SwiftParser Availability.swift
[181/188] Compiling SwiftParser CharacterInfo.swift
[182/188] Compiling SwiftParser CollectionNodes+Parsable.swift
[183/188] Compiling SwiftParser Declarations.swift
[184/188] Emitting module SwiftParser
[185/188] Compiling SwiftParser IsLexerClassified.swift
[186/188] Compiling SwiftParser LayoutNodes+Parsable.swift
[187/188] Compiling SwiftParser Parser+TokenSpecSet.swift
[188/188] Compiling SwiftParser TokenSpecStaticMembers.swift
[189/201] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[190/201] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[191/202] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[192/202] Compiling SwiftParserDiagnostics Utils.swift
[193/202] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[194/202] Compiling SwiftParserDiagnostics PresenceUtils.swift
[195/202] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[196/202] Compiling SwiftParserDiagnostics MissingNodesError.swift
[197/202] Compiling SwiftParserDiagnostics MissingTokenError.swift
[198/202] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[199/202] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[200/202] Emitting module SwiftParserDiagnostics
[201/202] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[202/202] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[203/217] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[204/217] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[205/218] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[206/218] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[207/218] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[208/218] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[209/218] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[210/218] Compiling SwiftSyntaxBuilder Indenter.swift
[211/218] Compiling SwiftSyntaxBuilder ListBuilder.swift
[212/218] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[213/218] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[214/218] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[215/218] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[216/218] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[217/218] Emitting module SwiftSyntaxBuilder
[218/218] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[219/221] Compiling InlineSnapshotTesting Exports.swift
[220/221] Emitting module InlineSnapshotTesting
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:385:31: warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
383 | }
384 |
385 | @_spi(Internals) public var inlineSnapshotState: [File: [InlineSnapshot]] = [:]
| |- warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inlineSnapshotState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'inlineSnapshotState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
386 |
387 | private struct TestSource {
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:411:15: warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
409 | }
410 |
411 | private var testSourceCache: [File: TestSource] = [:]
| |- warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSourceCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSourceCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
412 |
413 | private func writeInlineSnapshots() {
[221/221] Compiling InlineSnapshotTesting AssertInlineSnapshot.swift
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:385:31: warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
383 | }
384 |
385 | @_spi(Internals) public var inlineSnapshotState: [File: [InlineSnapshot]] = [:]
| |- warning: var 'inlineSnapshotState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'inlineSnapshotState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'inlineSnapshotState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
386 |
387 | private struct TestSource {
/Users/admin/builder/spi-builder-workspace/Sources/InlineSnapshotTesting/AssertInlineSnapshot.swift:411:15: warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
409 | }
410 |
411 | private var testSourceCache: [File: TestSource] = [:]
| |- warning: var 'testSourceCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'testSourceCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'testSourceCache' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
412 |
413 | private func writeInlineSnapshots() {
Build complete! (47.55s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "601.0.0-prerelease"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "swift-snapshot-testing",
"name" : "swift-snapshot-testing",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "SnapshotTesting",
"targets" : [
"SnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InlineSnapshotTesting",
"targets" : [
"InlineSnapshotTesting"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "SnapshotTestingTests",
"path" : "Tests/SnapshotTestingTests",
"sources" : [
"AssertSnapshotSwiftTests.swift",
"DeprecationTests.swift",
"RecordTests.swift",
"SnapshotTestingTests.swift",
"SnapshotsTraitTests.swift",
"TestHelpers.swift",
"WaitTests.swift",
"WithSnapshotTestingTests.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "SnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "SnapshotTesting",
"path" : "Sources/SnapshotTesting",
"product_memberships" : [
"SnapshotTesting",
"InlineSnapshotTesting"
],
"sources" : [
"AssertSnapshot.swift",
"Async.swift",
"Common/Internal.swift",
"Common/PlistEncoder.swift",
"Common/String+SpecialCharacters.swift",
"Common/View.swift",
"Common/XCTAttachment.swift",
"Diff.swift",
"Diffing.swift",
"Extensions/Wait.swift",
"Internal/Deprecations.swift",
"Internal/RecordIssue.swift",
"SnapshotTestingConfiguration.swift",
"SnapshotsTestTrait.swift",
"Snapshotting.swift",
"Snapshotting/Any.swift",
"Snapshotting/CALayer.swift",
"Snapshotting/CGPath.swift",
"Snapshotting/CaseIterable.swift",
"Snapshotting/Data.swift",
"Snapshotting/Encodable.swift",
"Snapshotting/NSBezierPath.swift",
"Snapshotting/NSImage.swift",
"Snapshotting/NSView.swift",
"Snapshotting/NSViewController.swift",
"Snapshotting/SceneKit.swift",
"Snapshotting/SpriteKit.swift",
"Snapshotting/String.swift",
"Snapshotting/SwiftUIView.swift",
"Snapshotting/UIBezierPath.swift",
"Snapshotting/UIImage.swift",
"Snapshotting/UIView.swift",
"Snapshotting/UIViewController.swift",
"Snapshotting/URLRequest.swift"
],
"type" : "library"
},
{
"c99name" : "InlineSnapshotTestingTests",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTestingTests",
"path" : "Tests/InlineSnapshotTestingTests",
"sources" : [
"AssertInlineSnapshotSwiftTests.swift",
"InlineSnapshotTestingTests.swift"
],
"target_dependencies" : [
"InlineSnapshotTesting"
],
"type" : "test"
},
{
"c99name" : "InlineSnapshotTesting",
"module_type" : "SwiftTarget",
"name" : "InlineSnapshotTesting",
"path" : "Sources/InlineSnapshotTesting",
"product_dependencies" : [
"SwiftParser",
"SwiftSyntax",
"SwiftSyntaxBuilder"
],
"product_memberships" : [
"InlineSnapshotTesting"
],
"sources" : [
"AssertInlineSnapshot.swift",
"Exports.swift"
],
"target_dependencies" : [
"SnapshotTesting"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/mihai8804858/swift-snapshot-testing/main
Repository: mihai8804858/swift-snapshot-testing
Swift version used: 6.0
Target: SnapshotTesting
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'SnapshotTesting'...
Finished extracting symbol information for 'SnapshotTesting'. (7.74s)
Building documentation for 'SnapshotTesting'...
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:94:9-94:13
92 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
93 | /// which this function was called.
94 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
95 | /// which this function was called.
96 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:146:9-146:13
144 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
145 | /// which this function was called.
146 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
147 | /// which this function was called.
148 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:190:9-190:13
188 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
189 | /// which this function was called.
190 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
191 | /// which this function was called.
192 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: External name 'file' used to document parameter
--> ../AssertSnapshot.swift:268:9-268:13
266 | /// directory `__Snapshots__` that sits next to your test file.
267 | /// - timeout: The amount of time a snapshot must be generated in.
268 + /// - file: The file in which failure occurred. Defaults to the file name of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
269 | /// which this function was called.
270 | /// - testName: The name of the test in which failure occurred. Defaults to the function name of
warning: Parameter 'fileID' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: Parameter 'column' is missing documentation
--> ../AssertSnapshot.swift:273:29-273:29
271 | /// the test case in which this function was called.
272 | /// - line: The line number on which failure occurred. Defaults to the line number on which this
273 + /// function was called.
| ╰─suggestion: Document 'column' parameter
274 | /// - Returns: A failure message or, if the value matches, nil.
275 | public func verifySnapshot<Value, Format>(
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting/IntegratingWithTestFrameworks'
--> Articles/IntegratingWithTestFrameworks.md:21:7-21:69
19 |
20 | However, these details have all been hidden away in the SnapshotTesting library. You can simply
21 + use ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)`` in either an `XCTestCase`
22 | subclass _or_ `@Test`, and it will dynamically detect what context it is running in and trigger
23 | the correct test failure:
warning: 'Testing' doesn't exist at '/SnapshotTesting/IntegratingWithTestFrameworks'
--> Articles/IntegratingWithTestFrameworks.md:72:48-72:55
70 | Swift's new testing framework does not currently have a public API for this kind of customization.
71 | There is an experimental feature, called `CustomExecutionTrait`, that does gives us this ability,
72 + and the library provides such a trait called ``Testing/Trait/snapshots(diffTool:record:)``. It can
73 | be attached to any `@Test` or `@Suite` to configure snapshot testing:
74 |
warning: 'Testing' doesn't exist at '/SnapshotTesting/MigratingTo1.17'
--> Articles/MigrationGuides/MigratingTo1.17.md:158:45-158:52
156 |
157 | There is an experimental version of this tool in Swift Testing, called `CustomExecutionTrait`, and
158 + this library provides such a trait called ``Testing/Trait/snapshots(diffTool:record:)``. It allows
159 | you to customize snapshots for a `@Test` or `@Suite`, but to get access to it you must perform an
160 | `@_spi(Experimental)` import of snapshot testing:
warning: No symbol matched 'SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)'. 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'.
--> Extensions/AssertSnapshot.md:1:3-1:85
1 + # ``SnapshotTesting/assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
2 |
3 | ## Topics
warning: No symbol matched 'SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)'. 'Testing' doesn't exist at '/SnapshotTesting'.
--> Extensions/SnapshotsTrait.md:1:3-1:64
1 + # ``SnapshotTesting/Testing/Trait/snapshots(diffTool:record:)``
2 |
3 | ### Configuration
warning: 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' doesn't exist at '/SnapshotTesting'
--> SnapshotTesting.md:9:5-9:67
7 | ### Essentials
8 |
9 + - ``assertSnapshot(of:as:named:record:timeout:file:testName:line:)``
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(of:as:named:record:timeout:fileID:file:testName:line:column:)'
| ├─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'assertSnapshot(matching:as:named:record:timeout:file:testName:line:)'
| ╰─suggestion: Replace 'assertSnapshot(of:as:named:record:timeout:file:testName:line:)' with 'verifySnapshot(of:as:named:record:snapshotDirectory:timeout:fileID:file:testName:line:column:)'
10 | - <doc:IntegratingWithTestFrameworks>
11 | - <doc:MigrationGuides>
warning: 'Testing' doesn't exist at '/SnapshotTesting'
--> SnapshotTesting.md:22:5-22:12
20 | ### Configuration
21 |
22 + - ``Testing/Trait/snapshots(diffTool:record:)``
23 | - ``withSnapshotTesting(record:diffTool:operation:)-2kuyr``
24 | - ``SnapshotTestingConfiguration``
warning: 'Testing' doesn't exist at '/SnapshotTesting/withSnapshotTesting(record:diffTool:operation:)'
--> ../SnapshotTestingConfiguration.swift:8:9-8:16
6 | ///
7 | /// > Note: To customize tests when using Swift's native Testing library, use the
8 + /// > ``Testing/Trait/snapshots(diffTool:record:)`` trait.
9 | ///
10 | /// For example, to specify to put an entire test class in record mode you do the following:Finished building documentation for 'SnapshotTesting' (0.23s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Updating https://github.com/swiftlang/swift-syntax
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.36s)
Updated https://github.com/swiftlang/swift-syntax (0.91s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3168] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.27s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.66s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.0-prerelease-2024-06-12 (0.70s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/57] Compiling SymbolKit Names.swift
[12/57] Compiling SymbolKit SPI.swift
[13/57] Compiling SymbolKit Snippet.swift
[14/57] Compiling SymbolKit Extension.swift
[15/57] Compiling SymbolKit Symbol.swift
[16/57] Compiling SymbolKit SymbolKind.swift
[17/57] Compiling SymbolKit SymbolGraph.swift
[18/57] Compiling SymbolKit GraphCollector.swift
[19/57] Compiling SymbolKit Identifier.swift
[20/57] Compiling SymbolKit KindIdentifier.swift
[21/57] Compiling SymbolKit Location.swift
[22/57] Compiling SymbolKit Mutability.swift
[23/57] Compiling SymbolKit Relationship.swift
[24/57] Compiling SymbolKit RelationshipKind.swift
[25/57] Compiling SymbolKit SourceOrigin.swift
[26/57] Compiling SymbolKit GenericConstraints.swift
[27/57] Compiling SymbolKit Swift.swift
[28/57] Compiling SymbolKit Mixin+Equals.swift
[29/57] Compiling SymbolKit Mixin+Hash.swift
[30/57] Compiling SymbolKit Mixin.swift
[31/57] Compiling SymbolKit LineList.swift
[32/57] Compiling SymbolKit Position.swift
[33/57] Compiling SymbolKit SemanticVersion.swift
[34/57] Compiling SymbolKit AccessControl.swift
[35/57] Compiling SymbolKit Availability.swift
[36/57] Compiling SymbolKit AvailabilityItem.swift
[37/57] Compiling SymbolKit Domain.swift
[38/57] Emitting module SymbolKit
[39/57] Compiling SymbolKit GenericConstraint.swift
[40/57] Compiling SymbolKit GenericParameter.swift
[41/57] Compiling SymbolKit Generics.swift
[42/57] Compiling SymbolKit Namespace.swift
[43/57] Compiling SymbolKit SourceRange.swift
[44/57] Compiling SymbolKit Metadata.swift
[45/57] Compiling SymbolKit Module.swift
[46/57] Compiling SymbolKit OperatingSystem.swift
[47/57] Compiling SymbolKit Platform.swift
[48/57] Emitting module Snippets
[49/57] Compiling Snippets Snippet.swift
[50/57] Compiling Snippets SnippetParser.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SnippetBuildCommand.swift
[57/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.72s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/33] Compiling SnapshotTesting SwiftUIView.swift
[3/33] Compiling SnapshotTesting UIBezierPath.swift
[4/33] Compiling SnapshotTesting UIImage.swift
[5/33] Compiling SnapshotTesting SceneKit.swift
[6/33] Compiling SnapshotTesting SpriteKit.swift
[7/33] Compiling SnapshotTesting String.swift
[8/33] Compiling SnapshotTesting CALayer.swift
[9/33] Compiling SnapshotTesting CGPath.swift
[10/33] Compiling SnapshotTesting CaseIterable.swift
[11/36] Compiling SnapshotTesting Data.swift
[12/36] Compiling SnapshotTesting Encodable.swift
[13/36] Compiling SnapshotTesting NSBezierPath.swift
[14/36] Compiling SnapshotTesting Diffing.swift
[15/36] Compiling SnapshotTesting Wait.swift
[16/36] Compiling SnapshotTesting Deprecations.swift
[17/36] Compiling SnapshotTesting RecordIssue.swift
[18/36] Compiling SnapshotTesting NSImage.swift
[19/36] Compiling SnapshotTesting NSView.swift
[20/36] Compiling SnapshotTesting NSViewController.swift
[21/36] Compiling SnapshotTesting SnapshotTestingConfiguration.swift
[22/36] Compiling SnapshotTesting SnapshotsTestTrait.swift
[23/36] Compiling SnapshotTesting Snapshotting.swift
[24/36] Compiling SnapshotTesting Any.swift
[25/36] Emitting module SnapshotTesting
[26/36] Compiling SnapshotTesting UIView.swift
[27/36] Compiling SnapshotTesting UIViewController.swift
[28/36] Compiling SnapshotTesting URLRequest.swift
[29/36] Compiling SnapshotTesting String+SpecialCharacters.swift
[30/36] Compiling SnapshotTesting View.swift
[31/36] Compiling SnapshotTesting XCTAttachment.swift
[32/36] Compiling SnapshotTesting Diff.swift
[33/36] Compiling SnapshotTesting AssertSnapshot.swift
[34/36] Compiling SnapshotTesting Async.swift
[35/36] Compiling SnapshotTesting Internal.swift
[36/36] Compiling SnapshotTesting PlistEncoder.swift
Build of target: 'SnapshotTesting' complete! (1.88s)
Target: InlineSnapshotTesting
Extracting symbol information for 'InlineSnapshotTesting'...
Finished extracting symbol information for 'InlineSnapshotTesting'. (14.35s)
Building documentation for 'InlineSnapshotTesting'...
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:28:11-28:15
26 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case in
27 | /// which this function was called.
28 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
29 | /// which this function was called.
30 | /// - function: The function where the assertion occurs. The default is the name of the test
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting/InlineSnapshotSyntaxDescriptor'
--> ../AssertInlineSnapshot.swift:220:7-220:109
218 | ///
219 | /// Provide this structure when defining custom snapshot functions that call
220 + /// ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
221 | /// under the hood.
222 | public struct InlineSnapshotSyntaxDescriptor: Hashable {
warning: External name 'file' used to document parameter
--> ../AssertInlineSnapshot.swift:287:13-287:17
285 | /// - fileID: The file ID in which failure occurred. Defaults to the file ID of the test case
286 | /// in which this function was called.
287 + /// - file: The file in which failure occurred. Defaults to the file path of the test case in
| ╰─suggestion: Replace 'file' with 'filePath'
288 | /// which this function was called.
289 | /// - line: The line number on which failure occurred. Defaults to the line number on which
warning: 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' doesn't exist at '/InlineSnapshotTesting'
--> InlineSnapshotTesting.md:71:5-71:107
69 | ### Essentials
70 |
71 + - ``assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)``
| ╰─suggestion: Replace 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:file:function:line:column:)' with 'assertInlineSnapshot(of:as:message:record:timeout:syntaxDescriptor:matches:fileID:file:function:line:column:)'
72 |
73 | ### Writing a custom helperFinished building documentation for 'InlineSnapshotTesting' (0.08s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
Building for debugging...
[0/3] Write swift-version--7754E27361AE5C74.txt
Build of product 'snippet-extract' complete! (0.23s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/7] Compiling SwiftSyntax509 Empty.swift
[3/7] Emitting module SwiftSyntax509
[4/7] Compiling SwiftSyntax600 Empty.swift
[5/7] Emitting module SwiftSyntax600
[6/7] Emitting module SwiftSyntax510
[7/7] Compiling SwiftSyntax510 Empty.swift
[8/71] Compiling SwiftSyntax AbsolutePosition.swift
[9/71] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[10/71] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[11/71] Compiling SwiftSyntax Assert.swift
[12/71] Compiling SwiftSyntax BumpPtrAllocator.swift
[13/71] Compiling SwiftSyntax CommonAncestor.swift
[14/71] Compiling SwiftSyntax Convenience.swift
[15/78] Compiling SwiftSyntax Tokens.swift
[16/78] Compiling SwiftSyntax TriviaPieces.swift
[17/78] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[18/78] Compiling SwiftSyntax RawSyntaxNodesC.swift
[19/78] Compiling SwiftSyntax RawSyntaxNodesD.swift
[20/78] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[21/78] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[22/78] Compiling SwiftSyntax RawSyntaxTokenView.swift
[23/78] Compiling SwiftSyntax SourceEdit.swift
[24/78] Compiling SwiftSyntax SourceLength.swift
[25/78] Compiling SwiftSyntax SourceLocation.swift
[26/78] Compiling SwiftSyntax SourcePresence.swift
[27/78] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[28/78] Compiling SwiftSyntax Syntax.swift
[29/78] Compiling SwiftSyntax SyntaxCollections.swift
[30/78] Compiling SwiftSyntax SyntaxEnum.swift
[31/78] Compiling SwiftSyntax SyntaxKind.swift
[32/78] Compiling SwiftSyntax SyntaxRewriter.swift
[33/78] Compiling SwiftSyntax SyntaxTraits.swift
[34/78] Compiling SwiftSyntax SyntaxVisitor.swift
[35/78] Compiling SwiftSyntax TokenKind.swift
[36/78] Compiling SwiftSyntax SyntaxProtocol.swift
[37/78] Compiling SwiftSyntax SyntaxText.swift
[38/78] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[39/78] Compiling SwiftSyntax TokenDiagnostic.swift
[40/78] Compiling SwiftSyntax TokenSequence.swift
[41/78] Compiling SwiftSyntax TokenSyntax.swift
[42/78] Compiling SwiftSyntax Trivia.swift
[43/78] Compiling SwiftSyntax CustomTraits.swift
[44/78] Compiling SwiftSyntax Identifier.swift
[45/78] Compiling SwiftSyntax MemoryLayout.swift
[46/78] Compiling SwiftSyntax MissingNodeInitializers.swift
[47/78] Compiling SwiftSyntax RawSyntax.swift
[48/78] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[49/78] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[50/78] Emitting module SwiftSyntax
[51/78] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[52/78] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[53/78] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[54/78] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[55/78] Compiling SwiftSyntax RawSyntaxValidation.swift
[56/78] Compiling SwiftSyntax SyntaxNodesAB.swift
[57/78] Compiling SwiftSyntax SyntaxNodesC.swift
[58/78] Compiling SwiftSyntax SyntaxNodesD.swift
[59/78] Compiling SwiftSyntax SyntaxNodesEF.swift
[60/78] Compiling SwiftSyntax SyntaxNodesGHI.swift
[61/78] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[62/78] Compiling SwiftSyntax SyntaxNodesOP.swift
[63/78] Compiling SwiftSyntax SyntaxNodesQRS.swift
[64/78] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[65/78] Compiling SwiftSyntax SyntaxArena.swift
[66/78] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[67/78] Compiling SwiftSyntax SyntaxChildren.swift
[68/78] Compiling SwiftSyntax SyntaxCollection.swift
[69/78] Compiling SwiftSyntax SyntaxHashable.swift
[70/78] Compiling SwiftSyntax SyntaxIdentifier.swift
[71/78] Compiling SwiftSyntax SyntaxNodeStructure.swift
[72/78] Compiling SwiftSyntax Utils.swift
[73/78] Compiling SwiftSyntax ChildNameForKeyPath.swift
[74/78] Compiling SwiftSyntax Keyword.swift
[75/78] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[76/78] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[77/78] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[78/78] Compiling SwiftSyntax SyntaxBaseNodes.swift
[79/136] Compiling SwiftDiagnostics Message.swift
[80/137] Emitting module SwiftDiagnostics
[81/137] Compiling SwiftDiagnostics Note.swift
[82/137] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[83/137] Compiling SwiftDiagnostics FixIt.swift
[84/137] Compiling SwiftDiagnostics ANSIDiagnosticDecorator.swift
[85/137] Compiling SwiftDiagnostics BasicDiagnosticDecorator.swift
[86/137] Compiling SwiftDiagnostics Diagnostic.swift
[87/137] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[88/137] Compiling SwiftDiagnostics Convenience.swift
[89/137] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[90/137] Compiling SwiftBasicFormat Syntax+Extensions.swift
[91/137] Compiling SwiftBasicFormat BasicFormat.swift
[92/137] Emitting module SwiftBasicFormat
[93/137] Compiling SwiftBasicFormat InferIndentation.swift
[94/137] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[95/137] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[96/137] Compiling SwiftParser TokenConsumer.swift
[97/137] Compiling SwiftParser TokenPrecedence.swift
[98/137] Compiling SwiftParser TokenSpec.swift
[99/137] Compiling SwiftParser TokenSpecSet.swift
[100/141] Compiling SwiftParser TopLevel.swift
[101/141] Compiling SwiftParser TriviaParser.swift
[102/141] Compiling SwiftParser Types.swift
[103/141] Compiling SwiftParser ExperimentalFeatures.swift
[104/141] Compiling SwiftParser Recovery.swift
[105/141] Compiling SwiftParser Specifiers.swift
[106/141] Compiling SwiftParser Statements.swift
[107/141] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[108/141] Compiling SwiftParser StringLiterals.swift
[109/141] Compiling SwiftParser SwiftParserCompatibility.swift
[110/141] Compiling SwiftParser SwiftVersion.swift
[111/141] Compiling SwiftParser SyntaxUtils.swift
[112/141] Emitting module SwiftParser
[113/141] Compiling SwiftParser UnicodeScalarExtensions.swift
[114/141] Compiling SwiftParser Lookahead.swift
[115/141] Compiling SwiftParser LoopProgressCondition.swift
[116/141] Compiling SwiftParser Modifiers.swift
[117/141] Compiling SwiftParser Names.swift
[118/141] Compiling SwiftParser Directives.swift
[119/141] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[120/141] Compiling SwiftParser Expressions.swift
[121/141] Compiling SwiftParser IncrementalParseTransition.swift
[122/141] Compiling SwiftParser IsValidIdentifier.swift
[123/141] Compiling SwiftParser Cursor.swift
[124/141] Compiling SwiftParser Lexeme.swift
[125/141] Compiling SwiftParser LexemeSequence.swift
[126/141] Compiling SwiftParser Lexer.swift
[127/141] Compiling SwiftParser RegexLiteralLexer.swift
[128/141] Compiling SwiftParser Nominals.swift
[129/141] Compiling SwiftParser Parameters.swift
[130/141] Compiling SwiftParser ParseSourceFile.swift
[131/141] Compiling SwiftParser Parser.swift
[132/141] Compiling SwiftParser Patterns.swift
[133/141] Compiling SwiftParser Attributes.swift
[134/141] Compiling SwiftParser Availability.swift
[135/141] Compiling SwiftParser CharacterInfo.swift
[136/141] Compiling SwiftParser CollectionNodes+Parsable.swift
[137/141] Compiling SwiftParser Declarations.swift
[138/141] Compiling SwiftParser IsLexerClassified.swift
[139/141] Compiling SwiftParser LayoutNodes+Parsable.swift
[140/141] Compiling SwiftParser Parser+TokenSpecSet.swift
[141/141] Compiling SwiftParser TokenSpecStaticMembers.swift
[142/154] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[143/155] Compiling SwiftParserDiagnostics Utils.swift
[144/155] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[145/155] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[146/155] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[147/155] Compiling SwiftParserDiagnostics PresenceUtils.swift
[148/155] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[149/155] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[150/155] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[151/155] Compiling SwiftParserDiagnostics MissingNodesError.swift
[152/155] Compiling SwiftParserDiagnostics MissingTokenError.swift
[153/155] Emitting module SwiftParserDiagnostics
[154/155] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[155/155] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[156/170] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[157/170] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[158/170] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[159/170] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[160/171] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[161/171] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[162/171] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[163/171] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[164/171] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[165/171] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[166/171] Compiling SwiftSyntaxBuilder Indenter.swift
[167/171] Compiling SwiftSyntaxBuilder ListBuilder.swift
[168/171] Emitting module SwiftSyntaxBuilder
[169/171] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[170/171] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[171/171] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[172/174] Emitting module InlineSnapshotTesting
[173/174] Compiling InlineSnapshotTesting Exports.swift
[174/174] Compiling InlineSnapshotTesting AssertInlineSnapshot.swift
Build of target: 'InlineSnapshotTesting' complete! (14.00s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mihai8804858/swift-snapshot-testing/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mihai8804858/swift-snapshot-testing/main/linkable-paths.json
378
5 /Users/admin/builder/spi-builder-workspace/.docs/mihai8804858/swift-snapshot-testing/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/mihai8804858/swift-snapshot-testing/main
File count: 378
Doc size: 5.0MB
Preparing doc bundle ...
Uploading prod-mihai8804858-swift-snapshot-testing-main-10ed3e09.zip to s3://spi-docs-inbox/prod-mihai8804858-swift-snapshot-testing-main-10ed3e09.zip
Copying... [15%]
Copying... [22%]
Copying... [37%]
Copying... [45%]
Copying... [52%]
Copying... [67%]
Copying... [74%]
Copying... [82%]
Copying... [97%]
Copying... [100%]
Done.