The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of CodeEditorView, reference main (617b57), with Swift 6.1 for macOS (SPM) on 4 Dec 2025 17:37:20 UTC.

Swift 6 data race errors: 49

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

 32 |   var textFont:            Font? { get }
    |       `- note: requirement 'textFont' declared here
 33 |   var textContainerOrigin: CGPoint { get }
 34 |
    :
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
284 |   var textFont:            Font? { font }
    |       `- warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:285:7: warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 31 |   var textBackgroundColor: Color? { get }
 32 |   var textFont:            Font? { get }
 33 |   var textContainerOrigin: CGPoint { get }
    |       `- note: requirement 'textContainerOrigin' declared here
 34 |
 35 |   /// The text displayed by the text view.
    :
283 |   var textBackgroundColor: Color? { backgroundColor }
284 |   var textFont:            Font? { font }
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
    |       `- warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
286 |
287 |   var text: String! {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:287:7: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 35 |   /// The text displayed by the text view.
 36 |   ///
 37 |   var text: String! { get set }
    |       `- note: requirement 'text' declared here
 38 |
 39 |   /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
    :
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
287 |   var text: String! {
    |       `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
288 |     get { string }
289 |     set { string = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:292:7: warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 39 |   /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
 40 |   ///
 41 |   var insertionPoint: Int? { get }
    |       `- note: requirement 'insertionPoint' declared here
 42 |
 43 |   /// The current (single range) selection of the text view.
    :
290 |   }
291 |
292 |   var insertionPoint: Int? {
    |       `- warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
293 |     if let selection = selectedRanges.first as? NSRange, selection.length == 0 { return selection.location }
294 |     else { return nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: requirement 'selectedRange' declared here
 43 |   /// The current (single range) selection of the text view.
 44 |   ///
 45 |   var selectedRange: NSRange { get set }
    |       `- note: requirement 'selectedRange' declared here
 46 |
 47 |   /// The set of lines that have characters that are included in the current selection. (This may be a multi-selection,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:297:7: warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 48 |   /// and hence, a non-contiguous range.)
 49 |   ///
 50 |   var selectedLines: Set<Int> { get }
    |       `- note: requirement 'selectedLines' declared here
 51 |
 52 |   /// The bounds of the view.
    :
295 |   }
296 |
297 |   var selectedLines: Set<Int> {
    |       `- warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
298 |     guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: requirement 'bounds' declared here
 52 |   /// The bounds of the view.
 53 |   ///
 54 |   var bounds: CGRect { get set }
    |       `- note: requirement 'bounds' declared here
 55 |
 56 |   /// The visible portion of the text view. (This only accounts for portions of the text view that are obscured through
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:307:7: warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 57 |   /// visibility in a scroll view.)
 58 |   ///
 59 |   var documentVisibleRect: CGRect { get }
    |       `- note: requirement 'documentVisibleRect' declared here
 60 |
 61 |   /// The size of the whole document (after layout).
    :
305 |   }
306 |
307 |   var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
    |       `- warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
308 |
309 |   var contentSize: CGSize { bounds.size }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:309:7: warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 61 |   /// The size of the whole document (after layout).
 62 |   ///
 63 |   var contentSize: CGSize { get }
    |       `- note: requirement 'contentSize' declared here
 64 |
 65 |   /// Temporarily highlight the visible part of the given range.
    :
307 |   var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
308 |
309 |   var contentSize: CGSize { bounds.size }
    |       `- warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView.showFindIndicator:3:24: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func showFindIndicator(for charRange: NSRange)}
  |                        |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
  |                        `- note: add 'nonisolated' to 'showFindIndicator(for:)' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:67:8: note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
 65 |   /// Temporarily highlight the visible part of the given range.
 66 |   ///
 67 |   func showFindIndicator(for range: NSRange)
    |        `- note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
 68 |
 69 |   /// Marks the given rectangle of the current view as needing redrawing.
AppKit.NSView.setNeedsDisplay:2:22: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSView {
2 | @MainActor open func setNeedsDisplay(_ invalidRect: NSRect)}
  |                      |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
  |                      `- note: add 'nonisolated' to 'setNeedsDisplay' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:71:8: note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
 69 |   /// Marks the given rectangle of the current view as needing redrawing.
 70 |   ///
 71 |   func setNeedsDisplay(_ invalidRect: CGRect)
    |        `- note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
 72 | }
 73 |
[31/48] Compiling CodeEditorView ViewModifiers.swift
[32/48] Compiling CodeEditorView Theme.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:196:21: warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | extension Theme {
195 |
196 |   public static var defaultDark: Theme
    |                     |- warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultDark' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultDark' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
197 |     = Theme(colourScheme: .dark,
198 |             fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:218:21: warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
216 |             invisiblesColour: OSColor(red: 0.33, green: 0.37, blue: 0.42, alpha: 1.0))
217 |
218 |   public static var defaultLight: Theme
    |                     |- warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultLight' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultLight' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 |     = Theme(colourScheme: .light,
220 |             fontName: "SFMono-Medium",
[33/48] Compiling CodeEditorView UIHostingView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:196:21: warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | extension Theme {
195 |
196 |   public static var defaultDark: Theme
    |                     |- warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultDark' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultDark' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
197 |     = Theme(colourScheme: .dark,
198 |             fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:218:21: warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
216 |             invisiblesColour: OSColor(red: 0.33, green: 0.37, blue: 0.42, alpha: 1.0))
217 |
218 |   public static var defaultLight: Theme
    |                     |- warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultLight' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultLight' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 |     = Theme(colourScheme: .light,
220 |             fontName: "SFMono-Medium",
[34/48] Compiling CodeEditorView LineMap.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:478:5: warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     `- warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
  9 | import SwiftUI
 10 |
 11 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 12 |
 13 |
    :
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     |- note: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
    |     |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
    |     |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
    |     |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
    |     |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
[35/48] Compiling CodeEditorView MessageViews.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:478:5: warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     `- warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
  9 | import SwiftUI
 10 |
 11 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 12 |
 13 |
    :
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     |- note: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
    |     |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
    |     |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
    |     |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
    |     |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
[36/48] Compiling CodeEditorView MinimapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MinimapView.swift:219:7: warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
190 | /// coloured boxes instead of actual glyphs.
191 | ///
192 | class MinimapLayoutFragment: NSTextLayoutFragment {
    |       `- note: class 'MinimapLayoutFragment' does not conform to the 'Sendable' protocol
193 |
194 |   private var _textLineFragments: [NSTextLineFragment] = []
    :
217 |       //     not possible in a closure weakly capturing `self` (which we need to do here to avoid a retain cycle).
218 |       //     Hence, we defer to an auxilliary method.
219 |       self?.updateTextLineFragments()
    |       `- warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
220 |     }
221 |   }
[37/48] Compiling CodeEditorView OSDefinitions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MinimapView.swift:219:7: warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
190 | /// coloured boxes instead of actual glyphs.
191 | ///
192 | class MinimapLayoutFragment: NSTextLayoutFragment {
    |       `- note: class 'MinimapLayoutFragment' does not conform to the 'Sendable' protocol
193 |
194 |   private var _textLineFragments: [NSTextLineFragment] = []
    :
217 |       //     not possible in a closure weakly capturing `self` (which we need to do here to avoid a retain cycle).
218 |       //     Hence, we defer to an auxilliary method.
219 |       self?.updateTextLineFragments()
    |       `- warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
220 |     }
221 |   }
[38/48] Compiling CodeEditorView ScrollViewExtras.swift
[39/48] Compiling CodeEditorView TextContentStorageExtras.swift
[40/48] Emitting module CodeEditorView
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:123:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
111 | @objc public protocol CodeEditorActions {
112 |
113 |   func duplicate(_ sender: Any?)
    |        `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    :
118 | }
119 |
120 | extension CodeView: CodeEditorActions {
    |                     `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
121 |
122 | #if os(macOS)
123 |   @objc public func duplicate(_ sender: Any?) { duplicate() }
    |                     |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
124 | #elseif os(iOS) || os(visionOS)
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
112 |
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
    |        `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    :
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
    |                     |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    :
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
    |                     |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:129:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
117 |   func commentSelection(_ sender: Any?)
118 | }
    :
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
    |                     |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:130:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    |        `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
118 | }
119 |
    :
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
    |                     |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:229:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
206 |   /// Specification of the editor layout.
207 |   ///
208 |   public struct LayoutConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'LayoutConfiguration' conform to the 'Sendable' protocol
209 |
210 |     /// Show the minimap.
    :
227 |     }
228 |
229 |     public static let standard = LayoutConfiguration(showMinimap: true, wrapText: true)
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 |     // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 |   public struct IndentationConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 |     public enum Preference: Equatable {
    :
326 |     }
327 |
328 |     public static let standard = IndentationConfiguration(preference: .preferSpaces,
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |                                                           tabWidth: 2,
330 |                                                           indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 |   public struct SetActions {
    |                 `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 |     let setActions: (Actions) -> Void
397 |
398 |     public static let ignore: SetActions = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 |     public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 |   public struct SetInfo {
    |                 `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 |     let setInfo: (Info) -> Void
490 |
491 |     public static let ignore: SetInfo = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 |     public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:907:21: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
905 | ///
906 | public struct CodeEditorTheme: EnvironmentKey {
907 |   public static var defaultValue: Theme = Theme.defaultLight
    |                     |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
908 | }
909 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:478:5: warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     `- warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
  9 | import SwiftUI
 10 |
 11 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 12 |
 13 |
    :
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
    |     |- note: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
    |     |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 |     message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 |     message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
    |     |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 |                        description: AttributedString("This doesn't seem right and also totally unclear " +
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
    |     |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 |                                                         "what it is supposed to do.")),
483 |     message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 |     message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
    |     |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
   |               `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 |   /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:279:7: warning: main actor-isolated property 'optTextContainer' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 22 |
 23 |   // This is necessary as these members are optional in AppKit and not optional in UIKit.
 24 |   var optTextContainer:      NSTextContainer?      { get }
    |       `- note: requirement 'optTextContainer' declared here
 25 |   var optCodeStorage:        CodeStorage?          { get }
 26 |
    :
272 | import AppKit
273 |
274 | extension NSTextView: TextView {
    |                       `- note: add '@preconcurrency' to the 'TextView' conformance to defer isolation checking to run time
275 |   typealias Color = NSColor
276 |   typealias Font  = NSFont
277 |
278 |   var optTextLayoutManager:  NSTextLayoutManager?  { textLayoutManager }
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
    |       `- warning: main actor-isolated property 'optTextContainer' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 23 |   // This is necessary as these members are optional in AppKit and not optional in UIKit.
 24 |   var optTextContainer:      NSTextContainer?      { get }
 25 |   var optCodeStorage:        CodeStorage?          { get }
    |       `- note: requirement 'optCodeStorage' declared here
 26 |
 27 |   // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
    :
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
    |       `- warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:278:7: warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 26 |
 27 |   // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
 28 |   var optTextLayoutManager:  NSTextLayoutManager?  { get }
    |       `- note: requirement 'optTextLayoutManager' declared here
 29 |   var optTextContentStorage: NSTextContentStorage? { get }
 30 |
    :
276 |   typealias Font  = NSFont
277 |
278 |   var optTextLayoutManager:  NSTextLayoutManager?  { textLayoutManager }
    |       `- warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:280:7: warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 27 |   // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
 28 |   var optTextLayoutManager:  NSTextLayoutManager?  { get }
 29 |   var optTextContentStorage: NSTextContentStorage? { get }
    |       `- note: requirement 'optTextContentStorage' declared here
 30 |
 31 |   var textBackgroundColor: Color? { get }
    :
278 |   var optTextLayoutManager:  NSTextLayoutManager?  { textLayoutManager }
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
    |       `- warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
282 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:283:7: warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 29 |   var optTextContentStorage: NSTextContentStorage? { get }
 30 |
 31 |   var textBackgroundColor: Color? { get }
    |       `- note: requirement 'textBackgroundColor' declared here
 32 |   var textFont:            Font? { get }
 33 |   var textContainerOrigin: CGPoint { get }
    :
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
    |       `- warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
284 |   var textFont:            Font? { font }
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:284:7: warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 30 |
 31 |   var textBackgroundColor: Color? { get }
 32 |   var textFont:            Font? { get }
    |       `- note: requirement 'textFont' declared here
 33 |   var textContainerOrigin: CGPoint { get }
 34 |
    :
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
284 |   var textFont:            Font? { font }
    |       `- warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:285:7: warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 31 |   var textBackgroundColor: Color? { get }
 32 |   var textFont:            Font? { get }
 33 |   var textContainerOrigin: CGPoint { get }
    |       `- note: requirement 'textContainerOrigin' declared here
 34 |
 35 |   /// The text displayed by the text view.
    :
283 |   var textBackgroundColor: Color? { backgroundColor }
284 |   var textFont:            Font? { font }
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
    |       `- warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
286 |
287 |   var text: String! {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:287:7: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 35 |   /// The text displayed by the text view.
 36 |   ///
 37 |   var text: String! { get set }
    |       `- note: requirement 'text' declared here
 38 |
 39 |   /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
    :
285 |   var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
287 |   var text: String! {
    |       `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
288 |     get { string }
289 |     set { string = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:292:7: warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 39 |   /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
 40 |   ///
 41 |   var insertionPoint: Int? { get }
    |       `- note: requirement 'insertionPoint' declared here
 42 |
 43 |   /// The current (single range) selection of the text view.
    :
290 |   }
291 |
292 |   var insertionPoint: Int? {
    |       `- warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
293 |     if let selection = selectedRanges.first as? NSRange, selection.length == 0 { return selection.location }
294 |     else { return nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
 93 |
 94 | @property NSRange selectedRange;
    |                   `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 95 |
 96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: requirement 'selectedRange' declared here
 43 |   /// The current (single range) selection of the text view.
 44 |   ///
 45 |   var selectedRange: NSRange { get set }
    |       `- note: requirement 'selectedRange' declared here
 46 |
 47 |   /// The set of lines that have characters that are included in the current selection. (This may be a multi-selection,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:297:7: warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 48 |   /// and hence, a non-contiguous range.)
 49 |   ///
 50 |   var selectedLines: Set<Int> { get }
    |       `- note: requirement 'selectedLines' declared here
 51 |
 52 |   /// The bounds of the view.
    :
295 |   }
296 |
297 |   var selectedLines: Set<Int> {
    |       `- warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
298 |     guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
    |                  `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: requirement 'bounds' declared here
 52 |   /// The bounds of the view.
 53 |   ///
 54 |   var bounds: CGRect { get set }
    |       `- note: requirement 'bounds' declared here
 55 |
 56 |   /// The visible portion of the text view. (This only accounts for portions of the text view that are obscured through
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:307:7: warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 57 |   /// visibility in a scroll view.)
 58 |   ///
 59 |   var documentVisibleRect: CGRect { get }
    |       `- note: requirement 'documentVisibleRect' declared here
 60 |
 61 |   /// The size of the whole document (after layout).
    :
305 |   }
306 |
307 |   var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
    |       `- warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
308 |
309 |   var contentSize: CGSize { bounds.size }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:309:7: warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
 61 |   /// The size of the whole document (after layout).
 62 |   ///
 63 |   var contentSize: CGSize { get }
    |       `- note: requirement 'contentSize' declared here
 64 |
 65 |   /// Temporarily highlight the visible part of the given range.
    :
307 |   var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
308 |
309 |   var contentSize: CGSize { bounds.size }
    |       `- warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView.showFindIndicator:3:24: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @available(macOS 10.5, *)
3 |   @MainActor open func showFindIndicator(for charRange: NSRange)}
  |                        |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
  |                        `- note: add 'nonisolated' to 'showFindIndicator(for:)' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:67:8: note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
 65 |   /// Temporarily highlight the visible part of the given range.
 66 |   ///
 67 |   func showFindIndicator(for range: NSRange)
    |        `- note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
 68 |
 69 |   /// Marks the given rectangle of the current view as needing redrawing.
AppKit.NSView.setNeedsDisplay:2:22: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSView {
2 | @MainActor open func setNeedsDisplay(_ invalidRect: NSRect)}
  |                      |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
  |                      `- note: add 'nonisolated' to 'setNeedsDisplay' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:71:8: note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
 69 |   /// Marks the given rectangle of the current view as needing redrawing.
 70 |   ///
 71 |   func setNeedsDisplay(_ invalidRect: CGRect)
    |        `- note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
 72 | }
 73 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:196:21: warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | extension Theme {
195 |
196 |   public static var defaultDark: Theme
    |                     |- warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultDark' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultDark' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
197 |     = Theme(colourScheme: .dark,
198 |             fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:218:21: warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
216 |             invisiblesColour: OSColor(red: 0.33, green: 0.37, blue: 0.42, alpha: 1.0))
217 |
218 |   public static var defaultLight: Theme
    |                     |- warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultLight' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultLight' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 |     = Theme(colourScheme: .light,
220 |             fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
 438 |             try await startLanguageService()
 439 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated 'self.codeStorageDelegate' to nonisolated instance method 'change(language:for:)' risks causing data races between nonisolated and main actor-isolated uses
 438 |             try await startLanguageService()
 439 |
[41/48] Compiling CodeEditorView Constants.swift
[42/48] Compiling CodeEditorView GutterView.swift
[43/48] Compiling CodeEditorView CodeStorageDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:694:58: warning: non-sendable result type '[[(token: LanguageConfiguration.Token, range: NSRange)]]' (aka 'Array<Array<(token: LanguageConfiguration.Token, range: _NSRange)>>') cannot be sent from nonisolated context in call to instance method 'tokens(for:)'; this is an error in the Swift 6 language mode
692 |
693 |     do {
694 |       if let semanticTokens = try await languageService?.tokens(for: lines) {
    |                                                          `- warning: non-sendable result type '[[(token: LanguageConfiguration.Token, range: NSRange)]]' (aka 'Array<Array<(token: LanguageConfiguration.Token, range: _NSRange)>>') cannot be sent from nonisolated context in call to instance method 'tokens(for:)'; this is an error in the Swift 6 language mode
695 |
696 |         try Task.checkCancellation()
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageConfiguration.swift:68:15: note: enum 'Token' does not conform to the 'Sendable' protocol
 66 |   /// Supported kinds of tokens.
 67 |   ///
 68 |   public enum Token: Equatable {
    |               `- note: enum 'Token' does not conform to the 'Sendable' protocol
 69 |     case roundBracketOpen
 70 |     case roundBracketClose
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 22 | import Rearrange
 23 |
 24 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 25 |
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:675:27: warning: main actor-isolated property 'needsDisplay' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 673 |         //     is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
 674 |         //     line numbering.
 675 |         self?.gutterView?.needsDisplay = true
     |                           `- warning: main actor-isolated property 'needsDisplay' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 676 |       }
 677 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw.  To check whether a view is in a window, call -window.  To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
    |                `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:675:15: warning: main actor-isolated property 'gutterView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 386 |
 387 |   // Subviews
 388 |   var gutterView:               GutterView?
     |       `- note: property declared here
 389 |   var currentLineHighlightView: CodeBackgroundHighlightView?
 390 |   var minimapView:              NSTextView?
     :
 673 |         //     is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
 674 |         //     line numbering.
 675 |         self?.gutterView?.needsDisplay = true
     |               `- warning: main actor-isolated property 'gutterView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 676 |       }
 677 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:686:15: warning: call to main actor-isolated instance method 'considerCompletionFor(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 684 |
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
     |               `- warning: call to main actor-isolated instance method 'considerCompletionFor(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
 688 |       }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:549:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
547 |   ///       reported by the text view.
548 |   ///
549 |   func considerCompletionFor(range: NSRange) {
    |        |- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
    |        `- note: main actor isolation inferred from inheritance from class 'NSTextView'
550 |
551 |     /// We don't want to automatically trigger completion for ranges that do not produce sensible results, such as
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:686:50: warning: main actor-isolated property 'rangeForUserCompletion' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 684 |
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
     |                                                  `- warning: main actor-isolated property 'rangeForUserCompletion' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
 688 |       }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:249:30: note: property declared here
247 |
248 | // Usually returns the partial range from the most recent beginning of a word up to the insertion point.  May be overridden by subclassers to alter the range to be completed.  Returning (NSNotFound, 0) suppresses completion.
249 | @property (readonly) NSRange rangeForUserCompletion;
    |                              `- note: property declared here
250 |
251 | // Returns an array of potential completions, in the order to be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range.  May be overridden by subclassers to modify or override this list.  Returning nil or a zero-length array suppresses completion.   The selected item index may optionally be set to indicate which completion should be initially selected; default is 0, and -1 indicates no selection.  This method should call the delegate method textView:completions:forPartialWordRange:indexOfSelectedItem: if implemented.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:687:15: warning: call to main actor-isolated instance method 'invalidateMessageViews(withIDs:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
     |               `- warning: call to main actor-isolated instance method 'invalidateMessageViews(withIDs:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 688 |       }
 689 |
     :
1363 |   /// IDs that do not have an associated message view cause no harm.
1364 |   ///
1365 |   fileprivate func invalidateMessageViews(withIDs ids: [LineInfo.MessageBundle.ID]? = nil) {
     |                    |- note: calls to instance method 'invalidateMessageViews(withIDs:)' from outside of its actor context are implicitly asynchronous
     |                    `- note: main actor isolation inferred from inheritance from class 'NSTextView'
1366 |
1367 |     for id in ids ?? Array<LineInfo.MessageBundle.ID>(messageViews.keys) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:687:53: warning: main actor-isolated property 'codeStorageDelegate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 381 |   // Delegates
 382 |   fileprivate let codeViewDelegate =                 CodeViewDelegate()
 383 |   fileprivate var codeStorageDelegate:               CodeStorageDelegate
     |                   `- note: property declared here
 384 |   fileprivate let minimapTextLayoutManagerDelegate = MinimapTextLayoutManagerDelegate()
 385 |   fileprivate let minimapCodeViewDelegate =          CodeViewDelegate()
     :
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
     |                                                     `- warning: main actor-isolated property 'codeStorageDelegate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 688 |       }
 689 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:696:28: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 694 |                                                queue: .main) { [weak self] _ in
 695 |
 696 |         self?.infoPopover?.close()
     |                            `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 697 |       }
 698 |
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:696:15: warning: main actor-isolated property 'infoPopover' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 484 |   /// Holds the info popover if there is one.
 485 |   ///
 486 |   var infoPopover: InfoPopover?
     |       `- note: property declared here
 487 |
 488 |   /// Holds the completion panel. It is always available, but open, closed, and positioned on demand.
     :
 694 |                                                queue: .main) { [weak self] _ in
 695 |
 696 |         self?.infoPopover?.close()
     |               `- warning: main actor-isolated property 'infoPopover' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 697 |       }
 698 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1444:38: warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1442 |
1443 |     guard let codeView    = textView as? CodeView,
1444 |           let codeStorage = codeView.optCodeStorage,
     |                                      `- warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1445 |           let delegate    = codeStorage.delegate as? CodeStorageDelegate,
1446 |           let line        = delegate.lineMap.lineOf(index: characterIndex),
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: note: property declared here
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
    |       `- note: property declared here
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1454:47: warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1452 |     // always space for a minimal truncated message (provided the text container is wide enough to accomodate that).
1453 |     if let messageBundleId = delegate.messages(at: line)?.id,
1454 |        calculatedRect.width > 2 * MessageView.minimumInlineWidth
     |                                               `- warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1455 |     {
1456 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:333:14: note: static property declared here
331 |
332 |   // FIXME: This should maybe depend on the font size and may need to be configurable.
333 |   static let minimumInlineWidth = CGFloat(60)
    |              `- note: static property declared here
334 |
335 |   /// The distance of the popup view from the right side of the text container.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1457:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1455 |     {
1456 |
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1458:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1456 |
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
1460 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1459:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1460 |
1461 |       // If the bundle has a telescope, determine the telescope character index.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1463:33: warning: main actor-isolated property 'messageViews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: property declared here
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1461 |       // If the bundle has a telescope, determine the telescope character index.
1462 |
1463 |       if let lines   = codeView.messageViews[messageBundleId]?.telescope,
     |                                 `- warning: main actor-isolated property 'messageViews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1464 |          let oneLine = delegate.lineMap.lookup(line: line + lines)
1465 |       {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1466:18: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1464 |          let oneLine = delegate.lineMap.lookup(line: line + lines)
1465 |       {
1466 |         codeView.messageViews[messageBundleId]?.characterIndexTelescope = oneLine.range.max
     |                  `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1467 |       }
