Build Information
Successful build of CodeEditorView, reference main (345be6
), with Swift 6.1 for macOS (SPM) on 9 Jun 2025 00:40:05 UTC.
Swift 6 data race errors: 49
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
273 |
274 | extension NSTextView: TextView {
| `- note: add '@preconcurrency' to the 'TextView' conformance to defer isolation checking to run time
275 | typealias Color = NSColor
276 | typealias Font = NSFont
277 |
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
279 | var optTextContainer: NSTextContainer? { textContainer }
| `- warning: main actor-isolated property 'optTextContainer' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
23 | // This is necessary as these members are optional in AppKit and not optional in UIKit.
24 | var optTextContainer: NSTextContainer? { get }
25 | var optCodeStorage: CodeStorage? { get }
| `- note: requirement 'optCodeStorage' declared here
26 |
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
:
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
| `- warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:278:7: warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
26 |
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
28 | var optTextLayoutManager: NSTextLayoutManager? { get }
| `- note: requirement 'optTextLayoutManager' declared here
29 | var optTextContentStorage: NSTextContentStorage? { get }
30 |
:
276 | typealias Font = NSFont
277 |
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
| `- warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:280:7: warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
28 | var optTextLayoutManager: NSTextLayoutManager? { get }
29 | var optTextContentStorage: NSTextContentStorage? { get }
| `- note: requirement 'optTextContentStorage' declared here
30 |
31 | var textBackgroundColor: Color? { get }
:
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
| `- warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
282 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:283:7: warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
29 | var optTextContentStorage: NSTextContentStorage? { get }
30 |
31 | var textBackgroundColor: Color? { get }
| `- note: requirement 'textBackgroundColor' declared here
32 | var textFont: Font? { get }
33 | var textContainerOrigin: CGPoint { get }
:
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
| `- warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
284 | var textFont: Font? { font }
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:284:7: warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
30 |
31 | var textBackgroundColor: Color? { get }
32 | var textFont: Font? { get }
| `- note: requirement 'textFont' declared here
33 | var textContainerOrigin: CGPoint { get }
34 |
:
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
284 | var textFont: Font? { font }
| `- warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:285:7: warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
31 | var textBackgroundColor: Color? { get }
32 | var textFont: Font? { get }
33 | var textContainerOrigin: CGPoint { get }
| `- note: requirement 'textContainerOrigin' declared here
34 |
35 | /// The text displayed by the text view.
:
283 | var textBackgroundColor: Color? { backgroundColor }
284 | var textFont: Font? { font }
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
| `- warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
286 |
287 | var text: String! {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:287:7: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
35 | /// The text displayed by the text view.
36 | ///
37 | var text: String! { get set }
| `- note: requirement 'text' declared here
38 |
39 | /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
:
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
287 | var text: String! {
| `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
288 | get { string }
289 | set { string = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:292:7: warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
39 | /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
40 | ///
41 | var insertionPoint: Int? { get }
| `- note: requirement 'insertionPoint' declared here
42 |
43 | /// The current (single range) selection of the text view.
:
290 | }
291 |
292 | var insertionPoint: Int? {
| `- warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
293 | if let selection = selectedRanges.first as? NSRange, selection.length == 0 { return selection.location }
294 | else { return nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
93 |
94 | @property NSRange selectedRange;
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
95 |
96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: requirement 'selectedRange' declared here
43 | /// The current (single range) selection of the text view.
44 | ///
45 | var selectedRange: NSRange { get set }
| `- note: requirement 'selectedRange' declared here
46 |
47 | /// The set of lines that have characters that are included in the current selection. (This may be a multi-selection,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:297:7: warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
48 | /// and hence, a non-contiguous range.)
49 | ///
50 | var selectedLines: Set<Int> { get }
| `- note: requirement 'selectedLines' declared here
51 |
52 | /// The bounds of the view.
:
295 | }
296 |
297 | var selectedLines: Set<Int> {
| `- warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
298 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: requirement 'bounds' declared here
52 | /// The bounds of the view.
53 | ///
54 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
55 |
56 | /// The visible portion of the text view. (This only accounts for portions of the text view that are obscured through
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:307:7: warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
57 | /// visibility in a scroll view.)
58 | ///
59 | var documentVisibleRect: CGRect { get }
| `- note: requirement 'documentVisibleRect' declared here
60 |
61 | /// The size of the whole document (after layout).
:
305 | }
306 |
307 | var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
| `- warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
308 |
309 | var contentSize: CGSize { bounds.size }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:309:7: warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
61 | /// The size of the whole document (after layout).
62 | ///
63 | var contentSize: CGSize { get }
| `- note: requirement 'contentSize' declared here
64 |
65 | /// Temporarily highlight the visible part of the given range.
:
307 | var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
308 |
309 | var contentSize: CGSize { bounds.size }
| `- warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView.showFindIndicator:3:24: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func showFindIndicator(for charRange: NSRange)}
| |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showFindIndicator(for:)' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:67:8: note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
65 | /// Temporarily highlight the visible part of the given range.
66 | ///
67 | func showFindIndicator(for range: NSRange)
| `- note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
68 |
69 | /// Marks the given rectangle of the current view as needing redrawing.
AppKit.NSView.setNeedsDisplay:2:22: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSView {
2 | @MainActor open func setNeedsDisplay(_ invalidRect: NSRect)}
| |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setNeedsDisplay' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:71:8: note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
69 | /// Marks the given rectangle of the current view as needing redrawing.
70 | ///
71 | func setNeedsDisplay(_ invalidRect: CGRect)
| `- note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
72 | }
73 |
[32/45] Compiling CodeEditorView MinimapView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MinimapView.swift:219:7: warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
190 | /// coloured boxes instead of actual glyphs.
191 | ///
192 | class MinimapLayoutFragment: NSTextLayoutFragment {
| `- note: class 'MinimapLayoutFragment' does not conform to the 'Sendable' protocol
193 |
194 | private var _textLineFragments: [NSTextLineFragment] = []
:
217 | // not possible in a closure weakly capturing `self` (which we need to do here to avoid a retain cycle).
218 | // Hence, we defer to an auxilliary method.
219 | self?.updateTextLineFragments()
| `- warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
220 | }
221 | }
[33/45] Compiling CodeEditorView OSDefinitions.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MinimapView.swift:219:7: warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
190 | /// coloured boxes instead of actual glyphs.
191 | ///
192 | class MinimapLayoutFragment: NSTextLayoutFragment {
| `- note: class 'MinimapLayoutFragment' does not conform to the 'Sendable' protocol
193 |
194 | private var _textLineFragments: [NSTextLineFragment] = []
:
217 | // not possible in a closure weakly capturing `self` (which we need to do here to avoid a retain cycle).
218 | // Hence, we defer to an auxilliary method.
219 | self?.updateTextLineFragments()
| `- warning: capture of 'self' with non-sendable type 'MinimapLayoutFragment?' in a '@Sendable' closure
220 | }
221 | }
[34/45] Compiling CodeEditorView ViewModifiers.swift
[35/45] Compiling CodeEditorView Constants.swift
[36/45] Compiling CodeEditorView GutterView.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: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
| |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
| |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
| |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
| |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
[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: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
| |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
| |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
| |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
| |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
[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: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 | public enum Preference: Equatable {
:
326 | }
327 |
328 | public static let standard = IndentationConfiguration(preference: .preferSpaces,
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | tabWidth: 2,
330 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 | let setActions: (Actions) -> Void
397 |
398 | public static let ignore: SetActions = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 | let setInfo: (Info) -> Void
490 |
491 | public static let ignore: SetInfo = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:905: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
903 | ///
904 | public struct CodeEditorTheme: EnvironmentKey {
905 | public static var defaultValue: Theme = Theme.defaultLight
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
906 | }
907 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 | }
745 | }
:
882 |
883 | @MainActor
884 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
885 | guard !updatingView else { return }
886 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:21: warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
744 | }
745 | }
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
| `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:870: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
865 | func textDidChange(_ textView: NSTextView) { }
866 |
867 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
868 | guard !updatingView else { return }
869 |
870 | 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
871 | if self.position.selections != newValue {
872 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:327:38: note: property declared here
325 | /*************************** Selected/Marked range ***************************/
326 |
327 | @property (copy) NSArray<NSValue *> *selectedRanges;
| `- note: property declared here
328 |
329 | // These multiple-range methods supersede the corresponding single-range methods. The ranges argument must be a non-nil, non-empty array of objects responding to rangeValue. The return value of selectedRanges obeys the same restrictions, and in addition its elements are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:874: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
865 | func textDidChange(_ textView: NSTextView) { }
866 |
867 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
868 | guard !updatingView else { return }
869 |
:
872 |
873 | self.position.selections = newValue
874 | 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
875 | as? CodeStorageDelegate
876 | {
/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: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 | public enum Preference: Equatable {
:
326 | }
327 |
328 | public static let standard = IndentationConfiguration(preference: .preferSpaces,
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | tabWidth: 2,
330 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 | let setActions: (Actions) -> Void
397 |
398 | public static let ignore: SetActions = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 | let setInfo: (Info) -> Void
490 |
491 | public static let ignore: SetInfo = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:905: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
903 | ///
904 | public struct CodeEditorTheme: EnvironmentKey {
905 | public static var defaultValue: Theme = Theme.defaultLight
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
906 | }
907 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 | }
745 | }
:
882 |
883 | @MainActor
884 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
885 | guard !updatingView else { return }
886 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:21: warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: main actor-isolated property 'coordinator' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
744 | }
745 | }
SwiftUI.NSViewRepresentableContext.coordinator:2:39: note: property declared here
1 | generic struct NSViewRepresentableContext {
2 | @MainActor @preconcurrency public let coordinator: View.Coordinator}
| `- note: property declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:870: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
865 | func textDidChange(_ textView: NSTextView) { }
866 |
867 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
868 | guard !updatingView else { return }
869 |
870 | 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
871 | if self.position.selections != newValue {
872 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:327:38: note: property declared here
325 | /*************************** Selected/Marked range ***************************/
326 |
327 | @property (copy) NSArray<NSValue *> *selectedRanges;
| `- note: property declared here
328 |
329 | // These multiple-range methods supersede the corresponding single-range methods. The ranges argument must be a non-nil, non-empty array of objects responding to rangeValue. The return value of selectedRanges obeys the same restrictions, and in addition its elements are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:874: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
865 | func textDidChange(_ textView: NSTextView) { }
866 |
867 | func selectionDidChange(_ textView: NSTextView) {
| `- note: add '@MainActor' to make instance method 'selectionDidChange' part of global actor 'MainActor'
868 | guard !updatingView else { return }
869 |
:
872 |
873 | self.position.selections = newValue
874 | 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
875 | as? CodeStorageDelegate
876 | {
/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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
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: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 |
231 | // MARK: For 'RawRepresentable'
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:328:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
253 | extension CodeEditor {
254 |
255 | public struct IndentationConfiguration: Equatable, RawRepresentable {
| `- note: consider making struct 'IndentationConfiguration' conform to the 'Sendable' protocol
256 |
257 | public enum Preference: Equatable {
:
326 | }
327 |
328 | public static let standard = IndentationConfiguration(preference: .preferSpaces,
| |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'CodeEditor.IndentationConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
329 | tabWidth: 2,
330 | indentWidth: 2,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:398:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
393 | extension CodeEditor {
394 |
395 | public struct SetActions {
| `- note: consider making struct 'SetActions' conform to the 'Sendable' protocol
396 | let setActions: (Actions) -> Void
397 |
398 | public static let ignore: SetActions = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetActions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
399 |
400 | public init(_ setActions: @escaping (Actions) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:491:23: warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
486 | extension CodeEditor {
487 |
488 | public struct SetInfo {
| `- note: consider making struct 'SetInfo' conform to the 'Sendable' protocol
489 | let setInfo: (Info) -> Void
490 |
491 | public static let ignore: SetInfo = .init({ _ in })
| |- warning: static property 'ignore' is not concurrency-safe because non-'Sendable' type 'CodeEditor.SetInfo' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'ignore' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 |
493 | public init(_ setInfo: @escaping (Info) -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:905: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
903 | ///
904 | public struct CodeEditorTheme: EnvironmentKey {
905 | public static var defaultValue: Theme = Theme.defaultLight
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
906 | }
907 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:478:5: warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
| `- warning: let 'message1' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
9 | import SwiftUI
10 |
11 | import LanguageSupport
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'LanguageSupport'
12 |
13 |
:
476 | // MARK: Previews
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
| |- note: add '@MainActor' to make let 'message1' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:479:5: warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
477 |
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
| |- warning: let 'message2' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message2' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:480:5: warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
478 | let message1 = Message(category: .error, length: 1, summary: "It's wrong!", description: nil),
479 | message2 = Message(category: .error, length: 1, summary: "Need to fix this.", description: nil),
480 | message3 = Message(category: .warning, length: 1, summary: "Looks dodgy.",
| |- warning: let 'message3' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message3' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:483:5: warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
481 | description: AttributedString("This doesn't seem right and also totally unclear " +
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
| |- warning: let 'message4' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message4' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
485 |
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/MessageViews.swift:484:5: warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
482 | "what it is supposed to do.")),
483 | message4 = Message(category: .live, length: 1, summary: "Thread 1", description: nil),
484 | message5 = Message(category: .informational, length: 1, summary: "Cool stuff!", description: nil)
| |- warning: let 'message5' is not concurrency-safe because non-'Sendable' type 'Message' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'message5' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
485 |
486 | struct MessageViewPreview: View {
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/Message.swift:16:15: note: struct 'Message' does not conform to the 'Sendable' protocol
14 | /// A message that can be displayed in a code view.
15 | ///
16 | public struct Message {
| `- note: struct 'Message' does not conform to the 'Sendable' protocol
17 |
18 | /// The various category that a message can be in. The earlier in the enumeration, the higher priority in the sense
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:279:7: warning: main actor-isolated property 'optTextContainer' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
22 |
23 | // This is necessary as these members are optional in AppKit and not optional in UIKit.
24 | var optTextContainer: NSTextContainer? { get }
| `- note: requirement 'optTextContainer' declared here
25 | var optCodeStorage: CodeStorage? { get }
26 |
:
272 | import AppKit
273 |
274 | extension NSTextView: TextView {
| `- note: add '@preconcurrency' to the 'TextView' conformance to defer isolation checking to run time
275 | typealias Color = NSColor
276 | typealias Font = NSFont
277 |
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
279 | var optTextContainer: NSTextContainer? { textContainer }
| `- warning: main actor-isolated property 'optTextContainer' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:281:7: warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
23 | // This is necessary as these members are optional in AppKit and not optional in UIKit.
24 | var optTextContainer: NSTextContainer? { get }
25 | var optCodeStorage: CodeStorage? { get }
| `- note: requirement 'optCodeStorage' declared here
26 |
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
:
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
| `- warning: main actor-isolated property 'optCodeStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:278:7: warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
26 |
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
28 | var optTextLayoutManager: NSTextLayoutManager? { get }
| `- note: requirement 'optTextLayoutManager' declared here
29 | var optTextContentStorage: NSTextContentStorage? { get }
30 |
:
276 | typealias Font = NSFont
277 |
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
| `- warning: main actor-isolated property 'optTextLayoutManager' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:280:7: warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
27 | // FIXME: Get rid of the `opt`-prefix. It's not necessary for TextKit 2 objects.
28 | var optTextLayoutManager: NSTextLayoutManager? { get }
29 | var optTextContentStorage: NSTextContentStorage? { get }
| `- note: requirement 'optTextContentStorage' declared here
30 |
31 | var textBackgroundColor: Color? { get }
:
278 | var optTextLayoutManager: NSTextLayoutManager? { textLayoutManager }
279 | var optTextContainer: NSTextContainer? { textContainer }
280 | var optTextContentStorage: NSTextContentStorage? { textContentStorage }
| `- warning: main actor-isolated property 'optTextContentStorage' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
282 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:283:7: warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
29 | var optTextContentStorage: NSTextContentStorage? { get }
30 |
31 | var textBackgroundColor: Color? { get }
| `- note: requirement 'textBackgroundColor' declared here
32 | var textFont: Font? { get }
33 | var textContainerOrigin: CGPoint { get }
:
281 | var optCodeStorage: CodeStorage? { textStorage as? CodeStorage }
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
| `- warning: main actor-isolated property 'textBackgroundColor' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
284 | var textFont: Font? { font }
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:284:7: warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
30 |
31 | var textBackgroundColor: Color? { get }
32 | var textFont: Font? { get }
| `- note: requirement 'textFont' declared here
33 | var textContainerOrigin: CGPoint { get }
34 |
:
282 |
283 | var textBackgroundColor: Color? { backgroundColor }
284 | var textFont: Font? { font }
| `- warning: main actor-isolated property 'textFont' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:285:7: warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
31 | var textBackgroundColor: Color? { get }
32 | var textFont: Font? { get }
33 | var textContainerOrigin: CGPoint { get }
| `- note: requirement 'textContainerOrigin' declared here
34 |
35 | /// The text displayed by the text view.
:
283 | var textBackgroundColor: Color? { backgroundColor }
284 | var textFont: Font? { font }
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
| `- warning: main actor-isolated property 'textContainerOrigin' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
286 |
287 | var text: String! {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:287:7: warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
35 | /// The text displayed by the text view.
36 | ///
37 | var text: String! { get set }
| `- note: requirement 'text' declared here
38 |
39 | /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
:
285 | var textContainerOrigin: CGPoint { return CGPoint(x: textContainerInset.width, y: textContainerInset.height) }
286 |
287 | var text: String! {
| `- warning: main actor-isolated property 'text' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
288 | get { string }
289 | set { string = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:292:7: warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
39 | /// If the current selection is an insertion point (i.e., the selection length is 0), return its location.
40 | ///
41 | var insertionPoint: Int? { get }
| `- note: requirement 'insertionPoint' declared here
42 |
43 | /// The current (single range) selection of the text view.
:
290 | }
291 |
292 | var insertionPoint: Int? {
| `- warning: main actor-isolated property 'insertionPoint' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
293 | if let selection = selectedRanges.first as? NSRange, selection.length == 0 { return selection.location }
294 | else { return nil }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:94:19: warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
92 | @property (getter=isRulerVisible, readonly) BOOL rulerVisible;
93 |
94 | @property NSRange selectedRange;
| `- warning: main actor-isolated property 'selectedRange' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
95 |
96 | - (void)scrollRangeToVisible:(NSRange)range;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:45:7: note: requirement 'selectedRange' declared here
43 | /// The current (single range) selection of the text view.
44 | ///
45 | var selectedRange: NSRange { get set }
| `- note: requirement 'selectedRange' declared here
46 |
47 | /// The set of lines that have characters that are included in the current selection. (This may be a multi-selection,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:297:7: warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
48 | /// and hence, a non-contiguous range.)
49 | ///
50 | var selectedLines: Set<Int> { get }
| `- note: requirement 'selectedLines' declared here
51 |
52 | /// The bounds of the view.
:
295 | }
296 |
297 | var selectedLines: Set<Int> {
| `- warning: main actor-isolated property 'selectedLines' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
298 | guard let codeStorageDelegate = optCodeStorage?.delegate as? CodeStorageDelegate else { return Set() }
299 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- warning: main actor-isolated property 'bounds' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:54:7: note: requirement 'bounds' declared here
52 | /// The bounds of the view.
53 | ///
54 | var bounds: CGRect { get set }
| `- note: requirement 'bounds' declared here
55 |
56 | /// The visible portion of the text view. (This only accounts for portions of the text view that are obscured through
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:307:7: warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
57 | /// visibility in a scroll view.)
58 | ///
59 | var documentVisibleRect: CGRect { get }
| `- note: requirement 'documentVisibleRect' declared here
60 |
61 | /// The size of the whole document (after layout).
:
305 | }
306 |
307 | var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
| `- warning: main actor-isolated property 'documentVisibleRect' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
308 |
309 | var contentSize: CGSize { bounds.size }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:309:7: warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
61 | /// The size of the whole document (after layout).
62 | ///
63 | var contentSize: CGSize { get }
| `- note: requirement 'contentSize' declared here
64 |
65 | /// Temporarily highlight the visible part of the given range.
:
307 | var documentVisibleRect: CGRect { enclosingScrollView?.documentVisibleRect ?? bounds }
308 |
309 | var contentSize: CGSize { bounds.size }
| `- warning: main actor-isolated property 'contentSize' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
310 | }
311 |
AppKit.NSTextView.showFindIndicator:3:24: warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSTextView {
2 | @available(macOS 10.5, *)
3 | @MainActor open func showFindIndicator(for charRange: NSRange)}
| |- warning: main actor-isolated instance method 'showFindIndicator(for:)' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'showFindIndicator(for:)' to make this instance method not isolated to the actor
4 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:67:8: note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
65 | /// Temporarily highlight the visible part of the given range.
66 | ///
67 | func showFindIndicator(for range: NSRange)
| `- note: mark the protocol requirement 'showFindIndicator(for:)' 'async' to allow actor-isolated conformances
68 |
69 | /// Marks the given rectangle of the current view as needing redrawing.
AppKit.NSView.setNeedsDisplay:2:22: warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
1 | class NSView {
2 | @MainActor open func setNeedsDisplay(_ invalidRect: NSRect)}
| |- warning: main actor-isolated instance method 'setNeedsDisplay' cannot be used to satisfy nonisolated requirement from protocol 'TextView'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'setNeedsDisplay' to make this instance method not isolated to the actor
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/TextView.swift:71:8: note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
69 | /// Marks the given rectangle of the current view as needing redrawing.
70 | ///
71 | func setNeedsDisplay(_ invalidRect: CGRect)
| `- note: mark the protocol requirement 'setNeedsDisplay' 'async' to allow actor-isolated conformances
72 | }
73 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:196:21: warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
194 | extension Theme {
195 |
196 | public static var defaultDark: Theme
| |- warning: static property 'defaultDark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultDark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
197 | = Theme(colourScheme: .dark,
198 | fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/Theme.swift:218:21: warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
216 | invisiblesColour: OSColor(red: 0.33, green: 0.37, blue: 0.42, alpha: 1.0))
217 |
218 | public static var defaultLight: Theme
| |- warning: static property 'defaultLight' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLight' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultLight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
219 | = Theme(colourScheme: .light,
220 | fontName: "SFMono-Medium",
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending value of non-Sendable type 'LanguageConfiguration' 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 value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
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:306: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
304 | queue: nil) { [weak self] _notification in
305 |
306 | 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
307 | }
308 | }
:
314 | override var canBecomeKey: Bool { true }
315 |
316 | override func close() {
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
317 | // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
318 | // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:373:56: warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
371 | Task { @MainActor in
372 | for item in self.completions.items.enumerated() {
373 | if let refinedItem = try? await item.element.refine() {
| `- warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
374 | self.completions.items[item.offset] = refinedItem
375 | // 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:474:71: warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
472 |
473 | let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
474 | completions = try await languageService.completions(at: location, reason: reason)
| `- warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
475 | try Task.checkCancellation() // may have been cancelled in the meantime due to further user action
476 | show(completions: completions, for: rangeForUserCompletion, explicitTrigger: explicitTrigger)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:50:15: note: struct 'Completions' does not conform to the 'Sendable' protocol
48 | /// A set of code completions for a specific code position.
49 | ///
50 | public struct Completions {
| `- note: struct 'Completions' does not conform to the 'Sendable' protocol
51 |
52 | /// A single completion item.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:121:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool}
| |- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:17: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
54 | private func send(_ action: Selector) {
| `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
55 | #if os(macOS)
56 | NSApplication.shared.sendAction(action, to: nil, from: nil)
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | #elseif os(iOS) || os(visionOS)
58 | UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:311: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
309 |
310 | deinit {
311 | 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
312 | }
313 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
7 |
8 | import Combine
9 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 | import os
11 |
[43/45] Compiling CodeEditorView CodeEditing.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:306: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
304 | queue: nil) { [weak self] _notification in
305 |
306 | 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
307 | }
308 | }
:
314 | override var canBecomeKey: Bool { true }
315 |
316 | override func close() {
| |- note: calls to instance method 'close()' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSPanel'
317 | // We cancel the completion process if the window gets closed (and the `progressHandler` is still active (i.e., it
318 | // is non-`nil`).
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:373:56: warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
371 | Task { @MainActor in
372 | for item in self.completions.items.enumerated() {
373 | if let refinedItem = try? await item.element.refine() {
| `- warning: non-sendable result type 'Completions.Completion?' cannot be sent from nonisolated context in call to async function; this is an error in the Swift 6 language mode
374 | self.completions.items[item.offset] = refinedItem
375 | // 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:474:71: warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
472 |
473 | let reason: CompletionTriggerReason = if completionPanel.isKeyWindow { .incomplete } else { .standard },
474 | completions = try await languageService.completions(at: location, reason: reason)
| `- warning: non-sendable result type 'Completions' cannot be sent from nonisolated context in call to instance method 'completions(at:reason:)'; this is an error in the Swift 6 language mode
475 | try Task.checkCancellation() // may have been cancelled in the meantime due to further user action
476 | show(completions: completions, for: rangeForUserCompletion, explicitTrigger: explicitTrigger)
/Users/admin/builder/spi-builder-workspace/Sources/LanguageSupport/LanguageService.swift:50:15: note: struct 'Completions' does not conform to the 'Sendable' protocol
48 | /// A set of code completions for a specific code position.
49 | ///
50 | public struct Completions {
| `- note: struct 'Completions' does not conform to the 'Sendable' protocol
51 |
52 | /// A single completion item.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:121:21: warning: main actor-isolated instance method 'duplicate' cannot be used to satisfy nonisolated requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'duplicate' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'reindent' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftLeft' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'shiftRight' to make this instance method not isolated to the actor
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 requirement from protocol 'CodeEditorActions'; 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 requirement from protocol 'CodeEditorActions'; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'commentSelection' to make this instance method not isolated to the actor
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.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool}
| |- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditing.swift:56:17: warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
52 | }
53 |
54 | private func send(_ action: Selector) {
| `- note: add '@MainActor' to make global function 'send' part of global actor 'MainActor'
55 | #if os(macOS)
56 | NSApplication.shared.sendAction(action, to: nil, from: nil)
| `- warning: main actor-isolated class property 'shared' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
57 | #elseif os(iOS) || os(visionOS)
58 | UIApplication.shared.sendAction(action, to: nil, from: nil, for: nil)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:193:61: note: class property declared here
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
| `- note: class property declared here
194 | @property (nullable, weak) id<NSApplicationDelegate> delegate;
195 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:311: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
309 |
310 | deinit {
311 | 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
312 | }
313 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeActions.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
7 |
8 | import Combine
9 | import SwiftUI
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
10 | import os
11 |
[44/45] Compiling CodeEditorView CodeStorageDelegate.swift
/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw. To check whether a view is in a window, call -window. To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
| `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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:517:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
515 | /// reported by the text view.
516 | ///
517 | func considerCompletionFor(range: NSRange) {
| |- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
518 |
519 | /// We don't want to automatically trigger completion for ranges that do not produce sensible results, such as
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:249:30: note: property declared here
247 |
248 | // Usually returns the partial range from the most recent beginning of a word up to the insertion point. May be overridden by subclassers to alter the range to be completed. Returning (NSNotFound, 0) suppresses completion.
249 | @property (readonly) NSRange rangeForUserCompletion;
| `- note: property declared here
250 |
251 | // Returns an array of potential completions, in the order to be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range. May be overridden by subclassers to modify or override this list. Returning nil or a zero-length array suppresses completion. The selected item index may optionally be set to indicate which completion should be initially selected; default is 0, and -1 indicates no selection. This method should call the delegate method textView:completions:forPartialWordRange:indexOfSelectedItem: if implemented.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
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:215:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
213 |
214 | deinit {
215 | Task { [languageService] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
216 | try await languageService?.stop()
| `- note: closure captures 'languageService' which is accessible to code in the current task
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:659: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
657 | guard let firstLine = lines.first else { return }
658 |
659 | 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
660 | do {
661 | if let semanticTokens = try await languageService?.tokens(for: lines) {
| `- note: closure captures 'self' which is accessible to code in the current task
662 |
663 | guard lines.count == semanticTokens.count else {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:362: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
360 | editedRange.max - info.range.location - endColumn
361 | } else { 0 }
362 | 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
363 | try await languageService?.documentDidChange(position: editedRange.location,
| `- note: closure captures 'self' which is accessible to code in the current task
364 | changeInLength: delta,
365 | lineChange: lineChange,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:673:15: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
671 | // Merge the semantic tokens into the syntactic tokens per line
672 | for i in 0..<lines.count {
673 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
674 | }
675 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:673:37: warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
671 | // Merge the semantic tokens into the syntactic tokens per line
672 | for i in 0..<lines.count {
673 | 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
674 | }
675 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:677:42: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
675 |
676 | // Request redrawing for those lines
677 | if let textStorageObserver = textStorage.textStorageObserver {
| |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'textStorage' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
678 | let range = lineMap.charRangeOf(lines: lines)
679 | textStorageObserver.processEditing(for: textStorage,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
8 | // which forms the heart of the code editor.
9 |
10 | import os
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 | import Combine
12 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 value of non-Sendable type 'any LanguageService' 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 value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'openDocument(with:locationService:)' risks causing races in between main actor-isolated and nonisolated uses
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending value of non-Sendable type 'LanguageConfiguration' 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 value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
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/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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:187:16: note: mutation of this property is only permitted within the actor
185 | @property (readonly) BOOL canDraw API_DEPRECATED("If a view needs display, -drawRect: or -updateLayer will be called automatically when the view is able to draw. To check whether a view is in a window, call -window. To check whether a view is hidden, call -isHiddenOrHasHiddenAncestor.", macos(10.0,10.14));
186 | - (void)setNeedsDisplayInRect:(NSRect)invalidRect;
187 | @property BOOL needsDisplay;
| `- note: mutation of this property is only permitted within the actor
188 | - (void)lockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
189 | - (void)unlockFocus API_DEPRECATED("To draw, subclass NSView and implement -drawRect:; AppKit's automatic deferred display mechanism will call -drawRect: as necessary to display the view.", macos(10.0,10.14));
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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:517:8: note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
515 | /// reported by the text view.
516 | ///
517 | func considerCompletionFor(range: NSRange) {
| |- note: calls to instance method 'considerCompletionFor(range:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
518 |
519 | /// We don't want to automatically trigger completion for ranges that do not produce sensible results, such as
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSTextView.h:249:30: note: property declared here
247 |
248 | // Usually returns the partial range from the most recent beginning of a word up to the insertion point. May be overridden by subclassers to alter the range to be completed. Returning (NSNotFound, 0) suppresses completion.
249 | @property (readonly) NSRange rangeForUserCompletion;
| `- note: property declared here
250 |
251 | // Returns an array of potential completions, in the order to be presented, representing complete words that the user might be trying to type when starting by typing the partial word at the given range. May be overridden by subclassers to modify or override this list. Returning nil or a zero-length array suppresses completion. The selected item index may optionally be set to indicate which completion should be initially selected; default is 0, and -1 indicates no selection. This method should call the delegate method textView:completions:forPartialWordRange:indexOfSelectedItem: if implemented.
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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
| `- note: main actor isolation inferred from inheritance from class 'NSTextView'
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:215:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
213 |
214 | deinit {
215 | Task { [languageService] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
216 | try await languageService?.stop()
| `- note: closure captures 'languageService' which is accessible to code in the current task
217 | }
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:659: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
657 | guard let firstLine = lines.first else { return }
658 |
659 | 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
660 | do {
661 | if let semanticTokens = try await languageService?.tokens(for: lines) {
| `- note: closure captures 'self' which is accessible to code in the current task
662 |
663 | guard lines.count == semanticTokens.count else {
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:362: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
360 | editedRange.max - info.range.location - endColumn
361 | } else { 0 }
362 | 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
363 | try await languageService?.documentDidChange(position: editedRange.location,
| `- note: closure captures 'self' which is accessible to code in the current task
364 | changeInLength: delta,
365 | lineChange: lineChange,
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:673:15: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
671 | // Merge the semantic tokens into the syntactic tokens per line
672 | for i in 0..<lines.count {
673 | merge(semanticTokens: semanticTokens[i], into: firstLine + i)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
674 | }
675 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:673:37: warning: sending 'semanticTokens' risks causing data races; this is an error in the Swift 6 language mode
671 | // Merge the semantic tokens into the syntactic tokens per line
672 | for i in 0..<lines.count {
673 | 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
674 | }
675 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeStorageDelegate.swift:677:42: warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
675 |
676 | // Request redrawing for those lines
677 | if let textStorageObserver = textStorage.textStorageObserver {
| |- warning: sending 'textStorage' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'textStorage' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
678 | let range = lineMap.charRangeOf(lines: lines)
679 | textStorageObserver.processEditing(for: textStorage,
/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 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
8 | // which forms the heart of the code editor.
9 |
10 | import os
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
11 | import Combine
12 | import SwiftUI
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/objc/NSObject.h:15:11: note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
13 | @class NSString, NSMethodSignature, NSInvocation;
14 |
15 | @protocol NSObject
| `- note: protocol 'NSObjectProtocol' does not conform to the 'Sendable' protocol
16 |
17 | - (BOOL)isEqual:(id)object;
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift: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 value of non-Sendable type 'any LanguageService' 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 value of non-Sendable type 'any LanguageService' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'any LanguageService' to nonisolated instance method 'openDocument(with:locationService:)' risks causing races in between main actor-isolated and nonisolated uses
706 | locationService: codeStorageDelegate.lineMapLocationConverter)
707 |
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeView.swift:436:43: warning: sending value of non-Sendable type 'LanguageConfiguration' 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 value of non-Sendable type 'LanguageConfiguration' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending main actor-isolated value of non-Sendable type 'LanguageConfiguration' to nonisolated instance method 'change(language:for:)' risks causing races in between main actor-isolated and nonisolated uses
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! (16.54s)
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/Info.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
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/main
Repository: mchakravarty/CodeEditorView
Swift version used: 6.1
Target: LanguageSupport
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Extracting symbol information for 'LanguageSupport'...
Finished extracting symbol information for 'LanguageSupport'. (6.67s)
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.
Finished building documentation for 'LanguageSupport' (0.23s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Updating https://github.com/ChimeHQ/Rearrange
Updated https://github.com/ChimeHQ/Rearrange (0.44s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.58s)
Computing version for https://github.com/ChimeHQ/Rearrange.git
Computed https://github.com/ChimeHQ/Rearrange.git at 1.6.0 (1.17s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.4 (0.61s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.81s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.44s)
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.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[3/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/53] Compiling SymbolKit SourceRange.swift
[12/53] Compiling SymbolKit Metadata.swift
[13/53] Compiling SymbolKit Module.swift
[14/53] Compiling SymbolKit OperatingSystem.swift
[15/53] Compiling SymbolKit Platform.swift
[16/57] Compiling SymbolKit Names.swift
[17/57] Compiling SymbolKit SPI.swift
[18/57] Compiling SymbolKit Snippet.swift
[19/57] Compiling SymbolKit Extension.swift
[20/57] Compiling SymbolKit Identifier.swift
[21/57] Compiling SymbolKit KindIdentifier.swift
[22/57] Compiling SymbolKit Location.swift
[23/57] Compiling SymbolKit Mutability.swift
[24/57] Compiling SymbolKit SemanticVersion.swift
[25/57] Compiling SymbolKit AccessControl.swift
[26/57] Compiling SymbolKit Availability.swift
[27/57] Compiling SymbolKit AvailabilityItem.swift
[28/57] Compiling SymbolKit Domain.swift
[29/57] Compiling SymbolKit GenericConstraint.swift
[30/57] Compiling SymbolKit GenericParameter.swift
[31/57] Compiling SymbolKit Generics.swift
[32/57] Compiling SymbolKit Namespace.swift
[33/57] Emitting module SymbolKit
[34/57] Compiling SymbolKit Relationship.swift
[35/57] Compiling SymbolKit RelationshipKind.swift
[36/57] Compiling SymbolKit SourceOrigin.swift
[37/57] Compiling SymbolKit GenericConstraints.swift
[38/57] Compiling SymbolKit Swift.swift
[39/57] Compiling SymbolKit Mixin+Equals.swift
[40/57] Compiling SymbolKit Mixin+Hash.swift
[41/57] Compiling SymbolKit Mixin.swift
[42/57] Compiling SymbolKit LineList.swift
[43/57] Compiling SymbolKit Position.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.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 Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Emitting module snippet_extract
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Compiling snippet_extract URL+Status.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.35s)
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/Info.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Rearrange/Sources/Rearrange/Rearrange.xcconfig
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/10] Compiling Rearrange UITextRange+Convenience.swift
[3/10] Compiling Rearrange String+NSRange.swift
[4/10] Compiling Rearrange RangeMutation.swift
[5/10] Compiling Rearrange NSRange+Shift.swift
[6/10] Compiling Rearrange NSRange+ApplyMutation.swift
[7/10] Compiling Rearrange NSRange+Convenience.swift
[8/10] Emitting module Rearrange
[9/10] Compiling Rearrange NSTextRange+NSRange.swift
[10/10] Compiling Rearrange IndexSet+NSRange.swift
[11/21] Compiling LanguageSupport SQLiteConfiguration.swift
[12/22] Compiling LanguageSupport Message.swift
[13/22] Compiling LanguageSupport HaskellConfiguration.swift
[14/22] Compiling LanguageSupport LanguageService.swift
[15/22] Compiling LanguageSupport SwiftConfiguration.swift
[16/22] Compiling LanguageSupport Location.swift
[17/22] Emitting module LanguageSupport
[18/22] Compiling LanguageSupport LanguageConfiguration.swift
[19/22] Compiling LanguageSupport Tokeniser.swift
[20/22] Compiling LanguageSupport AgdaConfiguration.swift
[21/22] Compiling LanguageSupport CabalConfiguration.swift
[22/22] Compiling LanguageSupport CypherConfiguration.swift
Build of target: 'LanguageSupport' complete! (2.56s)
Target: CodeEditorView
Extracting symbol information for 'CodeEditorView'...
Finished extracting symbol information for 'CodeEditorView'. (2.71s)
Building documentation for 'CodeEditorView'...
Finished building documentation for 'CodeEditorView' (1.48s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/main
Building for debugging...
[0/3] Write swift-version-2F0A5646E1D333AE.txt
Build of product 'snippet-extract' complete! (0.25s)
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-2F0A5646E1D333AE.txt
[2/20] Compiling CodeEditorView TextLayoutManagerExtras.swift
[3/20] Compiling CodeEditorView TextView.swift
[4/20] Compiling CodeEditorView Theme.swift
[5/20] Compiling CodeEditorView UIHostingView.swift
[6/21] Compiling CodeEditorView ScrollViewExtras.swift
[7/21] Compiling CodeEditorView TextContentStorageExtras.swift
[8/21] Compiling CodeEditorView MinimapView.swift
[9/21] Compiling CodeEditorView OSDefinitions.swift
[10/21] Compiling CodeEditorView ViewModifiers.swift
[11/21] Compiling CodeEditorView LineMap.swift
[12/21] Compiling CodeEditorView MessageViews.swift
[13/21] Compiling CodeEditorView CodeStorageDelegate.swift
[14/21] Compiling CodeEditorView CodeView.swift
[15/21] Compiling CodeEditorView Constants.swift
[16/21] Compiling CodeEditorView GutterView.swift
[17/21] Compiling CodeEditorView CodeEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 | }
745 | }
:
882 |
883 | @MainActor
884 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
885 | guard !updatingView else { return }
886 |
[18/21] Compiling CodeEditorView CodeStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CodeEditorView/CodeEditor.swift:743:33: warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
741 | // FIXME: we would like to get less fine-grained updates here, but `NSScrollView.didEndLiveScrollNotification` doesn't happen when moving the cursor around
742 | if let scrollView {
743 | context.coordinator.scrollPositionDidChange(scrollView)
| `- warning: call to main actor-isolated instance method 'scrollPositionDidChange' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
744 | }
745 | }
:
882 |
883 | @MainActor
884 | func scrollPositionDidChange(_ scrollView: NSScrollView) {
| `- note: calls to instance method 'scrollPositionDidChange' from outside of its actor context are implicitly asynchronous
885 | guard !updatingView else { return }
886 |
[19/21] Emitting module CodeEditorView
[20/21] Compiling CodeEditorView CodeActions.swift
[21/21] Compiling CodeEditorView CodeEditing.swift
Build of target: 'CodeEditorView' complete! (2.32s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mchakravarty/codeeditorview/main/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/mchakravarty/codeeditorview/main/linkable-paths.json
5086
35 /Users/admin/builder/spi-builder-workspace/.docs/mchakravarty/codeeditorview/main
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/mchakravarty/codeeditorview/main
File count: 5086
Doc size: 35.0MB
Preparing doc bundle ...
Uploading prod-mchakravarty-codeeditorview-main-2da8fd3f.zip to s3://spi-docs-inbox/prod-mchakravarty-codeeditorview-main-2da8fd3f.zip
Copying... [11%]
Copying... [20%]
Copying... [31%]
Copying... [40%]
Copying... [51%]
Copying... [60%]
Copying... [71%]
Copying... [80%]
Copying... [91%]
Copying... [100%]
Done.