Build Information
Successful build of Sourceful, reference 0.4.0 (77317c
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 19:36:13 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/twostraws/Sourceful.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/twostraws/Sourceful
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 77317c0 Merge pull request #17 from NathanFallet/patch-2
Cloned https://github.com/twostraws/Sourceful.git
Revision (git rev-parse @):
77317c0043dc0330e2baf02c43d415bc7cc8a784
SUCCESS checkout https://github.com/twostraws/Sourceful.git at 0.4.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "sourceful",
"name": "Sourceful",
"url": "https://github.com/twostraws/Sourceful.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Sourceful",
"dependencies": [
]
}
]
}
Fetching https://github.com/twostraws/Sourceful.git
[1/326] Fetching sourceful
Fetched https://github.com/twostraws/Sourceful.git from cache (0.77s)
Creating working copy for https://github.com/twostraws/Sourceful.git
Working copy of https://github.com/twostraws/Sourceful.git resolved at 0.4.0 (77317c0)
warning: '.resolve-product-dependencies': dependency 'sourceful' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/twostraws/Sourceful.git
{
"dependencies" : [
],
"manifest_display_name" : "Sourceful",
"name" : "Sourceful",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Sourceful",
"targets" : [
"Sourceful"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SourcefulTests",
"module_type" : "SwiftTarget",
"name" : "SourcefulTests",
"path" : "Tests/SourcefulTests",
"sources" : [
"SourcefulTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Sourceful"
],
"type" : "test"
},
{
"c99name" : "Sourceful",
"module_type" : "SwiftTarget",
"name" : "Sourceful",
"path" : "Sources/Sourceful",
"product_memberships" : [
"Sourceful"
],
"sources" : [
"ASTVisualizer.swift",
"Languages/JavaLexer.swift",
"Languages/JavaScriptLexer.swift",
"Languages/OCamlLexer.swift",
"Languages/Python3Lexer.swift",
"Languages/SwiftLexer.swift",
"Model/Lexer.swift",
"Model/Paragraph.swift",
"Model/RegexLexer.swift",
"Model/SyntaxColorTheme.swift",
"Model/Token.swift",
"SourceCodeRegexLexer.swift",
"SourceCodeTheme.swift",
"SourceCodeToken.swift",
"SwiftUI/SourceCodeTextEditor.swift",
"Themes/DefaultSourceCodeTheme.swift",
"Util/NSMutableAttributedString+Tokens.swift",
"Util/NSTextView+UIKit.swift",
"Util/String+Range.swift",
"Util/Types.swift",
"View/InnerTextView.swift",
"View/LineNumberLayoutManager.swift",
"View/Paragraphs.swift",
"View/SyntaxTextView+TextViewDelegate.swift",
"View/SyntaxTextView.swift",
"View/SyntaxTextViewLayoutManager.swift",
"View/TextViewWrapperView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/28] Emitting module Sourceful
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | protocol InnerTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 | func didUpdateCursorFloatingState()
20 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView+TextViewDelegate.swift:19:7: warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | extension SyntaxTextView: InnerTextViewDelegate {
| `- note: add '@preconcurrency' to the 'InnerTextViewDelegate' conformance to defer isolation checking to run time
18 |
19 | func didUpdateCursorFloatingState() {
| |- warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'didUpdateCursorFloatingState()' to make this instance method not isolated to the actor
20 |
21 | selectionDidChange()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:19:7: note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
17 |
18 | protocol InnerTextViewDelegate: class {
19 | func didUpdateCursorFloatingState()
| `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView.swift:18:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | public protocol SyntaxTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | func didChangeText(_ syntaxTextView: SyntaxTextView)
[4/30] Compiling Sourceful OCamlLexer.swift
[5/30] Compiling Sourceful Python3Lexer.swift
[6/30] Compiling Sourceful SwiftLexer.swift
[7/30] Compiling Sourceful Lexer.swift
[8/30] Compiling Sourceful Paragraph.swift
[9/30] Compiling Sourceful RegexLexer.swift
[10/30] Compiling Sourceful DefaultSourceCodeTheme.swift
[11/30] Compiling Sourceful NSMutableAttributedString+Tokens.swift
[12/30] Compiling Sourceful NSTextView+UIKit.swift
[13/30] Compiling Sourceful SyntaxColorTheme.swift
[14/30] Compiling Sourceful Token.swift
[15/30] Compiling Sourceful SourceCodeRegexLexer.swift
[16/30] Compiling Sourceful LineNumberLayoutManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:52:53: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 |
54 | var paragraphs = [Paragraph]()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:57:12: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
55 | var i = 0
56 |
57 | (textView.text as NSString).enumerateSubstrings(in: range, options: [.byParagraphs]) { (paragraphContent, paragraphRange, enclosingRange, stop) in
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 |
59 | i += 1
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:61:23: warning: call to main actor-isolated instance method 'paragraphRectForRange(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | extension TextView {
18 |
19 | func paragraphRectForRange(range: NSRange) -> CGRect {
| `- note: calls to instance method 'paragraphRectForRange(range:)' from outside of its actor context are implicitly asynchronous
20 |
21 | var nsRange = range
:
59 | i += 1
60 |
61 | let rect = textView.paragraphRectForRange(range: paragraphRange)
| `- warning: call to main actor-isolated instance method 'paragraphRectForRange(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 |
63 | let paragraph = Paragraph(rect: rect, number: i)
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:68:14: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
66 | }
67 |
68 | if textView.text.isEmpty || textView.text.hasSuffix("\n") {
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | var rect: CGRect
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:68:39: warning: main actor-isolated property 'text' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
66 | }
67 |
68 | if textView.text.isEmpty || textView.text.hasSuffix("\n") {
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
69 |
70 | var rect: CGRect
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:73:31: warning: main actor-isolated property 'textContainerInset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
71 |
72 | #if os(macOS)
73 | let gutterWidth = textView.textContainerInset.width
| `- warning: main actor-isolated property 'textContainerInset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
74 | #else
75 | let gutterWidth = textView.textContainerInset.left
AppKit.NSTextView:10:25: note: property declared here
8 | @MainActor unowned(unsafe) open var textContainer: NSTextContainer? { get set }
9 | open func replaceTextContainer(_ newContainer: NSTextContainer)
10 | @MainActor open var textContainerInset: NSSize { get set }
| `- note: property declared here
11 | open var textContainerOrigin: NSPoint { get }
12 | open func invalidateTextContainerOrigin()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:104:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 |
103 | var p = p
104 | p.rect.origin.y = textView.bounds.height - p.rect.height - p.rect.origin.y
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
105 |
106 | return p
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:62: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:50: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:29: warning: main actor-isolated property 'enclosingScrollView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'enclosingScrollView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSView:300:14: note: property declared here
298 | open var clipsToBounds: Bool { get set }
299 | open var postsBoundsChangedNotifications: Bool { get set }
300 | open var enclosingScrollView: NSScrollView? { get }
| `- note: property declared here
301 | open func menu(for event: NSEvent) -> NSMenu?
302 | @available(swift, obsoleted: 3, renamed: "menu(for:)")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:148:29: warning: main actor-isolated property 'theme' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
146 | func drawLineNumbers(_ paragraphs: [Paragraph], in rect: CGRect, for textView: InnerTextView) {
| `- note: add '@MainActor' to make global function 'drawLineNumbers(_:in:for:)' part of global actor 'MainActor'
147 |
148 | guard let style = textView.theme?.lineNumbersStyle else {
| `- warning: main actor-isolated property 'theme' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | return
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:26:6: note: property declared here
24 | weak var innerDelegate: InnerTextViewDelegate?
25 |
26 | var theme: SyntaxColorTheme?
| `- note: property declared here
27 |
28 | var cachedParagraphs: [Paragraph]?
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:162:30: warning: main actor-isolated property 'gutterWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
146 | func drawLineNumbers(_ paragraphs: [Paragraph], in rect: CGRect, for textView: InnerTextView) {
| `- note: add '@MainActor' to make global function 'drawLineNumbers(_:in:for:)' part of global actor 'MainActor'
147 |
148 | guard let style = textView.theme?.lineNumbersStyle else {
:
160 | var drawRect = paragraph.rect
161 |
162 | let gutterWidth = textView.gutterWidth
| `- warning: main actor-isolated property 'gutterWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
163 |
164 | let drawSize = attr.size()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:126:6: note: property declared here
124 | #endif
125 |
126 | var gutterWidth: CGFloat {
| `- note: property declared here
127 | set {
128 |
[17/30] Compiling Sourceful Paragraphs.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:52:53: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
53 |
54 | var paragraphs = [Paragraph]()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:57:12: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
55 | var i = 0
56 |
57 | (textView.text as NSString).enumerateSubstrings(in: range, options: [.byParagraphs]) { (paragraphContent, paragraphRange, enclosingRange, stop) in
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 |
59 | i += 1
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:61:23: warning: call to main actor-isolated instance method 'paragraphRectForRange(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | extension TextView {
18 |
19 | func paragraphRectForRange(range: NSRange) -> CGRect {
| `- note: calls to instance method 'paragraphRectForRange(range:)' from outside of its actor context are implicitly asynchronous
20 |
21 | var nsRange = range
:
59 | i += 1
60 |
61 | let rect = textView.paragraphRectForRange(range: paragraphRange)
| `- warning: call to main actor-isolated instance method 'paragraphRectForRange(range:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
62 |
63 | let paragraph = Paragraph(rect: rect, number: i)
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:68:14: warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
66 | }
67 |
68 | if textView.text.isEmpty || textView.text.hasSuffix("\n") {
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | var rect: CGRect
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:68:39: warning: main actor-isolated property 'text' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
66 | }
67 |
68 | if textView.text.isEmpty || textView.text.hasSuffix("\n") {
| `- warning: main actor-isolated property 'text' can not be referenced from a nonisolated autoclosure; this is an error in the Swift 6 language mode
69 |
70 | var rect: CGRect
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/Util/NSTextView+UIKit.swift:15:6: note: property declared here
13 | extension NSTextView {
14 |
15 | var text: String! {
| `- note: property declared here
16 | get {
17 | return string
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:73:31: warning: main actor-isolated property 'textContainerInset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
48 | }
49 |
50 | func generateParagraphs(for textView: InnerTextView, flipRects: Bool = false) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'generateParagraphs(for:flipRects:)' part of global actor 'MainActor'
51 |
52 | let range = NSRange(location: 0, length: (textView.text as NSString).length)
:
71 |
72 | #if os(macOS)
73 | let gutterWidth = textView.textContainerInset.width
| `- warning: main actor-isolated property 'textContainerInset' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
74 | #else
75 | let gutterWidth = textView.textContainerInset.left
AppKit.NSTextView:10:25: note: property declared here
8 | @MainActor unowned(unsafe) open var textContainer: NSTextContainer? { get set }
9 | open func replaceTextContainer(_ newContainer: NSTextContainer)
10 | @MainActor open var textContainerInset: NSSize { get set }
| `- note: property declared here
11 | open var textContainerOrigin: NSPoint { get }
12 | open func invalidateTextContainerOrigin()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:104:31: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
102 |
103 | var p = p
104 | p.rect.origin.y = textView.bounds.height - p.rect.height - p.rect.origin.y
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
105 |
106 | return p
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:62: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSView:76:25: note: property declared here
74 | @available(swift, obsoleted: 3, renamed: "rotate(byDegrees:)")
75 | open func rotateByAngle(_ angle: CGFloat)
76 | @MainActor open var bounds: NSRect { get set }
| `- note: property declared here
77 | open var isFlipped: Bool { get }
78 | @available(swift, obsoleted: 3, renamed: "isFlipped")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:50: warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'contentView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSScrollView:27:25: note: property declared here
25 | open var contentSize: NSSize { get }
26 | open var documentView: NSView? { get set }
27 | @MainActor open var contentView: NSClipView { get set }
| `- note: property declared here
28 | open var documentCursor: NSCursor? { get set }
29 | open var borderType: NSBorderType { get set }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:120:29: warning: main actor-isolated property 'enclosingScrollView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
112 | }
113 |
114 | func offsetParagraphs(_ paragraphs: [Paragraph], for textView: InnerTextView, yOffset: CGFloat = 0) -> [Paragraph] {
| `- note: add '@MainActor' to make global function 'offsetParagraphs(_:for:yOffset:)' part of global actor 'MainActor'
115 |
116 | var paragraphs = paragraphs
:
118 | #if os(macOS)
119 |
120 | if let yOffset = textView.enclosingScrollView?.contentView.bounds.origin.y {
| `- warning: main actor-isolated property 'enclosingScrollView' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
121 |
122 | paragraphs = paragraphs.map { (p) -> Paragraph in
AppKit.NSView:300:14: note: property declared here
298 | open var clipsToBounds: Bool { get set }
299 | open var postsBoundsChangedNotifications: Bool { get set }
300 | open var enclosingScrollView: NSScrollView? { get }
| `- note: property declared here
301 | open func menu(for event: NSEvent) -> NSMenu?
302 | @available(swift, obsoleted: 3, renamed: "menu(for:)")
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:148:29: warning: main actor-isolated property 'theme' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
146 | func drawLineNumbers(_ paragraphs: [Paragraph], in rect: CGRect, for textView: InnerTextView) {
| `- note: add '@MainActor' to make global function 'drawLineNumbers(_:in:for:)' part of global actor 'MainActor'
147 |
148 | guard let style = textView.theme?.lineNumbersStyle else {
| `- warning: main actor-isolated property 'theme' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
149 | return
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:26:6: note: property declared here
24 | weak var innerDelegate: InnerTextViewDelegate?
25 |
26 | var theme: SyntaxColorTheme?
| `- note: property declared here
27 |
28 | var cachedParagraphs: [Paragraph]?
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/Paragraphs.swift:162:30: warning: main actor-isolated property 'gutterWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
146 | func drawLineNumbers(_ paragraphs: [Paragraph], in rect: CGRect, for textView: InnerTextView) {
| `- note: add '@MainActor' to make global function 'drawLineNumbers(_:in:for:)' part of global actor 'MainActor'
147 |
148 | guard let style = textView.theme?.lineNumbersStyle else {
:
160 | var drawRect = paragraph.rect
161 |
162 | let gutterWidth = textView.gutterWidth
| `- warning: main actor-isolated property 'gutterWidth' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
163 |
164 | let drawSize = attr.size()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:126:6: note: property declared here
124 | #endif
125 |
126 | var gutterWidth: CGFloat {
| `- note: property declared here
127 | set {
128 |
[18/30] Compiling Sourceful SyntaxTextViewLayoutManager.swift
[19/30] Compiling Sourceful TextViewWrapperView.swift
[20/30] Compiling Sourceful SyntaxTextView+TextViewDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView+TextViewDelegate.swift:19:7: warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | extension SyntaxTextView: InnerTextViewDelegate {
| `- note: add '@preconcurrency' to the 'InnerTextViewDelegate' conformance to defer isolation checking to run time
18 |
19 | func didUpdateCursorFloatingState() {
| |- warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'didUpdateCursorFloatingState()' to make this instance method not isolated to the actor
20 |
21 | selectionDidChange()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:19:7: note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
17 |
18 | protocol InnerTextViewDelegate: class {
19 | func didUpdateCursorFloatingState()
| `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView.swift:18:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | public protocol SyntaxTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | func didChangeText(_ syntaxTextView: SyntaxTextView)
[21/30] Compiling Sourceful SyntaxTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView+TextViewDelegate.swift:19:7: warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | extension SyntaxTextView: InnerTextViewDelegate {
| `- note: add '@preconcurrency' to the 'InnerTextViewDelegate' conformance to defer isolation checking to run time
18 |
19 | func didUpdateCursorFloatingState() {
| |- warning: main actor-isolated instance method 'didUpdateCursorFloatingState()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'didUpdateCursorFloatingState()' to make this instance method not isolated to the actor
20 |
21 | selectionDidChange()
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:19:7: note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
17 |
18 | protocol InnerTextViewDelegate: class {
19 | func didUpdateCursorFloatingState()
| `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
20 | }
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/SyntaxTextView.swift:18:41: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | public protocol SyntaxTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 |
20 | func didChangeText(_ syntaxTextView: SyntaxTextView)
[22/30] Compiling Sourceful String+Range.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | protocol InnerTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 | func didUpdateCursorFloatingState()
20 | }
[23/30] Compiling Sourceful Types.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | protocol InnerTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 | func didUpdateCursorFloatingState()
20 | }
[24/30] Compiling Sourceful InnerTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/View/InnerTextView.swift:18:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | #endif
17 |
18 | protocol InnerTextViewDelegate: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
19 | func didUpdateCursorFloatingState()
20 | }
[25/30] Compiling Sourceful ASTVisualizer.swift
[26/30] Compiling Sourceful JavaLexer.swift
[27/30] Compiling Sourceful JavaScriptLexer.swift
[28/30] Compiling Sourceful SourceCodeTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:134:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
131 | }
132 |
133 | public func lexerForSource(_ source: String) -> Lexer {
| `- note: add '@MainActor' to make instance method 'lexerForSource' part of global actor 'MainActor'
134 | parent.custom.lexerForSource(source)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:143:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
135 | }
136 |
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'didChangeText' part of global actor 'MainActor'
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
:
141 |
142 | // allow the client to decide on thread
143 | parent.custom.didChangeText(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:147:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
144 | }
145 |
146 | public func textViewDidBeginEditing(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'textViewDidBeginEditing' part of global actor 'MainActor'
147 | parent.custom.textViewDidBeginEditing(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
148 | }
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:139:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
| |- 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
140 | }
141 |
[29/30] Compiling Sourceful SourceCodeToken.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:134:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
131 | }
132 |
133 | public func lexerForSource(_ source: String) -> Lexer {
| `- note: add '@MainActor' to make instance method 'lexerForSource' part of global actor 'MainActor'
134 | parent.custom.lexerForSource(source)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:143:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
135 | }
136 |
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'didChangeText' part of global actor 'MainActor'
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
:
141 |
142 | // allow the client to decide on thread
143 | parent.custom.didChangeText(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:147:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
144 | }
145 |
146 | public func textViewDidBeginEditing(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'textViewDidBeginEditing' part of global actor 'MainActor'
147 | parent.custom.textViewDidBeginEditing(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
148 | }
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:139:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
| |- 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
140 | }
141 |
[30/30] Compiling Sourceful SourceCodeTextEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:134:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
131 | }
132 |
133 | public func lexerForSource(_ source: String) -> Lexer {
| `- note: add '@MainActor' to make instance method 'lexerForSource' part of global actor 'MainActor'
134 | parent.custom.lexerForSource(source)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:143:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
135 | }
136 |
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'didChangeText' part of global actor 'MainActor'
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
:
141 |
142 | // allow the client to decide on thread
143 | parent.custom.didChangeText(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:147:20: warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
58 | @Binding private var text: String
59 | private var shouldBecomeFirstResponder: Bool
60 | private var custom: Customization
| `- note: property declared here
61 |
62 | public init(
:
144 | }
145 |
146 | public func textViewDidBeginEditing(_ syntaxTextView: SyntaxTextView) {
| `- note: add '@MainActor' to make instance method 'textViewDidBeginEditing' part of global actor 'MainActor'
147 | parent.custom.textViewDidBeginEditing(parent)
| `- warning: main actor-isolated property 'custom' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
148 | }
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:139:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
137 | public func didChangeText(_ syntaxTextView: SyntaxTextView) {
138 | DispatchQueue.main.async {
139 | self.parent.text = syntaxTextView.text
| |- 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
140 | }
141 |
Build complete! (23.52s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Sourceful",
"name" : "Sourceful",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Sourceful",
"targets" : [
"Sourceful"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SourcefulTests",
"module_type" : "SwiftTarget",
"name" : "SourcefulTests",
"path" : "Tests/SourcefulTests",
"sources" : [
"SourcefulTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Sourceful"
],
"type" : "test"
},
{
"c99name" : "Sourceful",
"module_type" : "SwiftTarget",
"name" : "Sourceful",
"path" : "Sources/Sourceful",
"product_memberships" : [
"Sourceful"
],
"sources" : [
"ASTVisualizer.swift",
"Languages/JavaLexer.swift",
"Languages/JavaScriptLexer.swift",
"Languages/OCamlLexer.swift",
"Languages/Python3Lexer.swift",
"Languages/SwiftLexer.swift",
"Model/Lexer.swift",
"Model/Paragraph.swift",
"Model/RegexLexer.swift",
"Model/SyntaxColorTheme.swift",
"Model/Token.swift",
"SourceCodeRegexLexer.swift",
"SourceCodeTheme.swift",
"SourceCodeToken.swift",
"SwiftUI/SourceCodeTextEditor.swift",
"Themes/DefaultSourceCodeTheme.swift",
"Util/NSMutableAttributedString+Tokens.swift",
"Util/NSTextView+UIKit.swift",
"Util/String+Range.swift",
"Util/Types.swift",
"View/InnerTextView.swift",
"View/LineNumberLayoutManager.swift",
"View/Paragraphs.swift",
"View/SyntaxTextView+TextViewDelegate.swift",
"View/SyntaxTextView.swift",
"View/SyntaxTextViewLayoutManager.swift",
"View/TextViewWrapperView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.