1468 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1474:76: warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1472 |
1473 |       return CGRect(origin: calculatedRect.origin,
1474 |                     size: CGSize(width: calculatedRect.width - MessageView.minimumInlineWidth,
     |                                                                            `- warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1475 |                                  height: calculatedRect.height))
1476 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:333:14: note: static property declared here
331 |
332 |   // FIXME: This should maybe depend on the font size and may need to be configurable.
333 |   static let minimumInlineWidth = CGFloat(60)
    |              `- note: static property declared here
334 |
335 |   /// The distance of the popup view from the right side of the text container.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:215:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
213 |
214 |   deinit {
215 |     Task { [languageService] in
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
216 |       try await languageService?.stop()
    |                 `- note: closure captures 'languageService' which is accessible to code in the current task
217 |     }
218 |   }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:374:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
372 |     let skipDidChangeDocument = skipNextChangeNotificationToLanguageService
373 |     skipNextChangeNotificationToLanguageService = false
374 |     Task { [editedRange, delta, lines, weak languageService, weak self] in
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
375 |       guard let languageService else { return }
    |                 `- note: closure captures non-Sendable 'languageService'
376 |
377 |       do {
    :
388 |         logger.trace("LSP: Could not deliver document change notification; restarting language service: \(err)")
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
    |                     `- note: closure captures non-Sendable 'self'
391 |                 let languageService
392 |           else { return }
393 |
394 |           try await languageService.stop()
395 |           try await languageService.openDocument(with: textStorage.string,
    |                                                        `- note: closure captures non-Sendable 'textStorage'
396 |                                                  locationService: self.lineMapLocationConverter)
397 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:694:58: warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
692 |
693 |     do {
694 |       if let semanticTokens = try await languageService?.tokens(for: lines) {
    |                                                          |- warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
    |                                                          `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'tokens(for:)' risks causing races in between main actor-isolated and nonisolated uses
695 |
696 |         try Task.checkCancellation()
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:401:19: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
399 |       }
400 |
401 |       await self?.requestSemanticTokens(for: lines, in: textStorage)
    |                   |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated 'textStorage' to main actor-isolated instance method 'requestSemanticTokens(for:in:)' risks causing data races between main actor-isolated and task-isolated uses
402 |     }
403 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:401:19: warning: sending value of non-Sendable type 'CodeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
399 |       }
400 |
401 |       await self?.requestSemanticTokens(for: lines, in: textStorage)
    |                   |- warning: sending value of non-Sendable type 'CodeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated value of non-Sendable type 'CodeStorageDelegate' to main actor-isolated instance method 'requestSemanticTokens(for:in:)' risks causing races in between task-isolated and main actor-isolated uses
402 |     }
403 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:390:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
388 |         logger.trace("LSP: Could not deliver document change notification; restarting language service: \(err)")
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
391 |                 let languageService
392 |           else { return }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:391:21: warning: sending 'languageService' risks causing data races; this is an error in the Swift 6 language mode
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
391 |                 let languageService
    |                     |- warning: sending 'languageService' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'languageService' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
392 |           else { return }
393 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:395:56: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
393 |
394 |           try await languageService.stop()
395 |           try await languageService.openDocument(with: textStorage.string,
    |                                                        |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: task-isolated 'textStorage' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
396 |                                                  locationService: self.lineMapLocationConverter)
397 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:745:5: warning: cannot access property 'frameChangedNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 743 |
 744 |   deinit {
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'frameChangedNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
   8 | //  which forms the heart of the code editor.
   9 |
  10 | import os
     | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  11 | import Combine
  12 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:746:5: warning: cannot access property 'didChangeNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 744 |   deinit {
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'didChangeNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 748 |   }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:747:5: warning: cannot access property 'didChangeSelectionNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'didChangeSelectionNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 748 |   }
 749 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:718:33: warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
 716 |     if let languageService = codeStorageDelegate.languageService {
 717 |
 718 |       try await languageService.openDocument(with: textStorage.string,
     |                                 |- warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
     |                                 `- note: sending main actor-isolated 'self.codeStorageDelegate.lineMapLocationConverter' to nonisolated instance method 'openDocument(with:locationService:)' risks causing data races between nonisolated and main actor-isolated uses
 719 |                                              locationService: codeStorageDelegate.lineMapLocationConverter)
 720 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:718:33: warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
 716 |     if let languageService = codeStorageDelegate.languageService {
 717 |
 718 |       try await languageService.openDocument(with: textStorage.string,
     |                                 |- warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
     |                                 `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'openDocument(with:locationService:)' risks causing races in between main actor-isolated and nonisolated uses
 719 |                                              locationService: codeStorageDelegate.lineMapLocationConverter)
 720 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
 438 |             try await startLanguageService()
 439 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated 'self.codeStorageDelegate' to nonisolated instance method 'change(language:for:)' risks causing data races between nonisolated and main actor-isolated uses
 438 |             try await startLanguageService()
 439 |
[44/48] Compiling CodeEditorView CodeView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:694:58: warning: non-sendable result type '[[(token: LanguageConfiguration.Token, range: NSRange)]]' (aka 'Array<Array<(token: LanguageConfiguration.Token, range: _NSRange)>>') cannot be sent from nonisolated context in call to instance method 'tokens(for:)'; this is an error in the Swift 6 language mode
692 |
693 |     do {
694 |       if let semanticTokens = try await languageService?.tokens(for: lines) {
    |                                                          `- warning: non-sendable result type '[[(token: LanguageConfiguration.Token, range: NSRange)]]' (aka 'Array<Array<(token: LanguageConfiguration.Token, range: _NSRange)>>') cannot be sent from nonisolated context in call to instance method 'tokens(for:)'; this is an error in the Swift 6 language mode
695 |
696 |         try Task.checkCancellation()
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageConfiguration.swift:68:15: note: enum 'Token' does not conform to the 'Sendable' protocol
 66 |   /// Supported kinds of tokens.
 67 |   ///
 68 |   public enum Token: Equatable {
    |               `- note: enum 'Token' does not conform to the 'Sendable' protocol
 69 |     case roundBracketOpen
 70 |     case roundBracketClose
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 22 | import Rearrange
 23 |
 24 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 25 |
 26 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:675:27: warning: main actor-isolated property 'needsDisplay' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 673 |         //     is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
 674 |         //     line numbering.
 675 |         self?.gutterView?.needsDisplay = true
     |                           `- warning: main actor-isolated property 'needsDisplay' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 676 |       }
 677 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw.  To check whether a view is in a window, call -window.  To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
    |                `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:675:15: warning: main actor-isolated property 'gutterView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 386 |
 387 |   // Subviews
 388 |   var gutterView:               GutterView?
     |       `- note: property declared here
 389 |   var currentLineHighlightView: CodeBackgroundHighlightView?
 390 |   var minimapView:              NSTextView?
     :
 673 |         //     is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
 674 |         //     line numbering.
 675 |         self?.gutterView?.needsDisplay = true
     |               `- warning: main actor-isolated property 'gutterView' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 676 |       }
 677 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:686:15: warning: call to main actor-isolated instance method 'considerCompletionFor(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 684 |
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
     |               `- warning: call to main actor-isolated instance method 'considerCompletionFor(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
 688 |       }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:549:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
547 |   ///       reported by the text view.
548 |   ///
549 |   func considerCompletionFor(range: NSRange) {
    |        |- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
    |        `- note: main actor isolation inferred from inheritance from class 'NSTextView'
550 |
551 |     /// We don't want to automatically trigger completion for ranges that do not produce sensible results, such as
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:686:50: warning: main actor-isolated property 'rangeForUserCompletion' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 684 |
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
     |                                                  `- warning: main actor-isolated property 'rangeForUserCompletion' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
 688 |       }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:249:30: note: property declared here
247 |
248 | // Usually returns the partial range from the most recent beginning of a word up to the insertion point.  May be overridden by subclassers to alter the range to be completed.  Returning (NSNotFound, 0) suppresses completion.
249 | @property (readonly) NSRange rangeForUserCompletion;
    |                              `- note: property declared here
250 |
251 | // Returns an array of potential completions, in the order to be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range.  May be overridden by subclassers to modify or override this list.  Returning nil or a zero-length array suppresses completion.   The selected item index may optionally be set to indicate which completion should be initially selected; default is 0, and -1 indicates no selection.  This method should call the delegate method textView:completions:forPartialWordRange:indexOfSelectedItem: if implemented.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:687:15: warning: call to main actor-isolated instance method 'invalidateMessageViews(withIDs:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
     |               `- warning: call to main actor-isolated instance method 'invalidateMessageViews(withIDs:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 688 |       }
 689 |
     :
1363 |   /// IDs that do not have an associated message view cause no harm.
1364 |   ///
1365 |   fileprivate func invalidateMessageViews(withIDs ids: [LineInfo.MessageBundle.ID]? = nil) {
     |                    |- note: calls to instance method 'invalidateMessageViews(withIDs:)' from outside of its actor context are implicitly asynchronous
     |                    `- note: main actor isolation inferred from inheritance from class 'NSTextView'
1366 |
1367 |     for id in ids ?? Array<LineInfo.MessageBundle.ID>(messageViews.keys) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:687:53: warning: main actor-isolated property 'codeStorageDelegate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 381 |   // Delegates
 382 |   fileprivate let codeViewDelegate =                 CodeViewDelegate()
 383 |   fileprivate var codeStorageDelegate:               CodeStorageDelegate
     |                   `- note: property declared here
 384 |   fileprivate let minimapTextLayoutManagerDelegate = MinimapTextLayoutManagerDelegate()
 385 |   fileprivate let minimapCodeViewDelegate =          CodeViewDelegate()
     :
 685 | //        self?.infoPopover?.close()
 686 |         self?.considerCompletionFor(range: self!.rangeForUserCompletion)
 687 |         self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
     |                                                     `- warning: main actor-isolated property 'codeStorageDelegate' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 688 |       }
 689 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:696:28: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 694 |                                                queue: .main) { [weak self] _ in
 695 |
 696 |         self?.infoPopover?.close()
     |                            `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 697 |       }
 698 |
AppKit.NSPopover.close:2:22: note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
1 | class NSPopover {
2 | @MainActor open func close()}
  |                      |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:696:15: warning: main actor-isolated property 'infoPopover' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 484 |   /// Holds the info popover if there is one.
 485 |   ///
 486 |   var infoPopover: InfoPopover?
     |       `- note: property declared here
 487 |
 488 |   /// Holds the completion panel. It is always available, but open, closed, and positioned on demand.
     :
 694 |                                                queue: .main) { [weak self] _ in
 695 |
 696 |         self?.infoPopover?.close()
     |               `- warning: main actor-isolated property 'infoPopover' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
 697 |       }
 698 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1444:38: warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1442 |
1443 |     guard let codeView    = textView as? CodeView,
1444 |           let codeStorage = codeView.optCodeStorage,
     |                                      `- warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1445 |           let delegate    = codeStorage.delegate as? CodeStorageDelegate,
1446 |           let line        = delegate.lineMap.lineOf(index: characterIndex),
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: note: property declared here
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
    |       `- note: property declared here
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1454:47: warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1452 |     // always space for a minimal truncated message (provided the text container is wide enough to accomodate that).
1453 |     if let messageBundleId = delegate.messages(at: line)?.id,
1454 |        calculatedRect.width > 2 * MessageView.minimumInlineWidth
     |                                               `- warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1455 |     {
1456 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:333:14: note: static property declared here
331 |
332 |   // FIXME: This should maybe depend on the font size and may need to be configurable.
333 |   static let minimumInlineWidth = CGFloat(60)
    |              `- note: static property declared here
334 |
335 |   /// The distance of the popup view from the right side of the text container.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1457:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1455 |     {
1456 |
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1458:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1456 |
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
1460 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1459:16: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1457 |       codeView.messageViews[messageBundleId]?.characterIndex    = characterIndex
1458 |       codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1459 |       codeView.messageViews[messageBundleId]?.geometry = nil                      // invalidate the geometry
     |                `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1460 |
1461 |       // If the bundle has a telescope, determine the telescope character index.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1463:33: warning: main actor-isolated property 'messageViews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: property declared here
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1461 |       // If the bundle has a telescope, determine the telescope character index.
1462 |
1463 |       if let lines   = codeView.messageViews[messageBundleId]?.telescope,
     |                                 `- warning: main actor-isolated property 'messageViews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1464 |          let oneLine = delegate.lineMap.lookup(line: line + lines)
1465 |       {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1466:18: warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
 472 |   /// Keeps track of the set of message views.
 473 |   ///
 474 |   var messageViews: MessageViews = [:]
     |       `- note: mutation of this property is only permitted within the actor
 475 |
 476 |   /// For the consumption of the diagnostics stream.
     :
1464 |          let oneLine = delegate.lineMap.lookup(line: line + lines)
1465 |       {
1466 |         codeView.messageViews[messageBundleId]?.characterIndexTelescope = oneLine.range.max
     |                  `- warning: main actor-isolated property 'messageViews' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
1467 |       }
1468 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1474:76: warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1472 |
1473 |       return CGRect(origin: calculatedRect.origin,
1474 |                     size: CGSize(width: calculatedRect.width - MessageView.minimumInlineWidth,
     |                                                                            `- warning: main actor-isolated static property 'minimumInlineWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
1475 |                                  height: calculatedRect.height))
1476 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:333:14: note: static property declared here
331 |
332 |   // FIXME: This should maybe depend on the font size and may need to be configurable.
333 |   static let minimumInlineWidth = CGFloat(60)
    |              `- note: static property declared here
334 |
335 |   /// The distance of the popup view from the right side of the text container.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:215:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
213 |
214 |   deinit {
215 |     Task { [languageService] in
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
216 |       try await languageService?.stop()
    |                 `- note: closure captures 'languageService' which is accessible to code in the current task
217 |     }
218 |   }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:374:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
372 |     let skipDidChangeDocument = skipNextChangeNotificationToLanguageService
373 |     skipNextChangeNotificationToLanguageService = false
374 |     Task { [editedRange, delta, lines, weak languageService, weak self] in
    |          `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
375 |       guard let languageService else { return }
    |                 `- note: closure captures non-Sendable 'languageService'
376 |
377 |       do {
    :
388 |         logger.trace("LSP: Could not deliver document change notification; restarting language service: \(err)")
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
    |                     `- note: closure captures non-Sendable 'self'
391 |                 let languageService
392 |           else { return }
393 |
394 |           try await languageService.stop()
395 |           try await languageService.openDocument(with: textStorage.string,
    |                                                        `- note: closure captures non-Sendable 'textStorage'
396 |                                                  locationService: self.lineMapLocationConverter)
397 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:694:58: warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
692 |
693 |     do {
694 |       if let semanticTokens = try await languageService?.tokens(for: lines) {
    |                                                          |- warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
    |                                                          `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'tokens(for:)' risks causing races in between main actor-isolated and nonisolated uses
695 |
696 |         try Task.checkCancellation()
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:401:19: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
399 |       }
400 |
401 |       await self?.requestSemanticTokens(for: lines, in: textStorage)
    |                   |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated 'textStorage' to main actor-isolated instance method 'requestSemanticTokens(for:in:)' risks causing data races between main actor-isolated and task-isolated uses
402 |     }
403 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:401:19: warning: sending value of non-Sendable type 'CodeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
399 |       }
400 |
401 |       await self?.requestSemanticTokens(for: lines, in: textStorage)
    |                   |- warning: sending value of non-Sendable type 'CodeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated value of non-Sendable type 'CodeStorageDelegate' to main actor-isolated instance method 'requestSemanticTokens(for:in:)' risks causing races in between task-isolated and main actor-isolated uses
402 |     }
403 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:390:21: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
388 |         logger.trace("LSP: Could not deliver document change notification; restarting language service: \(err)")
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
    |                     |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
391 |                 let languageService
392 |           else { return }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:391:21: warning: sending 'languageService' risks causing data races; this is an error in the Swift 6 language mode
389 |         Task {@MainActor [weak languageService] in
390 |           guard let self,
391 |                 let languageService
    |                     |- warning: sending 'languageService' risks causing data races; this is an error in the Swift 6 language mode
    |                     `- note: task-isolated 'languageService' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
392 |           else { return }
393 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:395:56: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
393 |
394 |           try await languageService.stop()
395 |           try await languageService.openDocument(with: textStorage.string,
    |                                                        |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
    |                                                        `- note: task-isolated 'textStorage' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
396 |                                                  locationService: self.lineMapLocationConverter)
397 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:745:5: warning: cannot access property 'frameChangedNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 743 |
 744 |   deinit {
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'frameChangedNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
   8 | //  which forms the heart of the code editor.
   9 |
  10 | import os
     | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  11 | import Combine
  12 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:746:5: warning: cannot access property 'didChangeNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 744 |   deinit {
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'didChangeNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 748 |   }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:747:5: warning: cannot access property 'didChangeSelectionNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 745 |     if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 746 |     if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
 747 |     if let observer = didChangeSelectionNotificationObserver { NotificationCenter.default.removeObserver(observer) }
     |     `- warning: cannot access property 'didChangeSelectionNotificationObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
 748 |   }
 749 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:718:33: warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
 716 |     if let languageService = codeStorageDelegate.languageService {
 717 |
 718 |       try await languageService.openDocument(with: textStorage.string,
     |                                 |- warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
     |                                 `- note: sending main actor-isolated 'self.codeStorageDelegate.lineMapLocationConverter' to nonisolated instance method 'openDocument(with:locationService:)' risks causing data races between nonisolated and main actor-isolated uses
 719 |                                              locationService: codeStorageDelegate.lineMapLocationConverter)
 720 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:718:33: warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
 716 |     if let languageService = codeStorageDelegate.languageService {
 717 |
 718 |       try await languageService.openDocument(with: textStorage.string,
     |                                 |- warning: sending value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
     |                                 `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'openDocument(with:locationService:)' risks causing races in between main actor-isolated and nonisolated uses
 719 |                                              locationService: codeStorageDelegate.lineMapLocationConverter)
 720 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
 438 |             try await startLanguageService()
 439 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:437:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
 435 |           do {
 436 |
 437 |             try await codeStorageDelegate.change(language: language, for: codeStorage)
     |                                           |- warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
     |                                           `- note: sending main actor-isolated 'self.codeStorageDelegate' to nonisolated instance method 'change(language:for:)' risks causing data races between nonisolated and main actor-isolated uses
 438 |             try await startLanguageService()
 439 |
[45/48] Compiling CodeEditorView CodeEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:229:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
206 |   /// Specification of the editor layout.
207 |   ///
208 |   public struct LayoutConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'LayoutConfiguration' conform to the 'Sendable' protocol
209 |
210 |     /// Show the minimap.
    :
227 |     }
228 |
229 |     public static let standard = LayoutConfiguration(showMinimap: true, wrapText: true)
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 |     // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 |   public struct IndentationConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 |     public enum Preference: Equatable {
    :
326 |     }
327 |
328 |     public static let standard = IndentationConfiguration(preference: .preferSpaces,
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |                                                           tabWidth: 2,
330 |                                                           indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 |   public struct SetActions {
    |                 `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 |     let setActions: (Actions) -> Void
397 |
398 |     public static let ignore: SetActions = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 |     public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 |   public struct SetInfo {
    |                 `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 |     let setInfo: (Info) -> Void
490 |
491 |     public static let ignore: SetInfo = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 |     public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:907:21: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
905 | ///
906 | public struct CodeEditorTheme: EnvironmentKey {
907 |   public static var defaultValue: Theme = Theme.defaultLight
    |                     |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
908 | }
909 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 |           // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 |           if let scrollView {
743 |             context.coordinator.scrollPositionDidChange(scrollView)
    |                                 `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 |           }
745 |         }
    :
884 |
885 |     @MainActor
886 |     func scrollPositionDidChange(_ scrollView: NSScrollView) {
    |          `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
887 |       guard !updatingView else { return }
888 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:21: warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
741 |           // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 |           if let scrollView {
743 |             context.coordinator.scrollPositionDidChange(scrollView)
    |                     `- warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
744 |           }
745 |         }
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
  |                                       `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:872:31: warning: main actor-isolated property 'selectedRanges' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
867 |     func textDidChange(_ textView: NSTextView) { }
868 |
869 |     func selectionDidChange(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
870 |       guard !updatingView else { return }
871 |
872 |       let newValue = textView.selectedRanges.map{ $0.rangeValue }
    |                               `- warning: main actor-isolated property 'selectedRanges' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
873 |       if self.position.selections != newValue {
874 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:327:38: note: property declared here
325 | /*************************** Selected/Marked range ***************************/
326 |
327 | @property (copy) NSArray<NSValue *> *selectedRanges;
    |                                      `- note: property declared here
328 |
329 | // These multiple-range methods supersede the corresponding single-range methods.  The ranges argument must be a non-nil, non-empty array of objects responding to rangeValue.  The return value of selectedRanges obeys the same restrictions, and in addition its elements are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:876:64: warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
867 |     func textDidChange(_ textView: NSTextView) { }
868 |
869 |     func selectionDidChange(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
870 |       guard !updatingView else { return }
871 |
    :
874 |
875 |         self.position.selections  = newValue
876 |         if let codeStorageDelegate = ((textView as? CodeView)?.optCodeStorage as? CodeStorage)?.delegate
    |                                                                `- warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
877 |                                        as? CodeStorageDelegate
878 |         {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: note: property declared here
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
    |       `- note: property declared here
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
[46/48] Compiling CodeEditorView CodeStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:229:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
206 |   /// Specification of the editor layout.
207 |   ///
208 |   public struct LayoutConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'LayoutConfiguration' conform to the 'Sendable' protocol
209 |
210 |     /// Show the minimap.
    :
227 |     }
228 |
229 |     public static let standard = LayoutConfiguration(showMinimap: true, wrapText: true)
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.LayoutConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 |     // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 |   public struct IndentationConfiguration: Equatable, RawRepresentable {
    |                 `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 |     public enum Preference: Equatable {
    :
326 |     }
327 |
328 |     public static let standard = IndentationConfiguration(preference: .preferSpaces,
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 |                                                           tabWidth: 2,
330 |                                                           indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 |   public struct SetActions {
    |                 `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 |     let setActions: (Actions) -> Void
397 |
398 |     public static let ignore: SetActions = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 |     public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 |   public struct SetInfo {
    |                 `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 |     let setInfo: (Info) -> Void
490 |
491 |     public static let ignore: SetInfo = .init({ _ in })
    |                       |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 |     public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:907:21: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
905 | ///
906 | public struct CodeEditorTheme: EnvironmentKey {
907 |   public static var defaultValue: Theme = Theme.defaultLight
    |                     |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
908 | }
909 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 |           // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 |           if let scrollView {
743 |             context.coordinator.scrollPositionDidChange(scrollView)
    |                                 `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 |           }
745 |         }
    :
884 |
885 |     @MainActor
886 |     func scrollPositionDidChange(_ scrollView: NSScrollView) {
    |          `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
887 |       guard !updatingView else { return }
888 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:21: warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
741 |           // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 |           if let scrollView {
743 |             context.coordinator.scrollPositionDidChange(scrollView)
    |                     `- warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
744 |           }
745 |         }
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
  |                                       `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:872:31: warning: main actor-isolated property 'selectedRanges' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
867 |     func textDidChange(_ textView: NSTextView) { }
868 |
869 |     func selectionDidChange(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
870 |       guard !updatingView else { return }
871 |
872 |       let newValue = textView.selectedRanges.map{ $0.rangeValue }
    |                               `- warning: main actor-isolated property 'selectedRanges' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
873 |       if self.position.selections != newValue {
874 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:327:38: note: property declared here
325 | /*************************** Selected/Marked range ***************************/
326 |
327 | @property (copy) NSArray<NSValue *> *selectedRanges;
    |                                      `- note: property declared here
328 |
329 | // These multiple-range methods supersede the corresponding single-range methods.  The ranges argument must be a non-nil, non-empty array of objects responding to rangeValue.  The return value of selectedRanges obeys the same restrictions, and in addition its elements are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:876:64: warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
867 |     func textDidChange(_ textView: NSTextView) { }
868 |
869 |     func selectionDidChange(_ textView: NSTextView) {
    |          `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
870 |       guard !updatingView else { return }
871 |
    :
874 |
875 |         self.position.selections  = newValue
876 |         if let codeStorageDelegate = ((textView as? CodeView)?.optCodeStorage as? CodeStorage)?.delegate
    |                                                                `- warning: main actor-isolated property 'optCodeStorage' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
877 |                                        as? CodeStorageDelegate
878 |         {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: note: property declared here
279 |   var optTextContainer:      NSTextContainer?      { textContainer }
280 |   var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 |   var optCodeStorage:        CodeStorage?          { textStorage as? CodeStorage }
    |       `- note: property declared here
282 |
283 |   var textBackgroundColor: Color? { backgroundColor }
[47/48] Compiling CodeEditorView CodeActions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:333:13: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
331 |                                                                     queue: nil) { [weak self] _notification in
332 |
333 |       self?.close()
    |             `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
334 |     }
335 |   }
    :
341 |   override var canBecomeKey: Bool { true }
342 |
343 |   override func close() {
    |                 |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
    |                 `- note: main actor isolation inferred from inheritance from class 'NSPanel'
344 |     // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
345 |     // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:406:56: warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
404 |         guard let self else { return }
405 |         for item in self.viewState.completions.items.enumerated() {
406 |           if let refinedItem = try? await item.element.refine() {
    |                                                        `- warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
407 |
408 |             try Task.checkCancellation()    // NB: Important if a new completion request has been made in the meantime.
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:54:17: note: struct 'Completion' does not conform to the 'Sendable' protocol
 52 |   /// A single completion item.
 53 |   ///
 54 |   public struct Completion: Identifiable {
    |                 `- note: struct 'Completion' does not conform to the 'Sendable' protocol
 55 |
 56 |     /// Unique identifier in the current list of completions that remains stable during narrowing down and widening
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:12:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 10 | import os
 11 |
 12 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 13 |
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:506:71: warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
504 |
505 |       let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
506 |           completions                     = try await languageService.completions(at: location, reason: reason)
    |                                                                       `- warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
507 |       try Task.checkCancellation()   // may have been cancelled in the meantime due to further user action
508 |       show(completions: completions, for: rangeForUserCompletion, explicitTrigger: explicitTrigger)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:50:15: note: struct 'Completions' does not conform to the 'Sendable' protocol
 48 | /// A set of code completions for a specific code position.
 49 | ///
 50 | public struct Completions {
    |               `- note: struct 'Completions' does not conform to the 'Sendable' protocol
 51 |
 52 |   /// A single completion item.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:123:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
111 | @objc public protocol CodeEditorActions {
112 |
113 |   func duplicate(_ sender: Any?)
    |        `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    :
118 | }
119 |
120 | extension CodeView: CodeEditorActions {
    |                     `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
121 |
122 | #if os(macOS)
123 |   @objc public func duplicate(_ sender: Any?) { duplicate() }
    |                     |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
124 | #elseif os(iOS) || os(visionOS)
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
112 |
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
    |        `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    :
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
    |                     |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    :
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
    |                     |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:129:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
117 |   func commentSelection(_ sender: Any?)
118 | }
    :
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
    |                     |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:130:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    |        `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
118 | }
119 |
    :
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
    |                     |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:24: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 52 | }
 53 |
 54 | private func send(_ action: Selector) {
    |              `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
 55 | #if os(macOS)
 56 |   NSApplication.shared.sendAction(action, to: nil, from: nil)
    |                        `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 57 | #elseif os(iOS) || os(visionOS)
 58 |   UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
AppKit.NSApplication.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool}
  |                      |- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:17: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 52 | }
 53 |
 54 | private func send(_ action: Selector) {
    |              `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
 55 | #if os(macOS)
 56 |   NSApplication.shared.sendAction(action, to: nil, from: nil)
    |                 `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 57 | #elseif os(iOS) || os(visionOS)
 58 |   UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:338:5: warning: cannot access property 'didResignObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
336 |
337 |   deinit {
338 |     if let didResignObserver { NotificationCenter.default.removeObserver(didResignObserver) }
    |     `- warning: cannot access property 'didResignObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
339 |   }
340 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  7 |
  8 | import Combine
  9 | import SwiftUI
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 10 | import os
 11 |
[48/48] Compiling CodeEditorView CodeEditing.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:333:13: warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
331 |                                                                     queue: nil) { [weak self] _notification in
332 |
333 |       self?.close()
    |             `- warning: call to main actor-isolated instance method 'close()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
334 |     }
335 |   }
    :
341 |   override var canBecomeKey: Bool { true }
342 |
343 |   override func close() {
    |                 |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
    |                 `- note: main actor isolation inferred from inheritance from class 'NSPanel'
344 |     // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
345 |     // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:406:56: warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
404 |         guard let self else { return }
405 |         for item in self.viewState.completions.items.enumerated() {
406 |           if let refinedItem = try? await item.element.refine() {
    |                                                        `- warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
407 |
408 |             try Task.checkCancellation()    // NB: Important if a new completion request has been made in the meantime.
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:54:17: note: struct 'Completion' does not conform to the 'Sendable' protocol
 52 |   /// A single completion item.
 53 |   ///
 54 |   public struct Completion: Identifiable {
    |                 `- note: struct 'Completion' does not conform to the 'Sendable' protocol
 55 |
 56 |     /// Unique identifier in the current list of completions that remains stable during narrowing down and widening
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:12:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 10 | import os
 11 |
 12 | import LanguageSupport
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
 13 |
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:506:71: warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
504 |
505 |       let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
506 |           completions                     = try await languageService.completions(at: location, reason: reason)
    |                                                                       `- warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
507 |       try Task.checkCancellation()   // may have been cancelled in the meantime due to further user action
508 |       show(completions: completions, for: rangeForUserCompletion, explicitTrigger: explicitTrigger)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:50:15: note: struct 'Completions' does not conform to the 'Sendable' protocol
 48 | /// A set of code completions for a specific code position.
 49 | ///
 50 | public struct Completions {
    |               `- note: struct 'Completions' does not conform to the 'Sendable' protocol
 51 |
 52 |   /// A single completion item.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:123:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
111 | @objc public protocol CodeEditorActions {
112 |
113 |   func duplicate(_ sender: Any?)
    |        `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    :
118 | }
119 |
120 | extension CodeView: CodeEditorActions {
    |                     `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
121 |
122 | #if os(macOS)
123 |   @objc public func duplicate(_ sender: Any?) { duplicate() }
    |                     |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
124 | #elseif os(iOS) || os(visionOS)
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
112 |
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
    |        `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    :
125 |   @objc public override func duplicate(_ sender: Any?) { duplicate() }
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
    |                     |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
113 |   func duplicate(_ sender: Any?)
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    :
126 | #endif
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
    |                     |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:129:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
114 |   func reindent(_ sender: Any?)
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
    |        `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
117 |   func commentSelection(_ sender: Any?)
118 | }
    :
127 |   @objc public func reindent(_ sender: Any?) { reindent() }
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
    |                     |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:130:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
115 |   func shiftLeft(_ sender: Any?)
116 |   func shiftRight(_ sender: Any?)
117 |   func commentSelection(_ sender: Any?)
    |        `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
118 | }
119 |
    :
128 |   @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
129 |   @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
130 |   @objc public func commentSelection(_ sender: Any?) { comment() }
    |                     |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
    |                     `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
131 | }
132 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:24: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 52 | }
 53 |
 54 | private func send(_ action: Selector) {
    |              `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
 55 | #if os(macOS)
 56 |   NSApplication.shared.sendAction(action, to: nil, from: nil)
    |                        `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
 57 | #elseif os(iOS) || os(visionOS)
 58 |   UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
AppKit.NSApplication.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool}
  |                      |- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:17: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 52 | }
 53 |
 54 | private func send(_ action: Selector) {
    |              `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
 55 | #if os(macOS)
 56 |   NSApplication.shared.sendAction(action, to: nil, from: nil)
    |                 `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
 57 | #elseif os(iOS) || os(visionOS)
 58 |   UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
    |                                                             `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:338:5: warning: cannot access property 'didResignObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
336 |
337 |   deinit {
338 |     if let didResignObserver { NotificationCenter.default.removeObserver(didResignObserver) }
    |     `- warning: cannot access property 'didResignObserver' with a non-sendable type '(any NSObjectProtocol)?' from nonisolated deinit; this is an error in the Swift 6 language mode
339 |   }
340 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 13 | @class NSString, NSMethodSignature, NSInvocation;
 14 |
 15 | @protocol NSObject
    |           `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
 16 |
 17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  7 |
  8 | import Combine
  9 | import SwiftUI
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
 10 | import os
 11 |
Build complete! (22.06s)
Fetching https://github.com/ChimeHQ/Rearrange.git
[1/569] Fetching rearrange
Fetched https://github.com/ChimeHQ/Rearrange.git from cache (1.13s)
Computing version for https://github.com/ChimeHQ/Rearrange.git
Computed https://github.com/ChimeHQ/Rearrange.git at 1.8.1 (4.37s)
Creating working copy for https://github.com/ChimeHQ/Rearrange.git
Working copy of https://github.com/ChimeHQ/Rearrange.git resolved at 1.8.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rearrange",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/Rearrange.git"
    }
  ],
  "manifest_display_name" : "CodeEditorView",
  "name" : "CodeEditorView",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LanguageSupport",
      "targets" : [
        "LanguageSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CodeEditorView",
      "targets" : [
        "CodeEditorView"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LanguageSupport",
      "module_type" : "SwiftTarget",
      "name" : "LanguageSupport",
      "path" : "Sources/LanguageSupport",
      "product_dependencies" : [
        "Rearrange"
      ],
      "product_memberships" : [
        "LanguageSupport",
        "CodeEditorView"
      ],
      "sources" : [
        "AgdaConfiguration.swift",
        "CabalConfiguration.swift",
        "CypherConfiguration.swift",
        "HaskellConfiguration.swift",
        "LanguageConfiguration.swift",
        "LanguageService.swift",
        "Location.swift",
        "Message.swift",
        "PythonConfiguration.swift",
        "SQLiteConfiguration.swift",
        "SwiftConfiguration.swift",
        "Tokeniser.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodeEditorView",
      "module_type" : "SwiftTarget",
      "name" : "CodeEditorView",
      "path" : "Sources/CodeEditorView",
      "product_dependencies" : [
        "Rearrange"
      ],
      "product_memberships" : [
        "CodeEditorView"
      ],
      "sources" : [
        "CodeActions.swift",
        "CodeEditing.swift",
        "CodeEditor.swift",
        "CodeStorage.swift",
        "CodeStorageDelegate.swift",
        "CodeView.swift",
        "Constants.swift",
        "GutterView.swift",
        "LineMap.swift",
        "MessageViews.swift",
        "MinimapView.swift",
        "OSDefinitions.swift",
        "ScrollViewExtras.swift",
        "TextContentStorageExtras.swift",
        "TextLayoutManagerExtras.swift",
        "TextView.swift",
        "Theme.swift",
        "UIHostingView.swift",
        "ViewModifiers.swift"
      ],
      "target_dependencies" : [
        "LanguageSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CodeEditorTests",
      "module_type" : "SwiftTarget",
      "name" : "CodeEditorTests",
      "path" : "Tests/CodeEditorTests",
      "sources" : [
        "CodeEditorTests.swift",
        "CypherConfigurationTests.swift",
        "LineMapTests.swift",
        "SQLiteConfigurationTests.swift",
        "TokenTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CodeEditorView"
      ],
      "type" : "test"
    }
  ],
  "tools_version" : "5.9"
}
Done.