Build Information
Successful build of CodeEditorView, reference 0.15.4 (aba6c1
), with Swift 6.0 for macOS (SPM) on 6 Apr 2025 21:08:54 UTC.
Swift 6 data race errors: 49
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.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
AppKit.NSText:46:25: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
44 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 | open var rulerVisible: Bool { get }
46 | @MainActor open var selectedRange: NSRange { get set }
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: 'selectedRange' declared here
43 | /// The current (single range) selection of the text view.
44 | ///
45 | var selectedRange: NSRange { get set }
| `- note: '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 protocol requirement; 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: '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 protocol requirement; this is an error in the Swift 6 language mode
298 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
AppKit.NSView:76:25: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: 'bounds' declared here
52 | /// The bounds of the view.
53 | ///
54 | var bounds: CGRect { get set }
| `- note: '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 protocol requirement; this is an error in the Swift 6 language mode
57 | /// visibility in a scroll view.)
58 | ///
59 | var documentVisibleRect: CGRect { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView:58:26: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
56 | open var allowsImageEditing: Bool { get set }
57 | @available(macOS 10.5, *)
58 | @MainActor open func showFindIndicator(for charRange: NSRange)
| |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated protocol requirement; 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
59 | @available(macOS 10.5, *)
60 | @available(swift, obsoleted: 3, renamed: "showFindIndicator(for:)")
/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:174:15: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
172 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "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.")
173 | open var canDraw: Bool { get }
174 | open func setNeedsDisplay(_ invalidRect: NSRect)
| |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated protocol requirement; 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
175 | @available(swift, obsoleted: 3, renamed: "setNeedsDisplay(_:)")
176 | open func setNeedsDisplayInRect(_ invalidRect: NSRect)
/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 |
[36/45] Compiling CodeEditorView ViewModifiers.swift
[37/45] 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: annotate 'message1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/MessageViews.swift:261:49: warning: main actor-isolated property 'popupWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
244 | /// The width of the text in the message category with the widest text.
245 | ///
246 | @State private var popupWidth: CGFloat? = nil
| `- note: mutation of this property is only permitted within the actor
247 |
248 | var body: some View {
:
259 | }
260 | .background(Color.clear)
261 | .onPreferenceChange(PopupWidth.self) { self.popupWidth = $0 } // Update the state variable with current width...
| `- warning: main actor-isolated property 'popupWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
262 | .environment(\.popupWidth, popupWidth) // ...and propagate that value down the view tree.
263 | }
/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: annotate 'defaultDark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
[38/45] 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: annotate 'message1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/MessageViews.swift:261:49: warning: main actor-isolated property 'popupWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
244 | /// The width of the text in the message category with the widest text.
245 | ///
246 | @State private var popupWidth: CGFloat? = nil
| `- note: mutation of this property is only permitted within the actor
247 |
248 | var body: some View {
:
259 | }
260 | .background(Color.clear)
261 | .onPreferenceChange(PopupWidth.self) { self.popupWidth = $0 } // Update the state variable with current width...
| `- warning: main actor-isolated property 'popupWidth' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
262 | .environment(\.popupWidth, popupWidth) // ...and propagate that value down the view tree.
263 | }
/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: annotate 'defaultDark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
[39/45] 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:342: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
267 | extension CodeEditor {
268 |
269 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
270 |
271 | public enum Preference: Equatable {
:
340 | }
341 |
342 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | tabWidth: 2,
344 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:426: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
421 | extension CodeEditor {
422 |
423 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
424 | let setActions: (Actions) -> Void
425 |
426 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 |
428 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:533: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
528 | extension CodeEditor {
529 |
530 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
531 | let setInfo: (Info) -> Void
532 |
533 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
534 |
535 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:961: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
959 | ///
960 | public struct CodeEditorTheme: EnvironmentKey {
961 | 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
962 | }
963 |
/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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
:
938 |
939 | @MainActor
940 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
941 | guard !updatingView else { return }
942 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
SwiftUI.NSViewRepresentableContext:7:43: note: property declared here
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public struct NSViewRepresentableContext<View> where View : NSViewRepresentable {
7 | @MainActor @preconcurrency public let coordinator: View.Coordinator
| `- note: property declared here
8 | @MainActor @preconcurrency public var transaction: Transaction { get }
9 | @MainActor @preconcurrency public var environment: EnvironmentValues { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:926: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
921 | func textDidChange(_ textView: NSTextView) { }
922 |
923 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
924 | guard !updatingView else { return }
925 |
926 | 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
927 | if self.position.selections != newValue {
928 |
AppKit.NSTextView:2:25: note: property declared here
1 | extension NSTextView {
2 | @MainActor open var selectedRanges: [NSValue] { get set }
| `- note: property declared here
3 | open func setSelectedRanges(_ ranges: [NSValue], affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
4 | open func setSelectedRange(_ charRange: NSRange, affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:930: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
921 | func textDidChange(_ textView: NSTextView) { }
922 |
923 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
924 | guard !updatingView else { return }
925 |
:
928 |
929 | self.position.selections = newValue
930 | 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
931 | as? CodeStorageDelegate
932 | {
/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 }
[40/45] 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:342: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
267 | extension CodeEditor {
268 |
269 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
270 |
271 | public enum Preference: Equatable {
:
340 | }
341 |
342 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | tabWidth: 2,
344 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:426: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
421 | extension CodeEditor {
422 |
423 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
424 | let setActions: (Actions) -> Void
425 |
426 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 |
428 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:533: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
528 | extension CodeEditor {
529 |
530 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
531 | let setInfo: (Info) -> Void
532 |
533 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
534 |
535 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:961: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
959 | ///
960 | public struct CodeEditorTheme: EnvironmentKey {
961 | 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
962 | }
963 |
/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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
:
938 |
939 | @MainActor
940 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
941 | guard !updatingView else { return }
942 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
SwiftUI.NSViewRepresentableContext:7:43: note: property declared here
5 | @available(visionOS, unavailable)
6 | @MainActor @preconcurrency public struct NSViewRepresentableContext<View> where View : NSViewRepresentable {
7 | @MainActor @preconcurrency public let coordinator: View.Coordinator
| `- note: property declared here
8 | @MainActor @preconcurrency public var transaction: Transaction { get }
9 | @MainActor @preconcurrency public var environment: EnvironmentValues { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:926: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
921 | func textDidChange(_ textView: NSTextView) { }
922 |
923 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
924 | guard !updatingView else { return }
925 |
926 | 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
927 | if self.position.selections != newValue {
928 |
AppKit.NSTextView:2:25: note: property declared here
1 | extension NSTextView {
2 | @MainActor open var selectedRanges: [NSValue] { get set }
| `- note: property declared here
3 | open func setSelectedRanges(_ ranges: [NSValue], affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
4 | open func setSelectedRange(_ charRange: NSRange, affinity: NSSelectionAffinity, stillSelecting stillSelectingFlag: Bool)
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:930: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
921 | func textDidChange(_ textView: NSTextView) { }
922 |
923 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
924 | guard !updatingView else { return }
925 |
:
928 |
929 | self.position.selections = newValue
930 | 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
931 | as? CodeStorageDelegate
932 | {
/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 }
[41/45] Emitting module CodeEditorView
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:121:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
109 | @objc public protocol CodeEditorActions {
110 |
111 | func duplicate(_ sender: Any?)
| `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
:
116 | }
117 |
118 | extension CodeView: CodeEditorActions {
| `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
119 |
120 | #if os(macOS)
121 | @objc public func duplicate(_ sender: Any?) { duplicate() }
| |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; 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
122 | #elseif os(iOS) || os(visionOS)
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:125:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
110 |
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
| `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
:
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
| |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; 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
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:126:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
:
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
| |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; 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
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
115 | func commentSelection(_ sender: Any?)
116 | }
:
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
| |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; 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
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
| `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
116 | }
117 |
:
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
| |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; 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
129 | }
130 |
/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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:342: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
267 | extension CodeEditor {
268 |
269 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
270 |
271 | public enum Preference: Equatable {
:
340 | }
341 |
342 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | tabWidth: 2,
344 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:426: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
421 | extension CodeEditor {
422 |
423 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
424 | let setActions: (Actions) -> Void
425 |
426 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
427 |
428 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:533: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
528 | extension CodeEditor {
529 |
530 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
531 | let setInfo: (Info) -> Void
532 |
533 | 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: annotate 'ignore' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
534 |
535 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:961: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
959 | ///
960 | public struct CodeEditorTheme: EnvironmentKey {
961 | 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: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
962 | }
963 |
/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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/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: annotate 'message1' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message2' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message3' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message4' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'message5' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
29 | var optTextContentStorage: NSTextContentStorage? { get }
30 |
31 | var textBackgroundColor: Color? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; this is an error in the Swift 6 language mode
30 |
31 | var textBackgroundColor: Color? { get }
32 | var textFont: Font? { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; 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 }
AppKit.NSText:46:25: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
44 | @available(swift, obsoleted: 3, renamed: "isRulerVisible")
45 | open var rulerVisible: Bool { get }
46 | @MainActor open var selectedRange: NSRange { get set }
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | @MainActor open var font: NSFont? { get set }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: 'selectedRange' declared here
43 | /// The current (single range) selection of the text view.
44 | ///
45 | var selectedRange: NSRange { get set }
| `- note: '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 protocol requirement; 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: '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 protocol requirement; this is an error in the Swift 6 language mode
298 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
AppKit.NSView:76:25: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
77 | @MainActor open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: 'bounds' declared here
52 | /// The bounds of the view.
53 | ///
54 | var bounds: CGRect { get set }
| `- note: '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 protocol requirement; this is an error in the Swift 6 language mode
57 | /// visibility in a scroll view.)
58 | ///
59 | var documentVisibleRect: CGRect { get }
| `- note: '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 protocol requirement; 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 protocol requirement; 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: '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 protocol requirement; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView:58:26: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
56 | open var allowsImageEditing: Bool { get set }
57 | @available(macOS 10.5, *)
58 | @MainActor open func showFindIndicator(for charRange: NSRange)
| |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated protocol requirement; 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
59 | @available(macOS 10.5, *)
60 | @available(swift, obsoleted: 3, renamed: "showFindIndicator(for:)")
/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:174:15: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
172 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "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.")
173 | open var canDraw: Bool { get }
174 | open func setNeedsDisplay(_ invalidRect: NSRect)
| |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated protocol requirement; 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
175 | @available(swift, obsoleted: 3, renamed: "setNeedsDisplay(_:)")
176 | open func setNeedsDisplayInRect(_ invalidRect: NSRect)
/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: annotate 'defaultDark' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
197 | = Theme(colourScheme: .dark,
198 | fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | try await codeStorageDelegate.change(language: language, for: codeStorage)
| `- warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
437 | try await startLanguageService()
438 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | 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
437 | try await startLanguageService()
438 |
[42/45] Compiling CodeEditorView CodeActions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:290: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
288 | queue: nil) { [weak self] _notification in
289 |
290 | 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
291 | }
292 | }
:
298 | override var canBecomeKey: Bool { true }
299 |
300 | override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
301 | // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
302 | // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:355:56: warning: non-sendable type 'Completions.Completion?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
353 | Task { @MainActor in
354 | for item in self.completions.items.enumerated() {
355 | if let refinedItem = try? await item.element.refine() {
| `- warning: non-sendable type 'Completions.Completion?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
356 | self.completions.items[item.offset] = refinedItem
357 | // This doesn't trigger an update (maybe, because only `AnyView` subviews change?)...
/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:452:71: warning: non-sendable type 'Completions' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
450 |
451 | let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
452 | completions = try await languageService.completions(at: location, reason: reason)
| `- warning: non-sendable type 'Completions' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
453 | try Task.checkCancellation() // may have been cancelled in the meantime due to further user action
454 | show(completions: completions, for: rangeForUserCompletion)
/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:121:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
109 | @objc public protocol CodeEditorActions {
110 |
111 | func duplicate(_ sender: Any?)
| `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
:
116 | }
117 |
118 | extension CodeView: CodeEditorActions {
| `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
119 |
120 | #if os(macOS)
121 | @objc public func duplicate(_ sender: Any?) { duplicate() }
| |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; 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
122 | #elseif os(iOS) || os(visionOS)
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:125:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
110 |
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
| `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
:
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
| |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; 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
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:126:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
:
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
| |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; 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
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
115 | func commentSelection(_ sender: Any?)
116 | }
:
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
| |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; 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
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
| `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
116 | }
117 |
:
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
| |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; 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
129 | }
130 |
/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:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension 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
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/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)
AppKit.NSApplication:2:31: note: class property declared here
1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor open class var shared: NSApplication { get }
| `- note: class property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:295: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
293 |
294 | deinit {
295 | 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
296 | }
297 |
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/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 |
[43/45] Compiling CodeEditorView CodeEditing.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:290: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
288 | queue: nil) { [weak self] _notification in
289 |
290 | 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
291 | }
292 | }
:
298 | override var canBecomeKey: Bool { true }
299 |
300 | override func close() {
| `- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
301 | // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
302 | // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:355:56: warning: non-sendable type 'Completions.Completion?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
353 | Task { @MainActor in
354 | for item in self.completions.items.enumerated() {
355 | if let refinedItem = try? await item.element.refine() {
| `- warning: non-sendable type 'Completions.Completion?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
356 | self.completions.items[item.offset] = refinedItem
357 | // This doesn't trigger an update (maybe, because only `AnyView` subviews change?)...
/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:452:71: warning: non-sendable type 'Completions' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
450 |
451 | let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
452 | completions = try await languageService.completions(at: location, reason: reason)
| `- warning: non-sendable type 'Completions' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
453 | try Task.checkCancellation() // may have been cancelled in the meantime due to further user action
454 | show(completions: completions, for: rangeForUserCompletion)
/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:121:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
109 | @objc public protocol CodeEditorActions {
110 |
111 | func duplicate(_ sender: Any?)
| `- note: mark the protocol requirement 'duplicate' 'async' to allow actor-isolated conformances
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
:
116 | }
117 |
118 | extension CodeView: CodeEditorActions {
| `- note: add '@preconcurrency' to the 'CodeEditorActions' conformance to defer isolation checking to run time
119 |
120 | #if os(macOS)
121 | @objc public func duplicate(_ sender: Any?) { duplicate() }
| |- warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated protocol requirement; 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
122 | #elseif os(iOS) || os(visionOS)
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:125:21: warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
110 |
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
| `- note: mark the protocol requirement 'reindent' 'async' to allow actor-isolated conformances
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
:
123 | @objc public override func duplicate(_ sender: Any?) { duplicate() }
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
| |- warning: main actor-isolated instance method 'reindent' cannot be used to satisfy nonisolated protocol requirement; 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
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:126:21: warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | func duplicate(_ sender: Any?)
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftLeft' 'async' to allow actor-isolated conformances
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
:
124 | #endif
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
| |- warning: main actor-isolated instance method 'shiftLeft' cannot be used to satisfy nonisolated protocol requirement; 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
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:127:21: warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
112 | func reindent(_ sender: Any?)
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
| `- note: mark the protocol requirement 'shiftRight' 'async' to allow actor-isolated conformances
115 | func commentSelection(_ sender: Any?)
116 | }
:
125 | @objc public func reindent(_ sender: Any?) { reindent() }
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
| |- warning: main actor-isolated instance method 'shiftRight' cannot be used to satisfy nonisolated protocol requirement; 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
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:128:21: warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
113 | func shiftLeft(_ sender: Any?)
114 | func shiftRight(_ sender: Any?)
115 | func commentSelection(_ sender: Any?)
| `- note: mark the protocol requirement 'commentSelection' 'async' to allow actor-isolated conformances
116 | }
117 |
:
126 | @objc public func shiftLeft(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: true) }
127 | @objc public func shiftRight(_ sender: Any?) { shiftLeftOrRight(doShiftLeft: false) }
128 | @objc public func commentSelection(_ sender: Any?) { comment() }
| |- warning: main actor-isolated instance method 'commentSelection' cannot be used to satisfy nonisolated protocol requirement; 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
129 | }
130 |
/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:2:26: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | extension 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
3 | open func target(forAction action: Selector) -> Any?
4 | @available(swift, obsoleted: 3, renamed: "target(forAction:)")
/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)
AppKit.NSApplication:2:31: note: class property declared here
1 | @MainActor open class NSApplication : NSResponder, NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor open class var shared: NSApplication { get }
| `- note: class property declared here
3 | @available(swift, obsoleted: 3, renamed: "shared")
4 | open class var sharedApplication: NSApplication { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:295: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
293 |
294 | deinit {
295 | 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
296 | }
297 |
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/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 |
[44/45] Compiling CodeEditorView CodeStorageDelegate.swift
/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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:342: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
267 | extension CodeEditor {
268 |
269 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
270 |
271 | public enum Preference: Equatable {
:
340 | }
341 |
342 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | tabWidth: 2,
344 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:674: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
672 | // is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
673 | // line numbering.
674 | 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
675 | }
676 |
AppKit.NSView:177:25: note: mutation of this property is only permitted within the actor
175 | @available(swift, obsoleted: 3, renamed: "setNeedsDisplay(_:)")
176 | open func setNeedsDisplayInRect(_ invalidRect: NSRect)
177 | @MainActor open var needsDisplay: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
178 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.")
179 | open func lockFocus()
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:674: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?
:
672 | // is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
673 | // line numbering.
674 | 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
675 | }
676 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:682: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
680 | = NotificationCenter.default.addObserver(forName: NSText.didChangeNotification, object: self, queue: .main){ [weak self] _ in
681 |
682 | 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
683 | self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
684 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:486:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
484 | /// reported by the text view.
485 | ///
486 | func considerCompletionFor(range: NSRange) {
| `- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
487 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return }
488 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:682: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
680 | = NotificationCenter.default.addObserver(forName: NSText.didChangeNotification, object: self, queue: .main){ [weak self] _ in
681 |
682 | 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
683 | self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
684 | }
AppKit.NSTextView:3:25: note: property declared here
1 | extension NSTextView {
2 | open func complete(_ sender: Any?)
3 | @MainActor open var rangeForUserCompletion: NSRange { get }
| `- note: property declared here
4 | open func completions(forPartialWordRange charRange: NSRange, indexOfSelectedItem index: UnsafeMutablePointer<Int>) -> [String]?
5 | @available(swift, obsoleted: 3, renamed: "completions(forPartialWordRange:indexOfSelectedItem:)")
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:683: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
681 |
682 | self?.considerCompletionFor(range: self!.rangeForUserCompletion)
683 | 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
684 | }
685 |
:
1349 | /// IDs that do not have an associated message view cause no harm.
1350 | ///
1351 | 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
1352 |
1353 | for id in ids ?? Array<LineInfo.MessageBundle.ID>(messageViews.keys) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:683: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()
:
681 |
682 | self?.considerCompletionFor(range: self!.rangeForUserCompletion)
683 | 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
684 | }
685 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1430: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
1428 |
1429 | guard let codeView = textView as? CodeView,
1430 | 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
1431 | let delegate = codeStorage.delegate as? CodeStorageDelegate,
1432 | 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:1440: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
1438 | // always space for a minimal truncated message (provided the text container is wide enough to accomodate that).
1439 | if let messageBundleId = delegate.messages(at: line)?.id,
1440 | 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
1441 | {
1442 |
/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:1443: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1441 | {
1442 |
1443 | 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
1444 | codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1445 | codeView.messageViews[messageBundleId]?.geometry = nil // invalidate the geometry
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1444: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1442 |
1443 | codeView.messageViews[messageBundleId]?.characterIndex = characterIndex
1444 | 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
1445 | codeView.messageViews[messageBundleId]?.geometry = nil // invalidate the geometry
1446 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1445: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1443 | codeView.messageViews[messageBundleId]?.characterIndex = characterIndex
1444 | codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1445 | 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
1446 |
1447 | // If the bundle has a telescope, determine the telescope character index.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1449: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: property declared here
474 |
475 | /// For the consumption of the diagnostics stream.
:
1447 | // If the bundle has a telescope, determine the telescope character index.
1448 |
1449 | 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
1450 | let oneLine = delegate.lineMap.lookup(line: line + lines)
1451 | {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1452: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1450 | let oneLine = delegate.lineMap.lookup(line: line + lines)
1451 | {
1452 | 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
1453 | }
1454 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1460: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
1458 |
1459 | return CGRect(origin: calculatedRect.origin,
1460 | 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
1461 | height: calculatedRect.height))
1462 |
/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:192: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
190 |
191 | deinit {
192 | 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
193 | try await languageService?.stop()
| `- note: closure captures 'languageService' which is accessible to code in the current task
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:623: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
621 | guard let firstLine = lines.first else { return }
622 |
623 | Task {
| `- 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
624 | do {
625 | if let semanticTokens = try await languageService?.tokens(for: lines) {
| `- note: closure captures 'self' which is accessible to code in the current task
626 |
627 | guard lines.count == semanticTokens.count else {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:326:12: 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
324 | editedRange.max - info.range.location - endColumn
325 | } else { 0 }
326 | Task { [editedRange, delta] 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
327 | try await languageService?.documentDidChange(position: editedRange.location,
| `- note: closure captures 'self' which is accessible to code in the current task
328 | changeInLength: delta,
329 | lineChange: lineChange,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:637:37: warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
635 | // Merge the semantic tokens into the syntactic tokens per line
636 | for i in 0..<lines.count {
637 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'semanticTokens' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
638 | }
639 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:637:62: warning: sending 'firstLine' risks causing data races; this is an error in the Swift 6 language mode
635 | // Merge the semantic tokens into the syntactic tokens per line
636 | for i in 0..<lines.count {
637 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'firstLine' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'firstLine' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
638 | }
639 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:633:16: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
631 |
632 | // We need to avoid concurrent write access to the line map; hence, use the main actor.
633 | Task { @MainActor in
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
634 |
635 | // Merge the semantic tokens into the syntactic tokens per line
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:732: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
730 |
731 | deinit {
732 | 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
733 | if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
734 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/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:733: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
731 | deinit {
732 | if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
733 | 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
734 | }
735 |
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:705:33: warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
703 | if let languageService = codeStorageDelegate.languageService {
704 |
705 | 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
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:705:33: warning: sending main actor-isolated value of type 'any LanguageService' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
703 | if let languageService = codeStorageDelegate.languageService {
704 |
705 | try await languageService.openDocument(with: textStorage.string,
| `- warning: sending main actor-isolated value of type 'any LanguageService' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | try await codeStorageDelegate.change(language: language, for: codeStorage)
| `- warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
437 | try await startLanguageService()
438 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | 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
437 | try await startLanguageService()
438 |
[45/45] Compiling CodeEditorView CodeView.swift
/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: annotate 'defaultLight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:342: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
267 | extension CodeEditor {
268 |
269 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
270 |
271 | public enum Preference: Equatable {
:
340 | }
341 |
342 | 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: annotate 'standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
343 | tabWidth: 2,
344 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:674: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
672 | // is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
673 | // line numbering.
674 | 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
675 | }
676 |
AppKit.NSView:177:25: note: mutation of this property is only permitted within the actor
175 | @available(swift, obsoleted: 3, renamed: "setNeedsDisplay(_:)")
176 | open func setNeedsDisplayInRect(_ invalidRect: NSRect)
177 | @MainActor open var needsDisplay: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
178 | @available(macOS, introduced: 10.0, deprecated: 10.14, message: "To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.")
179 | open func lockFocus()
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:674: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?
:
672 | // is short), we need to explicitly redraw the gutter, as line wrapping may have changed, which affects
673 | // line numbering.
674 | 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
675 | }
676 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:682: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
680 | = NotificationCenter.default.addObserver(forName: NSText.didChangeNotification, object: self, queue: .main){ [weak self] _ in
681 |
682 | 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
683 | self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
684 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:486:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
484 | /// reported by the text view.
485 | ///
486 | func considerCompletionFor(range: NSRange) {
| `- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
487 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return }
488 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:682: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
680 | = NotificationCenter.default.addObserver(forName: NSText.didChangeNotification, object: self, queue: .main){ [weak self] _ in
681 |
682 | 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
683 | self?.invalidateMessageViews(withIDs: self!.codeStorageDelegate.lastInvalidatedMessageIDs)
684 | }
AppKit.NSTextView:3:25: note: property declared here
1 | extension NSTextView {
2 | open func complete(_ sender: Any?)
3 | @MainActor open var rangeForUserCompletion: NSRange { get }
| `- note: property declared here
4 | open func completions(forPartialWordRange charRange: NSRange, indexOfSelectedItem index: UnsafeMutablePointer<Int>) -> [String]?
5 | @available(swift, obsoleted: 3, renamed: "completions(forPartialWordRange:indexOfSelectedItem:)")
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:683: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
681 |
682 | self?.considerCompletionFor(range: self!.rangeForUserCompletion)
683 | 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
684 | }
685 |
:
1349 | /// IDs that do not have an associated message view cause no harm.
1350 | ///
1351 | 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
1352 |
1353 | for id in ids ?? Array<LineInfo.MessageBundle.ID>(messageViews.keys) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:683: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()
:
681 |
682 | self?.considerCompletionFor(range: self!.rangeForUserCompletion)
683 | 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
684 | }
685 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1430: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
1428 |
1429 | guard let codeView = textView as? CodeView,
1430 | 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
1431 | let delegate = codeStorage.delegate as? CodeStorageDelegate,
1432 | 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:1440: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
1438 | // always space for a minimal truncated message (provided the text container is wide enough to accomodate that).
1439 | if let messageBundleId = delegate.messages(at: line)?.id,
1440 | 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
1441 | {
1442 |
/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:1443: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1441 | {
1442 |
1443 | 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
1444 | codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1445 | codeView.messageViews[messageBundleId]?.geometry = nil // invalidate the geometry
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1444: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1442 |
1443 | codeView.messageViews[messageBundleId]?.characterIndex = characterIndex
1444 | 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
1445 | codeView.messageViews[messageBundleId]?.geometry = nil // invalidate the geometry
1446 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1445: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1443 | codeView.messageViews[messageBundleId]?.characterIndex = characterIndex
1444 | codeView.messageViews[messageBundleId]?.lineFragementRect = calculatedRect
1445 | 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
1446 |
1447 | // If the bundle has a telescope, determine the telescope character index.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1449: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: property declared here
474 |
475 | /// For the consumption of the diagnostics stream.
:
1447 | // If the bundle has a telescope, determine the telescope character index.
1448 |
1449 | 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
1450 | let oneLine = delegate.lineMap.lookup(line: line + lines)
1451 | {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1452: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
471 | /// Keeps track of the set of message views.
472 | ///
473 | var messageViews: MessageViews = [:]
| `- note: mutation of this property is only permitted within the actor
474 |
475 | /// For the consumption of the diagnostics stream.
:
1450 | let oneLine = delegate.lineMap.lookup(line: line + lines)
1451 | {
1452 | 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
1453 | }
1454 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:1460: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
1458 |
1459 | return CGRect(origin: calculatedRect.origin,
1460 | 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
1461 | height: calculatedRect.height))
1462 |
/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:192: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
190 |
191 | deinit {
192 | 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
193 | try await languageService?.stop()
| `- note: closure captures 'languageService' which is accessible to code in the current task
194 | }
195 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:623: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
621 | guard let firstLine = lines.first else { return }
622 |
623 | Task {
| `- 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
624 | do {
625 | if let semanticTokens = try await languageService?.tokens(for: lines) {
| `- note: closure captures 'self' which is accessible to code in the current task
626 |
627 | guard lines.count == semanticTokens.count else {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:326:12: 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
324 | editedRange.max - info.range.location - endColumn
325 | } else { 0 }
326 | Task { [editedRange, delta] 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
327 | try await languageService?.documentDidChange(position: editedRange.location,
| `- note: closure captures 'self' which is accessible to code in the current task
328 | changeInLength: delta,
329 | lineChange: lineChange,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:637:37: warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
635 | // Merge the semantic tokens into the syntactic tokens per line
636 | for i in 0..<lines.count {
637 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'semanticTokens' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
638 | }
639 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:637:62: warning: sending 'firstLine' risks causing data races; this is an error in the Swift 6 language mode
635 | // Merge the semantic tokens into the syntactic tokens per line
636 | for i in 0..<lines.count {
637 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'firstLine' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'firstLine' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
638 | }
639 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:633:16: warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
631 |
632 | // We need to avoid concurrent write access to the line map; hence, use the main actor.
633 | Task { @MainActor in
| `- warning: task or actor isolated value cannot be sent; this is an error in the Swift 6 language mode
634 |
635 | // Merge the semantic tokens into the syntactic tokens per line
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:732: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
730 |
731 | deinit {
732 | 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
733 | if let observer = didChangeNotificationObserver { NotificationCenter.default.removeObserver(observer) }
734 | }
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/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:733: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
731 | deinit {
732 | if let observer = frameChangedNotificationObserver { NotificationCenter.default.removeObserver(observer) }
733 | 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
734 | }
735 |
ObjectiveC.NSObjectProtocol:1:17: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
1 | public protocol NSObjectProtocol {
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
2 | func isEqual(_ object: Any?) -> Bool
3 | var hash: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:705:33: warning: sending 'self.codeStorageDelegate.lineMapLocationConverter' risks causing data races; this is an error in the Swift 6 language mode
703 | if let languageService = codeStorageDelegate.languageService {
704 |
705 | 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
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:705:33: warning: sending main actor-isolated value of type 'any LanguageService' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
703 | if let languageService = codeStorageDelegate.languageService {
704 |
705 | try await languageService.openDocument(with: textStorage.string,
| `- warning: sending main actor-isolated value of type 'any LanguageService' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | try await codeStorageDelegate.change(language: language, for: codeStorage)
| `- warning: sending main actor-isolated value of type 'LanguageConfiguration' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
437 | try await startLanguageService()
438 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending 'self.codeStorageDelegate' risks causing data races; this is an error in the Swift 6 language mode
434 | do {
435 |
436 | 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
437 | try await startLanguageService()
438 |
Build complete! (25.82s)
warning: 'rearrange': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Info.plist
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",
"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"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/mchakravarty/codeeditorview/0.15.4
Repository: mchakravarty/CodeEditorView
Swift version used: 6.0
Target: LanguageSupport
Extracting symbol information for 'LanguageSupport'...
Finished extracting symbol information for 'LanguageSupport'. (7.29s)
Building documentation for 'LanguageSupport'...
warning: Parameter 'line' not found in instance method declaration
--> Sources/LanguageSupport/LanguageService.swift:24:7-24:87
22 | /// Yields the length of the given line.
23 | ///
24 + /// - Parameter line: The line of which we want to know the length, starting from 0.
| ╰─suggestion: Remove 'line' parameter documentation
25 | /// - Returns: The length (number of characters) of the given line, including any trainling newline character, or
26 | /// `nil` if the line does not exist.
warning: Parameter 'zeroBasedLine' is missing documentation
--> Sources/LanguageSupport/LanguageService.swift:24:87-24:87
22 | /// Yields the length of the given line.
23 | ///
24 + /// - Parameter line: The line of which we want to know the length, starting from 0.
| ╰─suggestion: Document 'zeroBasedLine' parameter
25 | /// - Returns: The length (number of characters) of the given line, including any trainling newline character, or
26 | /// `nil` if the line does not exist.
warning: Return value documented for initializer returning void
--> Sources/LanguageSupport/Tokeniser.swift:162:7-163:7
160 | /// - tokenMap: The token dictionary determining the lexemes to match and their token type.
161 | /// - caseInsensitiveReservedIdentifiers: Whether reserved identifiers should be matched case-insensitively
162 + /// - Returns: A tokeniser that matches all lexemes contained in the token dictionary.
| ╰─suggestion: Remove return value documentation
163 + ///
164 | /// The tokeniser is based on an eager regular expression matcher. Hence, it will match the first matching alternative
165 | /// in a sequence of alternatives. To deal with string patterns, where some patterns may be a prefix of another, theFinished building documentation for 'LanguageSupport' (0.45s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/0.15.4
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2050] Fetching swift-docc-plugin
Updating https://github.com/ChimeHQ/Rearrange
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.16s)
Updated https://github.com/ChimeHQ/Rearrange (0.42s)
Computing version for https://github.com/ChimeHQ/Rearrange.git
Computed https://github.com/ChimeHQ/Rearrange.git at 1.6.0 (0.54s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (0.57s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3365] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.17s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.60s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version-5BDAB9E9C0126B9D.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit SemanticVersion.swift
[8/57] Compiling SymbolKit AccessControl.swift
[9/57] Compiling SymbolKit Availability.swift
[10/57] Compiling SymbolKit AvailabilityItem.swift
[11/57] Compiling SymbolKit Domain.swift
[12/57] Compiling SymbolKit DeclarationFragments.swift
[13/57] Compiling SymbolKit Fragment.swift
[14/57] Compiling SymbolKit FragmentKind.swift
[15/57] Compiling SymbolKit FunctionParameter.swift
[16/57] Compiling SymbolKit FunctionSignature.swift
[17/57] Compiling SymbolKit Identifier.swift
[18/57] Compiling SymbolKit KindIdentifier.swift
[19/57] Compiling SymbolKit Location.swift
[20/57] Compiling SymbolKit Mutability.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit Mixin+Equals.swift
[26/57] Compiling SymbolKit Mixin+Hash.swift
[27/57] Compiling SymbolKit Mixin.swift
[28/57] Compiling SymbolKit LineList.swift
[29/57] Compiling SymbolKit Position.swift
[30/57] Compiling SymbolKit SourceRange.swift
[31/57] Compiling SymbolKit Metadata.swift
[32/57] Compiling SymbolKit Module.swift
[33/57] Compiling SymbolKit OperatingSystem.swift
[34/57] Compiling SymbolKit Platform.swift
[35/57] Compiling SymbolKit Relationship.swift
[36/57] Compiling SymbolKit RelationshipKind.swift
[37/57] Compiling SymbolKit SourceOrigin.swift
[38/57] Compiling SymbolKit GenericConstraints.swift
[39/57] Compiling SymbolKit Swift.swift
[40/57] Compiling SymbolKit Symbol.swift
[41/57] Compiling SymbolKit SymbolKind.swift
[42/57] Compiling SymbolKit SymbolGraph.swift
[43/57] Compiling SymbolKit GraphCollector.swift
[44/57] Compiling SymbolKit GenericConstraint.swift
[45/57] Compiling SymbolKit GenericParameter.swift
[46/57] Compiling SymbolKit Generics.swift
[47/57] Compiling SymbolKit Namespace.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets SnippetParser.swift
[53/57] Compiling Snippets Snippet.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.64s)
warning: 'rearrange': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Info.plist
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/10] Compiling Rearrange UITextRange+Convenience.swift
[3/10] Compiling Rearrange String+NSRange.swift
[4/10] Compiling Rearrange NSRange+Convenience.swift
[5/10] Compiling Rearrange NSRange+Shift.swift
[6/10] Compiling Rearrange NSTextRange+NSRange.swift
[7/10] Compiling Rearrange RangeMutation.swift
[8/10] Compiling Rearrange IndexSet+NSRange.swift
[9/10] Emitting module Rearrange
[10/10] Compiling Rearrange NSRange+ApplyMutation.swift
[11/21] Compiling LanguageSupport SQLiteConfiguration.swift
[12/21] Compiling LanguageSupport LanguageService.swift
[13/21] Compiling LanguageSupport Message.swift
[14/21] Compiling LanguageSupport HaskellConfiguration.swift
[15/21] Compiling LanguageSupport Location.swift
[16/21] Compiling LanguageSupport SwiftConfiguration.swift
[17/21] Compiling LanguageSupport LanguageConfiguration.swift
[18/22] Compiling LanguageSupport Tokeniser.swift
[19/22] Compiling LanguageSupport AgdaConfiguration.swift
[20/22] Compiling LanguageSupport CabalConfiguration.swift
[21/22] Emitting module LanguageSupport
[22/22] Compiling LanguageSupport CypherConfiguration.swift
Build of target: 'LanguageSupport' complete! (3.41s)
Target: CodeEditorView
Extracting symbol information for 'CodeEditorView'...
Finished extracting symbol information for 'CodeEditorView'. (2.25s)
Building documentation for 'CodeEditorView'...
Finished building documentation for 'CodeEditorView' (1.19s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/0.15.4
Building for debugging...
[0/3] Write swift-version-5BDAB9E9C0126B9D.txt
Build of product 'snippet-extract' complete! (0.16s)
warning: 'rearrange': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Info.plist
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/20] Compiling CodeEditorView Theme.swift
[3/20] Compiling CodeEditorView UIHostingView.swift
[4/20] Compiling CodeEditorView TextLayoutManagerExtras.swift
[5/20] Compiling CodeEditorView TextView.swift
[6/21] Compiling CodeEditorView ViewModifiers.swift
[7/21] Compiling CodeEditorView ScrollViewExtras.swift
[8/21] Compiling CodeEditorView TextContentStorageExtras.swift
[9/21] Compiling CodeEditorView MinimapView.swift
[10/21] Compiling CodeEditorView OSDefinitions.swift
[11/21] Compiling CodeEditorView LineMap.swift
[12/21] Compiling CodeEditorView MessageViews.swift
[13/21] Compiling CodeEditorView CodeEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
:
938 |
939 | @MainActor
940 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
941 | guard !updatingView else { return }
942 |
[14/21] Compiling CodeEditorView CodeStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:799: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
797 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
798 | if let scrollView {
799 | 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
800 | }
801 | }
:
938 |
939 | @MainActor
940 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
941 | guard !updatingView else { return }
942 |
[15/21] Compiling CodeEditorView Constants.swift
[16/21] Compiling CodeEditorView GutterView.swift
[17/21] Emitting module CodeEditorView
[18/21] Compiling CodeEditorView CodeStorageDelegate.swift
[19/21] Compiling CodeEditorView CodeView.swift
[20/21] Compiling CodeEditorView CodeActions.swift
[21/21] Compiling CodeEditorView CodeEditing.swift
Build of target: 'CodeEditorView' complete! (1.83s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mchakravarty/codeeditorview/0.15.4/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mchakravarty/codeeditorview/0.15.4/linkable-paths.json
5008
35 /Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/0.15.4
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/mchakravarty/codeeditorview/0.15.4
File count: 5008
Doc size: 35.0MB
Preparing doc bundle ...
Uploading prod-mchakravarty-codeeditorview-0.15.4-286bed90.zip to s3://spi-docs-inbox/prod-mchakravarty-codeeditorview-0.15.4-286bed90.zip
Copying... [10%]
Copying... [20%]
Copying... [31%]
Copying... [41%]
Copying... [51%]
Copying... [60%]
Copying... [70%]
Copying... [80%]
Copying... [91%]
Copying... [100%]
Done.