This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Sourceful with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/twostraws/Sourceful.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/twostraws/Sourceful
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1ec0ed9 Merge pull request #34 from ffraaz/main
Cloned https://github.com/twostraws/Sourceful.git
Revision (git rev-parse @):
1ec0ed95a84d1638df0a6a6fc1a1d0ab7df7ea08
SUCCESS checkout https://github.com/twostraws/Sourceful.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/twostraws/Sourceful.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/28] Emitting module Sourceful
/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: AnyObject {
 19 | 	func didUpdateCursorFloatingState()
    |       `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
 20 | }
 21 |
[4/30] Compiling Sourceful SyntaxColorTheme.swift
[5/30] Compiling Sourceful Token.swift
[6/30] Compiling Sourceful SourceCodeRegexLexer.swift
[7/30] Compiling Sourceful OCamlLexer.swift
[8/30] Compiling Sourceful Python3Lexer.swift
[9/30] Compiling Sourceful SwiftLexer.swift
[10/30] Compiling Sourceful ASTVisualizer.swift
[11/30] Compiling Sourceful JavaLexer.swift
[12/30] Compiling Sourceful JavaScriptLexer.swift
[13/30] Compiling Sourceful DefaultSourceCodeTheme.swift
[14/30] Compiling Sourceful NSMutableAttributedString+Tokens.swift
[15/30] Compiling Sourceful NSTextView+UIKit.swift
[16/30] Compiling Sourceful SyntaxTextViewLayoutManager.swift
[17/30] Compiling Sourceful TextViewWrapperView.swift
[18/30] Compiling Sourceful String+Range.swift
[19/30] Compiling Sourceful Types.swift
[20/30] Compiling Sourceful InnerTextView.swift
[21/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: AnyObject {
 19 | 	func didUpdateCursorFloatingState()
    |       `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
 20 | }
 21 |
[22/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: AnyObject {
 19 | 	func didUpdateCursorFloatingState()
    |       `- note: mark the protocol requirement 'didUpdateCursorFloatingState()' 'async' to allow actor-isolated conformances
 20 | }
 21 |
[23/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 |
[24/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 |
[25/30] Compiling Sourceful Lexer.swift
[26/30] Compiling Sourceful Paragraph.swift
[27/30] Compiling Sourceful RegexLexer.swift
[28/30] Compiling Sourceful SourceCodeTheme.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | extension SourceCodeTextEditor {
125 |
126 |     public class Coordinator: SyntaxTextViewDelegate {
    |                  `- note: class 'Coordinator' does not conform to the 'Sendable' protocol
127 |         let parent: SourceCodeTextEditor
128 |         var wrappedView: SyntaxTextView!
    :
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 self.parent.text = syntaxTextView.text
    |                 `- warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 |             }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 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
141 |             }
142 |
[29/30] Compiling Sourceful SourceCodeToken.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | extension SourceCodeTextEditor {
125 |
126 |     public class Coordinator: SyntaxTextViewDelegate {
    |                  `- note: class 'Coordinator' does not conform to the 'Sendable' protocol
127 |         let parent: SourceCodeTextEditor
128 |         var wrappedView: SyntaxTextView!
    :
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 self.parent.text = syntaxTextView.text
    |                 `- warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 |             }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 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
141 |             }
142 |
[30/30] Compiling Sourceful SourceCodeTextEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | extension SourceCodeTextEditor {
125 |
126 |     public class Coordinator: SyntaxTextViewDelegate {
    |                  `- note: class 'Coordinator' does not conform to the 'Sendable' protocol
127 |         let parent: SourceCodeTextEditor
128 |         var wrappedView: SyntaxTextView!
    :
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 self.parent.text = syntaxTextView.text
    |                 `- warning: capture of 'self' with non-sendable type 'SourceCodeTextEditor.Coordinator' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 |             }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/Sourceful/SwiftUI/SourceCodeTextEditor.swift:140:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
138 |         public func didChangeText(_ syntaxTextView: SyntaxTextView) {
139 |             DispatchQueue.main.async {
140 |                 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
141 |             }
142 |
Build complete! (40.61s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.