Build Information
Successful build of attributed-string-builder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 31
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/objcio/attributed-string-builder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/objcio/attributed-string-builder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 0db7fa9 Changes
Cloned https://github.com/objcio/attributed-string-builder.git
Revision (git rev-parse @):
0db7fa95d4a4372e6248a3cb948da617956ec09f
SUCCESS checkout https://github.com/objcio/attributed-string-builder.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/objcio/attributed-string-builder.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/38] Write swift-version-6F35C1178C84523A.txt
[1/38] Compiling cmark-gfm commonmark.c
[2/38] Compiling cmark-gfm cmark_ctype.c
[3/38] Compiling cmark-gfm footnotes.c
[4/38] Compiling cmark-gfm-extensions tagfilter.c
[5/38] Compiling cmark-gfm-extensions tasklist.c
[6/38] Compiling cmark-gfm-extensions strikethrough.c
[7/38] Compiling cmark-gfm-extensions table.c
[8/38] Compiling cmark-gfm cmark.c
[9/38] Compiling cmark-gfm-extensions core-extensions.c
[10/38] Compiling cmark-gfm-extensions ext_scanners.c
[11/38] Compiling cmark-gfm-extensions autolink.c
[12/38] Compiling cmark-gfm xml.c
[13/38] Compiling cmark-gfm blocks.c
[14/38] Compiling cmark-gfm inlines.c
[15/38] Compiling cmark-gfm syntax_extension.c
[16/38] Compiling cmark-gfm html.c
[17/38] Compiling cmark-gfm registry.c
[18/38] Compiling cmark-gfm render.c
[19/38] Compiling cmark-gfm plugin.c
[20/38] Compiling cmark-gfm references.c
[21/38] Compiling cmark-gfm plaintext.c
[22/38] Compiling cmark-gfm utf8.c
[23/38] Compiling cmark-gfm man.c
[24/38] Compiling cmark-gfm node.c
[25/38] Compiling cmark-gfm map.c
[26/38] Write sources
[27/38] Compiling cmark-gfm linked_list.c
[28/38] Write sources
[29/38] Compiling cmark-gfm iterator.c
[30/38] Compiling cmark-gfm houdini_html_e.c
[31/38] Compiling cmark-gfm latex.c
[32/38] Compiling cmark-gfm buffer.c
[33/38] Compiling CAtomic CAtomic.c
[34/38] Compiling cmark-gfm houdini_href_e.c
[35/38] Compiling cmark-gfm arena.c
[36/38] Compiling cmark-gfm houdini_html_u.c
[37/38] Compiling cmark-gfm scanners.c
[39/99] Compiling Markdown RangeAdjuster.swift
[40/99] Compiling Markdown RangerTracker.swift
[41/99] Compiling Markdown MarkupRewriter.swift
[42/99] Compiling Markdown BasicBlockContainer.swift
[43/99] Compiling Markdown BasicInlineContainer.swift
[44/99] Compiling Markdown BlockContainer.swift
[45/105] Compiling Markdown ThematicBreak.swift
[46/105] Compiling Markdown Table.swift
[47/105] Compiling Markdown TableBody.swift
[48/105] Compiling Markdown TableCell.swift
[49/105] Compiling Markdown TableCellContainer.swift
[50/105] Compiling Markdown TableHead.swift
[51/105] Compiling Markdown TableRow.swift
[52/105] Compiling Markdown Strong.swift
[53/105] Compiling Markdown CustomInline.swift
[54/105] Compiling Markdown InlineCode.swift
[55/105] Compiling Markdown InlineHTML.swift
[56/105] Compiling Markdown LineBreak.swift
[57/105] Compiling Markdown SoftBreak.swift
[58/105] Compiling Markdown SymbolLink.swift
[59/105] Compiling Markdown Replacement.swift
[60/105] Compiling Markdown SourceLocation.swift
[61/105] Compiling Markdown Emphasis.swift
[62/105] Compiling Markdown Image.swift
[63/105] Compiling Markdown InlineAttributes.swift
[64/105] Compiling Markdown Link.swift
[65/105] Compiling Markdown Strikethrough.swift
[66/105] Emitting module Markdown
[67/105] Compiling Markdown ChildIndexPath.swift
[68/105] Compiling Markdown DirectiveArgument.swift
[69/105] Compiling Markdown Document.swift
[70/105] Compiling Markdown LiteralMarkup.swift
[71/105] Compiling Markdown Markup.swift
[72/105] Compiling Markdown MarkupChildren.swift
[73/105] Compiling Markdown MarkupData.swift
[74/105] Compiling Markdown PlainTextConvertibleMarkup.swift
[75/105] Compiling Markdown RawMarkup.swift
[76/105] Compiling Markdown BlockDirective.swift
[77/105] Compiling Markdown BlockQuote.swift
[78/105] Compiling Markdown CustomBlock.swift
[79/105] Compiling Markdown DoxygenParameter.swift
[80/105] Compiling Markdown DoxygenReturns.swift
[81/105] Compiling Markdown BlockMarkup.swift
[82/105] Compiling Markdown InlineContainer.swift
[83/105] Compiling Markdown InlineMarkup.swift
[84/105] Compiling Markdown ListItemContainer.swift
[85/105] Compiling Markdown AtomicCounter.swift
[86/105] Compiling Markdown CharacterExtensions.swift
[87/105] Compiling Markdown ListItem.swift
[88/105] Compiling Markdown OrderedList.swift
[89/105] Compiling Markdown UnorderedList.swift
[90/105] Compiling Markdown Paragraph.swift
[91/105] Compiling Markdown CodeBlock.swift
[92/105] Compiling Markdown HTMLBlock.swift
[93/105] Compiling Markdown Heading.swift
[94/105] Compiling Markdown Text.swift
[95/105] Compiling Markdown Aside.swift
[96/105] Compiling Markdown BlockDirectiveParser.swift
[97/105] Compiling Markdown CommonMarkConverter.swift
[98/105] Compiling Markdown LazySplitLines.swift
[99/105] Compiling Markdown ParseOptions.swift
[100/105] Compiling Markdown CollectionExtensions.swift
[101/105] Compiling Markdown StringExtensions.swift
[102/105] Compiling Markdown MarkupVisitor.swift
[103/105] Compiling Markdown MarkupWalker.swift
[104/105] Compiling Markdown MarkupFormatter.swift
[105/105] Compiling Markdown MarkupTreeDumper.swift
[106/127] Emitting module AttributedStringBuilder
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Checklist.swift:75:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public final class CheckboxModel: ObservableObject {
| `- note: class 'CheckboxModel' does not conform to the 'Sendable' protocol
75 | public static let shared = CheckboxModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | private init() { }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Footnote.swift:4:16: warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | struct FootnoteCounter: StateKey {
4 | static var initialValue = 1
| |- warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Image.swift:3:11: warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
1 | import Cocoa
2 |
3 | extension NSImage: AttributedStringConvertible {
| `- warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
4 | public func attributedString(context: inout Context) -> [NSAttributedString] {
5 | let attachment = NSTextAttachment()
AppKit.NSImage:1:12: note: type declared here
1 | open class NSImage : NSObject {
| `- note: type declared here
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | struct HighlightCode: EnvironmentKey {
13 | static var defaultValue: ((Code) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:28:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | struct Rewriters: EnvironmentKey {
28 | static var defaultValue: [any MarkupRewriter] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:39:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | struct CustomLinkRewriter: EnvironmentKey {
39 | static var defaultValue: ((Link, NSAttributedString) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:67:1: warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
65 | }
66 |
67 | @MainActor(unsafe)
| `- warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
68 | struct AttributedStringWalker: MarkupWalker {
69 | var interpolationSegments: [any AttributedStringConvertible]
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:308:19: warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
306 | }
307 |
308 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> () {
| |- warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitBlockQuote' to make this instance method not isolated to the actor
309 | let original = attributes
310 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:44:19: note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
42 | - returns: The result of the visit.
43 | */
44 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> Result
| `- note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
45 |
46 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:119:19: warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
117 | }
118 |
119 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCodeBlock' to make this instance method not isolated to the actor
120 | var attributes = attributes
121 | let code = codeBlock.code.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:52:19: note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
50 | - returns: The result of the visit.
51 | */
52 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> Result
| `- note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
53 |
54 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:178:10: warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
176 | }
177 |
178 | func visitCustomBlock(_ customBlock: CustomBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomBlock' to make this instance method not isolated to the actor
179 | fatalError()
180 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:60:19: note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
58 | - returns: The result of the visit.
59 | */
60 | mutating func visitCustomBlock(_ customBlock: CustomBlock) -> Result
| `- note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
61 |
62 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:92:19: warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
90 | var customLinkVisitor: ((Link, NSAttributedString) -> any AttributedStringConvertible)?
91 |
92 | mutating func visitDocument(_ document: Document) -> () {
| |- warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitDocument' to make this instance method not isolated to the actor
93 | for block in document.blockChildren {
94 | if !attributedString.string.isEmpty {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:68:19: note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
66 | - returns: The result of the visit.
67 | */
68 | mutating func visitDocument(_ document: Document) -> Result
| `- note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
69 |
70 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:207:19: warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
205 | }
206 |
207 | mutating func visitHeading(_ heading: Heading) -> () {
| |- warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHeading' to make this instance method not isolated to the actor
208 | let original = attributes
209 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:76:19: note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
74 | - returns: The result of the visit.
75 | */
76 | mutating func visitHeading(_ heading: Heading) -> Result
| `- note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
77 |
78 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:317:10: warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
315 | }
316 |
317 | func visitThematicBreak(_ thematicBreak: ThematicBreak) -> () {
| |- warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitThematicBreak' to make this instance method not isolated to the actor
318 | // TODO we could consider making this stylable, but ideally the stylesheet doesn't know about NSAttributedString?
319 | let thematicBreak = NSAttributedString(string: "\n\r\u{00A0} \u{0009} \u{00A0}\n\n", attributes: [.strikethroughStyle: NSUnderlineStyle.single.rawValue, .strikethroughColor: NSColor.gray])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:84:19: note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
82 | - returns: The result of the visit.
83 | */
84 | mutating func visitThematicBreak(_ thematicBreak: ThematicBreak) -> Result
| `- note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
85 |
86 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:137:10: warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
135 | }
136 |
137 | func visitHTMLBlock(_ html: HTMLBlock) -> () {
| |- warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHTMLBlock' to make this instance method not isolated to the actor
138 | fatalError()
139 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:92:19: note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
90 | - returns: The result of the visit.
91 | */
92 | mutating func visitHTMLBlock(_ html: HTMLBlock) -> Result
| `- note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
93 |
94 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:292:19: warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
290 | }
291 |
292 | mutating func visitListItem(_ listItem: ListItem) -> () {
| |- warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitListItem' to make this instance method not isolated to the actor
293 | let original = attributes
294 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:100:19: note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
98 | - returns: The result of the visit.
99 | */
100 | mutating func visitListItem(_ listItem: ListItem) -> Result
| `- note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
101 |
102 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:227:19: warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
225 | }
226 |
227 | mutating func visitOrderedList(_ orderedList: OrderedList) -> () {
| |- warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitOrderedList' to make this instance method not isolated to the actor
228 | visit(list: orderedList)
229 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:108:19: note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
106 | - returns: The result of the visit.
107 | */
108 | mutating func visitOrderedList(_ orderedList: OrderedList) -> Result
| `- note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
109 |
110 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:231:19: warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
229 | }
230 |
231 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> () {
| |- warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitUnorderedList' to make this instance method not isolated to the actor
232 | visit(list: unorderedList)
233 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:116:19: note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
114 | - returns: The result of the visit.
115 | */
116 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> Result
| `- note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
117 |
118 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:113:10: warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | }
112 |
113 | func visitInlineCode(_ inlineCode: InlineCode) -> () {
| |- warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineCode' to make this instance method not isolated to the actor
114 | var attributes = attributes
115 | stylesheet.inlineCode(attributes: &attributes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:140:19: note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
138 | - returns: The result of the visit.
139 | */
140 | mutating func visitInlineCode(_ inlineCode: InlineCode) -> Result
| `- note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
141 |
142 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:182:10: warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | }
181 |
182 | func visitCustomInline(_ customInline: CustomInline) -> () {
| |- warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomInline' to make this instance method not isolated to the actor
183 | fatalError()
184 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:148:19: note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
146 | - returns: The result of the visit.
147 | */
148 | mutating func visitCustomInline(_ customInline: CustomInline) -> Result
| `- note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
149 |
150 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:156:19: warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
154 | }
155 |
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> () {
| |- warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitEmphasis' to make this instance method not isolated to the actor
157 | let original = attributes
158 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:156:19: note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
154 | - returns: The result of the visit.
155 | */
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> Result
| `- note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:133:10: warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
131 | }
132 |
133 | func visitInlineHTML(_ inlineHTML: InlineHTML) -> () {
| |- warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineHTML' to make this instance method not isolated to the actor
134 | fatalError()
135 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:172:19: note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
170 | - returns: The result of the visit.
171 | */
172 | mutating func visitInlineHTML(_ inlineHTML: InlineHTML) -> Result
| `- note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
173 |
174 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:105:10: warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
103 | }
104 |
105 | func visitLineBreak(_ lineBreak: LineBreak) -> () {
| |- warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLineBreak' to make this instance method not isolated to the actor
106 | attributedString.append(NSAttributedString(string: "\n", attributes: attributes))
107 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:180:19: note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
178 | - returns: The result of the visit.
179 | */
180 | mutating func visitLineBreak(_ lineBreak: LineBreak) -> Result
| `- note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:186:19: warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
184 | }
185 |
186 | mutating func visitLink(_ link: Link) -> () {
| |- warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLink' to make this instance method not isolated to the actor
187 | let original = attributes
188 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:188:19: note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
186 | - returns: The result of the visit.
187 | */
188 | mutating func visitLink(_ link: Link) -> Result
| `- note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
189 |
190 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:109:10: warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
107 | }
108 |
109 | func visitSoftBreak(_ softBreak: SoftBreak) -> () {
| |- warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSoftBreak' to make this instance method not isolated to the actor
110 | return
111 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:196:19: note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
194 | - returns: The result of the visit.
195 | */
196 | mutating func visitSoftBreak(_ softBreak: SoftBreak) -> Result
| `- note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
197 |
198 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:167:19: warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
165 | }
166 |
167 | mutating func visitStrong(_ strong: Strong) -> () {
| |- warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitStrong' to make this instance method not isolated to the actor
168 | let original = attributes
169 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:204:19: note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
202 | - returns: The result of the visit.
203 | */
204 | mutating func visitStrong(_ strong: Strong) -> Result
| `- note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
205 |
206 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:101:10: warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
99 | }
100 |
101 | func visitText(_ text: Text) -> () {
| |- warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitText' to make this instance method not isolated to the actor
102 | attributedString.append(NSAttributedString(string: text.string, attributes: attributes))
103 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:212:19: note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
210 | - returns: The result of the visit.
211 | */
212 | mutating func visitText(_ text: Text) -> Result
| `- note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
213 |
214 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:141:19: warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
139 | }
140 |
141 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> () {
| |- warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSymbolLink' to make this instance method not isolated to the actor
142 | let prefixStr = "io.objc.interpolate."
143 | var remainder = symbolLink.destination ?? ""
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:268:19: note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
266 | - returns: The result of the visit.
267 | */
268 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> Result
| `- note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
269 |
270 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:404:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
402 |
403 | struct MarkdownStylesheetKey: EnvironmentKey {
404 | static var defaultValue: any Stylesheet = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | }
406 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:46:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | struct ModifySwiftUIEnvironment: EnvironmentKey {
46 | static var defaultValue: (inout SwiftUI.EnvironmentValues) -> () = { _ in () }
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:22: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:20: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:28: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:33: warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| |- warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:39: warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| |- warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:61: warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| |- warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:80:29: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
78 | }
79 |
80 | public var borderColor: NSColor = .black
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
81 | public var borderWidth: WidthValue = 0
82 | public var padding: WidthValue = 0
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:87:27: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
85 | public var width: Table.Width?
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
89 |
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:88:35: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
89 |
90 | @MainActor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
[107/129] Compiling AttributedStringBuilder MarkdownString.swift
[108/129] Compiling AttributedStringBuilder MarkdownStylesheet.swift
[109/129] Compiling AttributedStringBuilder AddOutline.swift
[110/129] Compiling AttributedStringBuilder AttributedStringBuilder.swift
[111/129] Compiling AttributedStringBuilder AttributedStringConvertible.swift
[112/129] Compiling AttributedStringBuilder LayoutManagerHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | struct HighlightCode: EnvironmentKey {
13 | static var defaultValue: ((Code) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:28:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | struct Rewriters: EnvironmentKey {
28 | static var defaultValue: [any MarkupRewriter] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:39:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | struct CustomLinkRewriter: EnvironmentKey {
39 | static var defaultValue: ((Link, NSAttributedString) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:67:1: warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
65 | }
66 |
67 | @MainActor(unsafe)
| `- warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
68 | struct AttributedStringWalker: MarkupWalker {
69 | var interpolationSegments: [any AttributedStringConvertible]
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:308:19: warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
306 | }
307 |
308 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> () {
| |- warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitBlockQuote' to make this instance method not isolated to the actor
309 | let original = attributes
310 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:44:19: note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
42 | - returns: The result of the visit.
43 | */
44 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> Result
| `- note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
45 |
46 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:119:19: warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
117 | }
118 |
119 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCodeBlock' to make this instance method not isolated to the actor
120 | var attributes = attributes
121 | let code = codeBlock.code.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:52:19: note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
50 | - returns: The result of the visit.
51 | */
52 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> Result
| `- note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
53 |
54 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:178:10: warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
176 | }
177 |
178 | func visitCustomBlock(_ customBlock: CustomBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomBlock' to make this instance method not isolated to the actor
179 | fatalError()
180 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:60:19: note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
58 | - returns: The result of the visit.
59 | */
60 | mutating func visitCustomBlock(_ customBlock: CustomBlock) -> Result
| `- note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
61 |
62 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:92:19: warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
90 | var customLinkVisitor: ((Link, NSAttributedString) -> any AttributedStringConvertible)?
91 |
92 | mutating func visitDocument(_ document: Document) -> () {
| |- warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitDocument' to make this instance method not isolated to the actor
93 | for block in document.blockChildren {
94 | if !attributedString.string.isEmpty {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:68:19: note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
66 | - returns: The result of the visit.
67 | */
68 | mutating func visitDocument(_ document: Document) -> Result
| `- note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
69 |
70 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:207:19: warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
205 | }
206 |
207 | mutating func visitHeading(_ heading: Heading) -> () {
| |- warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHeading' to make this instance method not isolated to the actor
208 | let original = attributes
209 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:76:19: note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
74 | - returns: The result of the visit.
75 | */
76 | mutating func visitHeading(_ heading: Heading) -> Result
| `- note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
77 |
78 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:317:10: warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
315 | }
316 |
317 | func visitThematicBreak(_ thematicBreak: ThematicBreak) -> () {
| |- warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitThematicBreak' to make this instance method not isolated to the actor
318 | // TODO we could consider making this stylable, but ideally the stylesheet doesn't know about NSAttributedString?
319 | let thematicBreak = NSAttributedString(string: "\n\r\u{00A0} \u{0009} \u{00A0}\n\n", attributes: [.strikethroughStyle: NSUnderlineStyle.single.rawValue, .strikethroughColor: NSColor.gray])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:84:19: note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
82 | - returns: The result of the visit.
83 | */
84 | mutating func visitThematicBreak(_ thematicBreak: ThematicBreak) -> Result
| `- note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
85 |
86 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:137:10: warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
135 | }
136 |
137 | func visitHTMLBlock(_ html: HTMLBlock) -> () {
| |- warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHTMLBlock' to make this instance method not isolated to the actor
138 | fatalError()
139 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:92:19: note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
90 | - returns: The result of the visit.
91 | */
92 | mutating func visitHTMLBlock(_ html: HTMLBlock) -> Result
| `- note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
93 |
94 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:292:19: warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
290 | }
291 |
292 | mutating func visitListItem(_ listItem: ListItem) -> () {
| |- warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitListItem' to make this instance method not isolated to the actor
293 | let original = attributes
294 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:100:19: note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
98 | - returns: The result of the visit.
99 | */
100 | mutating func visitListItem(_ listItem: ListItem) -> Result
| `- note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
101 |
102 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:227:19: warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
225 | }
226 |
227 | mutating func visitOrderedList(_ orderedList: OrderedList) -> () {
| |- warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitOrderedList' to make this instance method not isolated to the actor
228 | visit(list: orderedList)
229 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:108:19: note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
106 | - returns: The result of the visit.
107 | */
108 | mutating func visitOrderedList(_ orderedList: OrderedList) -> Result
| `- note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
109 |
110 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:231:19: warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
229 | }
230 |
231 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> () {
| |- warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitUnorderedList' to make this instance method not isolated to the actor
232 | visit(list: unorderedList)
233 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:116:19: note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
114 | - returns: The result of the visit.
115 | */
116 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> Result
| `- note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
117 |
118 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:113:10: warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | }
112 |
113 | func visitInlineCode(_ inlineCode: InlineCode) -> () {
| |- warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineCode' to make this instance method not isolated to the actor
114 | var attributes = attributes
115 | stylesheet.inlineCode(attributes: &attributes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:140:19: note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
138 | - returns: The result of the visit.
139 | */
140 | mutating func visitInlineCode(_ inlineCode: InlineCode) -> Result
| `- note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
141 |
142 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:182:10: warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | }
181 |
182 | func visitCustomInline(_ customInline: CustomInline) -> () {
| |- warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomInline' to make this instance method not isolated to the actor
183 | fatalError()
184 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:148:19: note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
146 | - returns: The result of the visit.
147 | */
148 | mutating func visitCustomInline(_ customInline: CustomInline) -> Result
| `- note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
149 |
150 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:156:19: warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
154 | }
155 |
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> () {
| |- warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitEmphasis' to make this instance method not isolated to the actor
157 | let original = attributes
158 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:156:19: note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
154 | - returns: The result of the visit.
155 | */
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> Result
| `- note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:133:10: warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
131 | }
132 |
133 | func visitInlineHTML(_ inlineHTML: InlineHTML) -> () {
| |- warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineHTML' to make this instance method not isolated to the actor
134 | fatalError()
135 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:172:19: note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
170 | - returns: The result of the visit.
171 | */
172 | mutating func visitInlineHTML(_ inlineHTML: InlineHTML) -> Result
| `- note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
173 |
174 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:105:10: warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
103 | }
104 |
105 | func visitLineBreak(_ lineBreak: LineBreak) -> () {
| |- warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLineBreak' to make this instance method not isolated to the actor
106 | attributedString.append(NSAttributedString(string: "\n", attributes: attributes))
107 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:180:19: note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
178 | - returns: The result of the visit.
179 | */
180 | mutating func visitLineBreak(_ lineBreak: LineBreak) -> Result
| `- note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:186:19: warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
184 | }
185 |
186 | mutating func visitLink(_ link: Link) -> () {
| |- warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLink' to make this instance method not isolated to the actor
187 | let original = attributes
188 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:188:19: note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
186 | - returns: The result of the visit.
187 | */
188 | mutating func visitLink(_ link: Link) -> Result
| `- note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
189 |
190 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:109:10: warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
107 | }
108 |
109 | func visitSoftBreak(_ softBreak: SoftBreak) -> () {
| |- warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSoftBreak' to make this instance method not isolated to the actor
110 | return
111 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:196:19: note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
194 | - returns: The result of the visit.
195 | */
196 | mutating func visitSoftBreak(_ softBreak: SoftBreak) -> Result
| `- note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
197 |
198 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:167:19: warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
165 | }
166 |
167 | mutating func visitStrong(_ strong: Strong) -> () {
| |- warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitStrong' to make this instance method not isolated to the actor
168 | let original = attributes
169 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:204:19: note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
202 | - returns: The result of the visit.
203 | */
204 | mutating func visitStrong(_ strong: Strong) -> Result
| `- note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
205 |
206 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:101:10: warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
99 | }
100 |
101 | func visitText(_ text: Text) -> () {
| |- warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitText' to make this instance method not isolated to the actor
102 | attributedString.append(NSAttributedString(string: text.string, attributes: attributes))
103 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:212:19: note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
210 | - returns: The result of the visit.
211 | */
212 | mutating func visitText(_ text: Text) -> Result
| `- note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
213 |
214 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:141:19: warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
139 | }
140 |
141 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> () {
| |- warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSymbolLink' to make this instance method not isolated to the actor
142 | let prefixStr = "io.objc.interpolate."
143 | var remainder = symbolLink.destination ?? ""
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:268:19: note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
266 | - returns: The result of the visit.
267 | */
268 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> Result
| `- note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
269 |
270 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:404:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
402 |
403 | struct MarkdownStylesheetKey: EnvironmentKey {
404 | static var defaultValue: any Stylesheet = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | }
406 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:191:16: warning: value 'c' was defined but never used; consider replacing with boolean test
189 |
190 | stylesheet.link(attributes: &attributes, destination: link.destination ?? "")
191 | if let c = customLinkVisitor {
| `- warning: value 'c' was defined but never used; consider replacing with boolean test
192 | attributedStringStack.append(NSMutableAttributedString())
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Parser/ParseOptions.swift:23:23: warning: static property 'parseSymbolLinks' is not concurrency-safe because non-'Sendable' type 'ParseOptions' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Options for parsing Markdown.
12 | public struct ParseOptions: OptionSet {
| `- note: consider making struct 'ParseOptions' conform to the 'Sendable' protocol
13 | public var rawValue: UInt
14 |
:
21 |
22 | /// Enable interpretation of symbol links from inline code spans surrounded by two backticks.
23 | public static let parseSymbolLinks = ParseOptions(rawValue: 1 << 1)
| |- warning: static property 'parseSymbolLinks' is not concurrency-safe because non-'Sendable' type 'ParseOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parseSymbolLinks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Disable converting straight quotes to curly, --- to em dashes, -- to en dashes during parsing
[113/129] Compiling AttributedStringBuilder MarkdownHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:13:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
11 |
12 | struct HighlightCode: EnvironmentKey {
13 | static var defaultValue: ((Code) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:28:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
26 |
27 | struct Rewriters: EnvironmentKey {
28 | static var defaultValue: [any MarkupRewriter] = []
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | }
30 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:39:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | struct CustomLinkRewriter: EnvironmentKey {
39 | static var defaultValue: ((Link, NSAttributedString) -> any AttributedStringConvertible)? = nil
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:67:1: warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
65 | }
66 |
67 | @MainActor(unsafe)
| `- warning: '(unsafe)' global actors are deprecated; use '@preconcurrency' instead; this is an error in the Swift 6 language mode
68 | struct AttributedStringWalker: MarkupWalker {
69 | var interpolationSegments: [any AttributedStringConvertible]
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:308:19: warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
306 | }
307 |
308 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> () {
| |- warning: main actor-isolated instance method 'visitBlockQuote' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitBlockQuote' to make this instance method not isolated to the actor
309 | let original = attributes
310 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:44:19: note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
42 | - returns: The result of the visit.
43 | */
44 | mutating func visitBlockQuote(_ blockQuote: BlockQuote) -> Result
| `- note: mark the protocol requirement 'visitBlockQuote' 'async' to allow actor-isolated conformances
45 |
46 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:119:19: warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
117 | }
118 |
119 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCodeBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCodeBlock' to make this instance method not isolated to the actor
120 | var attributes = attributes
121 | let code = codeBlock.code.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:52:19: note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
50 | - returns: The result of the visit.
51 | */
52 | mutating func visitCodeBlock(_ codeBlock: CodeBlock) -> Result
| `- note: mark the protocol requirement 'visitCodeBlock' 'async' to allow actor-isolated conformances
53 |
54 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:178:10: warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
176 | }
177 |
178 | func visitCustomBlock(_ customBlock: CustomBlock) -> () {
| |- warning: main actor-isolated instance method 'visitCustomBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomBlock' to make this instance method not isolated to the actor
179 | fatalError()
180 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:60:19: note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
58 | - returns: The result of the visit.
59 | */
60 | mutating func visitCustomBlock(_ customBlock: CustomBlock) -> Result
| `- note: mark the protocol requirement 'visitCustomBlock' 'async' to allow actor-isolated conformances
61 |
62 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:92:19: warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
90 | var customLinkVisitor: ((Link, NSAttributedString) -> any AttributedStringConvertible)?
91 |
92 | mutating func visitDocument(_ document: Document) -> () {
| |- warning: main actor-isolated instance method 'visitDocument' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitDocument' to make this instance method not isolated to the actor
93 | for block in document.blockChildren {
94 | if !attributedString.string.isEmpty {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:68:19: note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
66 | - returns: The result of the visit.
67 | */
68 | mutating func visitDocument(_ document: Document) -> Result
| `- note: mark the protocol requirement 'visitDocument' 'async' to allow actor-isolated conformances
69 |
70 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:207:19: warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
205 | }
206 |
207 | mutating func visitHeading(_ heading: Heading) -> () {
| |- warning: main actor-isolated instance method 'visitHeading' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHeading' to make this instance method not isolated to the actor
208 | let original = attributes
209 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:76:19: note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
74 | - returns: The result of the visit.
75 | */
76 | mutating func visitHeading(_ heading: Heading) -> Result
| `- note: mark the protocol requirement 'visitHeading' 'async' to allow actor-isolated conformances
77 |
78 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:317:10: warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
315 | }
316 |
317 | func visitThematicBreak(_ thematicBreak: ThematicBreak) -> () {
| |- warning: main actor-isolated instance method 'visitThematicBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitThematicBreak' to make this instance method not isolated to the actor
318 | // TODO we could consider making this stylable, but ideally the stylesheet doesn't know about NSAttributedString?
319 | let thematicBreak = NSAttributedString(string: "\n\r\u{00A0} \u{0009} \u{00A0}\n\n", attributes: [.strikethroughStyle: NSUnderlineStyle.single.rawValue, .strikethroughColor: NSColor.gray])
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:84:19: note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
82 | - returns: The result of the visit.
83 | */
84 | mutating func visitThematicBreak(_ thematicBreak: ThematicBreak) -> Result
| `- note: mark the protocol requirement 'visitThematicBreak' 'async' to allow actor-isolated conformances
85 |
86 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:137:10: warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
135 | }
136 |
137 | func visitHTMLBlock(_ html: HTMLBlock) -> () {
| |- warning: main actor-isolated instance method 'visitHTMLBlock' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitHTMLBlock' to make this instance method not isolated to the actor
138 | fatalError()
139 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:92:19: note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
90 | - returns: The result of the visit.
91 | */
92 | mutating func visitHTMLBlock(_ html: HTMLBlock) -> Result
| `- note: mark the protocol requirement 'visitHTMLBlock' 'async' to allow actor-isolated conformances
93 |
94 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:292:19: warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
290 | }
291 |
292 | mutating func visitListItem(_ listItem: ListItem) -> () {
| |- warning: main actor-isolated instance method 'visitListItem' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitListItem' to make this instance method not isolated to the actor
293 | let original = attributes
294 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:100:19: note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
98 | - returns: The result of the visit.
99 | */
100 | mutating func visitListItem(_ listItem: ListItem) -> Result
| `- note: mark the protocol requirement 'visitListItem' 'async' to allow actor-isolated conformances
101 |
102 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:227:19: warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
225 | }
226 |
227 | mutating func visitOrderedList(_ orderedList: OrderedList) -> () {
| |- warning: main actor-isolated instance method 'visitOrderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitOrderedList' to make this instance method not isolated to the actor
228 | visit(list: orderedList)
229 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:108:19: note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
106 | - returns: The result of the visit.
107 | */
108 | mutating func visitOrderedList(_ orderedList: OrderedList) -> Result
| `- note: mark the protocol requirement 'visitOrderedList' 'async' to allow actor-isolated conformances
109 |
110 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:231:19: warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
229 | }
230 |
231 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> () {
| |- warning: main actor-isolated instance method 'visitUnorderedList' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitUnorderedList' to make this instance method not isolated to the actor
232 | visit(list: unorderedList)
233 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:116:19: note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
114 | - returns: The result of the visit.
115 | */
116 | mutating func visitUnorderedList(_ unorderedList: UnorderedList) -> Result
| `- note: mark the protocol requirement 'visitUnorderedList' 'async' to allow actor-isolated conformances
117 |
118 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:113:10: warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
111 | }
112 |
113 | func visitInlineCode(_ inlineCode: InlineCode) -> () {
| |- warning: main actor-isolated instance method 'visitInlineCode' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineCode' to make this instance method not isolated to the actor
114 | var attributes = attributes
115 | stylesheet.inlineCode(attributes: &attributes)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:140:19: note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
138 | - returns: The result of the visit.
139 | */
140 | mutating func visitInlineCode(_ inlineCode: InlineCode) -> Result
| `- note: mark the protocol requirement 'visitInlineCode' 'async' to allow actor-isolated conformances
141 |
142 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:182:10: warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
180 | }
181 |
182 | func visitCustomInline(_ customInline: CustomInline) -> () {
| |- warning: main actor-isolated instance method 'visitCustomInline' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitCustomInline' to make this instance method not isolated to the actor
183 | fatalError()
184 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:148:19: note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
146 | - returns: The result of the visit.
147 | */
148 | mutating func visitCustomInline(_ customInline: CustomInline) -> Result
| `- note: mark the protocol requirement 'visitCustomInline' 'async' to allow actor-isolated conformances
149 |
150 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:156:19: warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
154 | }
155 |
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> () {
| |- warning: main actor-isolated instance method 'visitEmphasis' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitEmphasis' to make this instance method not isolated to the actor
157 | let original = attributes
158 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:156:19: note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
154 | - returns: The result of the visit.
155 | */
156 | mutating func visitEmphasis(_ emphasis: Emphasis) -> Result
| `- note: mark the protocol requirement 'visitEmphasis' 'async' to allow actor-isolated conformances
157 |
158 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:133:10: warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
131 | }
132 |
133 | func visitInlineHTML(_ inlineHTML: InlineHTML) -> () {
| |- warning: main actor-isolated instance method 'visitInlineHTML' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitInlineHTML' to make this instance method not isolated to the actor
134 | fatalError()
135 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:172:19: note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
170 | - returns: The result of the visit.
171 | */
172 | mutating func visitInlineHTML(_ inlineHTML: InlineHTML) -> Result
| `- note: mark the protocol requirement 'visitInlineHTML' 'async' to allow actor-isolated conformances
173 |
174 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:105:10: warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
103 | }
104 |
105 | func visitLineBreak(_ lineBreak: LineBreak) -> () {
| |- warning: main actor-isolated instance method 'visitLineBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLineBreak' to make this instance method not isolated to the actor
106 | attributedString.append(NSAttributedString(string: "\n", attributes: attributes))
107 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:180:19: note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
178 | - returns: The result of the visit.
179 | */
180 | mutating func visitLineBreak(_ lineBreak: LineBreak) -> Result
| `- note: mark the protocol requirement 'visitLineBreak' 'async' to allow actor-isolated conformances
181 |
182 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:186:19: warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
184 | }
185 |
186 | mutating func visitLink(_ link: Link) -> () {
| |- warning: main actor-isolated instance method 'visitLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitLink' to make this instance method not isolated to the actor
187 | let original = attributes
188 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:188:19: note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
186 | - returns: The result of the visit.
187 | */
188 | mutating func visitLink(_ link: Link) -> Result
| `- note: mark the protocol requirement 'visitLink' 'async' to allow actor-isolated conformances
189 |
190 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:109:10: warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
107 | }
108 |
109 | func visitSoftBreak(_ softBreak: SoftBreak) -> () {
| |- warning: main actor-isolated instance method 'visitSoftBreak' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSoftBreak' to make this instance method not isolated to the actor
110 | return
111 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:196:19: note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
194 | - returns: The result of the visit.
195 | */
196 | mutating func visitSoftBreak(_ softBreak: SoftBreak) -> Result
| `- note: mark the protocol requirement 'visitSoftBreak' 'async' to allow actor-isolated conformances
197 |
198 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:167:19: warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
165 | }
166 |
167 | mutating func visitStrong(_ strong: Strong) -> () {
| |- warning: main actor-isolated instance method 'visitStrong' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitStrong' to make this instance method not isolated to the actor
168 | let original = attributes
169 | defer { attributes = original }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:204:19: note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
202 | - returns: The result of the visit.
203 | */
204 | mutating func visitStrong(_ strong: Strong) -> Result
| `- note: mark the protocol requirement 'visitStrong' 'async' to allow actor-isolated conformances
205 |
206 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:101:10: warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
99 | }
100 |
101 | func visitText(_ text: Text) -> () {
| |- warning: main actor-isolated instance method 'visitText' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitText' to make this instance method not isolated to the actor
102 | attributedString.append(NSAttributedString(string: text.string, attributes: attributes))
103 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:212:19: note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
210 | - returns: The result of the visit.
211 | */
212 | mutating func visitText(_ text: Text) -> Result
| `- note: mark the protocol requirement 'visitText' 'async' to allow actor-isolated conformances
213 |
214 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:141:19: warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
139 | }
140 |
141 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> () {
| |- warning: main actor-isolated instance method 'visitSymbolLink' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'visitSymbolLink' to make this instance method not isolated to the actor
142 | let prefixStr = "io.objc.interpolate."
143 | var remainder = symbolLink.destination ?? ""
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Visitor/MarkupVisitor.swift:268:19: note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
266 | - returns: The result of the visit.
267 | */
268 | mutating func visitSymbolLink(_ symbolLink: SymbolLink) -> Result
| `- note: mark the protocol requirement 'visitSymbolLink' 'async' to allow actor-isolated conformances
269 |
270 | /**
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:404:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
402 |
403 | struct MarkdownStylesheetKey: EnvironmentKey {
404 | static var defaultValue: any Stylesheet = .default
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
405 | }
406 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/MarkdownHelper.swift:191:16: warning: value 'c' was defined but never used; consider replacing with boolean test
189 |
190 | stylesheet.link(attributes: &attributes, destination: link.destination ?? "")
191 | if let c = customLinkVisitor {
| `- warning: value 'c' was defined but never used; consider replacing with boolean test
192 | attributedStringStack.append(NSMutableAttributedString())
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdown/Sources/Markdown/Parser/ParseOptions.swift:23:23: warning: static property 'parseSymbolLinks' is not concurrency-safe because non-'Sendable' type 'ParseOptions' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Options for parsing Markdown.
12 | public struct ParseOptions: OptionSet {
| `- note: consider making struct 'ParseOptions' conform to the 'Sendable' protocol
13 | public var rawValue: UInt
14 |
:
21 |
22 | /// Enable interpretation of symbol links from inline code spans surrounded by two backticks.
23 | public static let parseSymbolLinks = ParseOptions(rawValue: 1 << 1)
| |- warning: static property 'parseSymbolLinks' is not concurrency-safe because non-'Sendable' type 'ParseOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'parseSymbolLinks' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | /// Disable converting straight quotes to curly, --- to em dashes, -- to en dashes during parsing
[114/129] Compiling AttributedStringBuilder InternalLinks.swift
[115/129] Compiling AttributedStringBuilder Join.swift
[116/129] Compiling AttributedStringBuilder Heading.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Image.swift:3:11: warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
1 | import Cocoa
2 |
3 | extension NSImage: AttributedStringConvertible {
| `- warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
4 | public func attributedString(context: inout Context) -> [NSAttributedString] {
5 | let attachment = NSTextAttachment()
AppKit.NSImage:1:12: note: type declared here
1 | open class NSImage : NSObject {
| `- note: type declared here
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
[117/129] Compiling AttributedStringBuilder Image.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Image.swift:3:11: warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
1 | import Cocoa
2 |
3 | extension NSImage: AttributedStringConvertible {
| `- warning: cannot use class 'NSImage' in an extension with public or '@usableFromInline' members; 'AppKit' was not imported by this file
4 | public func attributedString(context: inout Context) -> [NSAttributedString] {
5 | let attachment = NSTextAttachment()
AppKit.NSImage:1:12: note: type declared here
1 | open class NSImage : NSObject {
| `- note: type declared here
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
[118/129] Compiling AttributedStringBuilder CustomKeys.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Footnote.swift:4:16: warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | struct FootnoteCounter: StateKey {
4 | static var initialValue = 1
| |- warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
[119/129] Compiling AttributedStringBuilder Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Footnote.swift:4:16: warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | struct FootnoteCounter: StateKey {
4 | static var initialValue = 1
| |- warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
[120/129] Compiling AttributedStringBuilder Footnote.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Footnote.swift:4:16: warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | struct FootnoteCounter: StateKey {
4 | static var initialValue = 1
| |- warning: static property 'initialValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
5 | }
6 |
[121/129] Compiling AttributedStringBuilder State.swift
[122/129] Compiling AttributedStringBuilder StringHelpers.swift
[123/129] Compiling AttributedStringBuilder AttributedStringToPDF_TextKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Checklist.swift:75:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public final class CheckboxModel: ObservableObject {
| `- note: class 'CheckboxModel' does not conform to the 'Sendable' protocol
75 | public static let shared = CheckboxModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | private init() { }
[124/129] Compiling AttributedStringBuilder Attributes.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Checklist.swift:75:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public final class CheckboxModel: ObservableObject {
| `- note: class 'CheckboxModel' does not conform to the 'Sendable' protocol
75 | public static let shared = CheckboxModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | private init() { }
[125/129] Compiling AttributedStringBuilder Checklist.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Checklist.swift:75:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
72 | }
73 |
74 | public final class CheckboxModel: ObservableObject {
| `- note: class 'CheckboxModel' does not conform to the 'Sendable' protocol
75 | public static let shared = CheckboxModel()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CheckboxModel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 |
77 | private init() { }
[126/129] Compiling AttributedStringBuilder Modify.swift
[127/129] Compiling AttributedStringBuilder PDF.swift
[128/129] Compiling AttributedStringBuilder SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:46:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | struct ModifySwiftUIEnvironment: EnvironmentKey {
46 | static var defaultValue: (inout SwiftUI.EnvironmentValues) -> () = { _ in () }
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:22:26: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
SwiftUI.NSHostingController:7:23: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, unavailable)
6 | @MainActor open class NSHostingController<Content> : NSViewController where Content : View {
7 | @MainActor public init(rootView: Content)
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor public init?(coder: NSCoder, rootView: Content)
9 | @MainActor required dynamic public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:23:42: warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
| `- warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
AppKit.NSView:21:25: note: property declared here
19 | open var baselineOffsetFromBottom: CGFloat { get }
20 | @available(macOS 10.7, *)
21 | @MainActor open var intrinsicContentSize: NSSize { get }
| `- note: property declared here
22 | @available(macOS 10.7, *)
23 | open func invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:23:37: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:26:22: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
26 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | contentRect: contentRect,
28 | styleMask: [.borderless],
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
17 | open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
18 | @MainActor public init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
| `- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
19 | public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
20 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:32:16: warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
30 | defer: false
31 | )
32 | window.contentView = controller.view
| `- warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
33 |
34 | guard
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:32:41: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
30 | defer: false
31 | )
32 | window.contentView = controller.view
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
33 |
34 | guard
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:35:45: warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
33 |
34 | guard
35 | let bitmapRep = controller.view.bitmapImageRepForCachingDisplay(in: contentRect)
| `- warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | else { return nil }
37 |
AppKit.NSView:212:26: note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
210 | @available(swift, obsoleted: 3, renamed: "displayIgnoringOpacity(_:in:)")
211 | open func displayRectIgnoringOpacity(_ rect: NSRect, inContext context: NSGraphicsContext)
212 | @MainActor open func bitmapImageRepForCachingDisplay(in rect: NSRect) -> NSBitmapImageRep?
| `- note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:35:40: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
33 |
34 | guard
35 | let bitmapRep = controller.view.bitmapImageRepForCachingDisplay(in: contentRect)
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
36 | else { return nil }
37 |
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:38:25: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
36 | else { return nil }
37 |
38 | controller.view.cacheDisplay(in: contentRect, to: bitmapRep)
| `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: bitmapRep.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:215:26: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
215 | @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)
| `- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
216 | @available(swift, obsoleted: 3, renamed: "cacheDisplay(in:to:)")
217 | open func cacheDisplayInRect(_ rect: NSRect, toBitmapImageRep bitmapImageRep: NSBitmapImageRep)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:38:20: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
36 | else { return nil }
37 |
38 | controller.view.cacheDisplay(in: contentRect, to: bitmapRep)
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: bitmapRep.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:22: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:20: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:28: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:33: warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| |- warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:39: warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| |- warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:61: warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| |- warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:80:29: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
78 | }
79 |
80 | public var borderColor: NSColor = .black
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
81 | public var borderWidth: WidthValue = 0
82 | public var padding: WidthValue = 0
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:87:27: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
85 | public var width: Table.Width?
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
89 |
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:88:35: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
89 |
90 | @MainActor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:22:26: warning: sending task-isolated value of type 'some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
| `- warning: sending task-isolated value of type 'some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
[129/129] Compiling AttributedStringBuilder Table.swift
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:46:16: warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
44 |
45 | struct ModifySwiftUIEnvironment: EnvironmentKey {
46 | static var defaultValue: (inout SwiftUI.EnvironmentValues) -> () = { _ in () }
| |- warning: static property 'defaultValue' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:22:26: warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
| `- warning: call to main actor-isolated initializer 'init(rootView:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
SwiftUI.NSHostingController:7:23: note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
5 | @available(visionOS, unavailable)
6 | @MainActor open class NSHostingController<Content> : NSViewController where Content : View {
7 | @MainActor public init(rootView: Content)
| `- note: calls to initializer 'init(rootView:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor public init?(coder: NSCoder, rootView: Content)
9 | @MainActor required dynamic public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:23:42: warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
| `- warning: main actor-isolated property 'intrinsicContentSize' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
AppKit.NSView:21:25: note: property declared here
19 | open var baselineOffsetFromBottom: CGFloat { get }
20 | @available(macOS 10.7, *)
21 | @MainActor open var intrinsicContentSize: NSSize { get }
| `- note: property declared here
22 | @available(macOS 10.7, *)
23 | open func invalidateIntrinsicContentSize()
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:23:37: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:26:22: warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
25 |
26 | let window = NSWindow(
| `- warning: call to main actor-isolated initializer 'init(contentRect:styleMask:backing:defer:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | contentRect: contentRect,
28 | styleMask: [.borderless],
AppKit.NSWindow:18:23: note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
16 | @available(swift, obsoleted: 3, renamed: "contentRect(forFrameRect:)")
17 | open func contentRectForFrameRect(_ frameRect: NSRect) -> NSRect
18 | @MainActor public init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool)
| `- note: calls to initializer 'init(contentRect:styleMask:backing:defer:)' from outside of its actor context are implicitly asynchronous
19 | public convenience init(contentRect: NSRect, styleMask style: NSWindow.StyleMask, backing backingStoreType: NSWindow.BackingStoreType, defer flag: Bool, screen: NSScreen?)
20 | @available(*, unavailable)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:32:16: warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
30 | defer: false
31 | )
32 | window.contentView = controller.view
| `- warning: main actor-isolated property 'contentView' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
33 |
34 | guard
AppKit.NSWindow:56:14: note: mutation of this property is only permitted within the actor
54 | @available(swift, obsoleted: 3, renamed: "isExcludedFromWindowsMenu")
55 | open var excludedFromWindowsMenu: Bool { get set }
56 | open var contentView: NSView? { get set }
| `- note: mutation of this property is only permitted within the actor
57 | weak open var delegate: (any NSWindowDelegate)? { get set }
58 | open var windowNumber: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:32:41: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
30 | defer: false
31 | )
32 | window.contentView = controller.view
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
33 |
34 | guard
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:35:45: warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
33 |
34 | guard
35 | let bitmapRep = controller.view.bitmapImageRepForCachingDisplay(in: contentRect)
| `- warning: call to main actor-isolated instance method 'bitmapImageRepForCachingDisplay(in:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 | else { return nil }
37 |
AppKit.NSView:212:26: note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
210 | @available(swift, obsoleted: 3, renamed: "displayIgnoringOpacity(_:in:)")
211 | open func displayRectIgnoringOpacity(_ rect: NSRect, inContext context: NSGraphicsContext)
212 | @MainActor open func bitmapImageRepForCachingDisplay(in rect: NSRect) -> NSBitmapImageRep?
| `- note: calls to instance method 'bitmapImageRepForCachingDisplay(in:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:35:40: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
33 |
34 | guard
35 | let bitmapRep = controller.view.bitmapImageRepForCachingDisplay(in: contentRect)
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
36 | else { return nil }
37 |
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:38:25: warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
36 | else { return nil }
37 |
38 | controller.view.cacheDisplay(in: contentRect, to: bitmapRep)
| `- warning: call to main actor-isolated instance method 'cacheDisplay(in:to:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: bitmapRep.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSView:215:26: note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
213 | @available(swift, obsoleted: 3, renamed: "bitmapImageRepForCachingDisplay(in:)")
214 | open func bitmapImageRepForCachingDisplayInRect(_ rect: NSRect) -> NSBitmapImageRep?
215 | @MainActor open func cacheDisplay(in rect: NSRect, to bitmapImageRep: NSBitmapImageRep)
| `- note: calls to instance method 'cacheDisplay(in:to:)' from outside of its actor context are implicitly asynchronous
216 | @available(swift, obsoleted: 3, renamed: "cacheDisplay(in:to:)")
217 | open func cacheDisplayInRect(_ rect: NSRect, toBitmapImageRep bitmapImageRep: NSBitmapImageRep)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:38:20: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
19 |
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
| `- note: add '@MainActor' to make instance method 'snapshot(proposal:)' part of global actor 'MainActor'
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
23 | let targetSize = controller.view.intrinsicContentSize
:
36 | else { return nil }
37 |
38 | controller.view.cacheDisplay(in: contentRect, to: bitmapRep)
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
39 | let image = NSImage(size: bitmapRep.size)
40 | image.addRepresentation(bitmapRep)
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:22: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:20: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:28: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:62:33: warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
60 | width: Table.Width? = nil,
61 | height: Table.Width? = nil,
62 | borderColor: NSColor = .black,
| |- warning: class property 'black' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
63 | borderWidth: WidthValue = 0,
64 | padding: WidthValue = 0,
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:66:39: warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
64 | padding: WidthValue = 0,
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
| |- warning: enum case 'left' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
68 | contents: AttributedStringConvertible) {
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:67:61: warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
65 | margin: WidthValue = 0,
66 | alignment: NSTextAlignment = .left,
67 | verticalAlignment: NSTextBlock.VerticalAlignment = .topAlignment,
| |- warning: enum case 'topAlignment' cannot be used in a default argument value because 'AppKit' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'AppKit' will be added implicitly
68 | contents: AttributedStringConvertible) {
69 | self.borderColor = borderColor
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:80:29: warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
78 | }
79 |
80 | public var borderColor: NSColor = .black
| `- warning: cannot use class 'NSColor' here; 'AppKit' was not imported by this file
81 | public var borderWidth: WidthValue = 0
82 | public var padding: WidthValue = 0
AppKit.NSColor:1:12: note: type declared here
1 | open class NSColor : NSObject, NSCopying, NSSecureCoding, NSPasteboardReading, NSPasteboardWriting, @unchecked Sendable {
| `- note: type declared here
2 | public init()
3 | public init?(coder: NSCoder)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:87:27: warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
85 | public var width: Table.Width?
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
| `- warning: cannot use enum 'NSTextAlignment' here; 'AppKit' was not imported by this file
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
89 |
AppKit.NSTextAlignment:2:13: note: type declared here
1 | @available(macOS 10.0, *)
2 | public enum NSTextAlignment : Int, @unchecked Sendable {
| `- note: type declared here
3 | public init?(rawValue: Int)
4 | public var rawValue: Int { get }
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/Table.swift:88:35: warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
86 | public var height: Table.Width? = nil
87 | public var alignment: NSTextAlignment = .left
88 | public var verticalAlignment: NSTextBlock.VerticalAlignment
| `- warning: cannot use class 'NSTextBlock' here; 'AppKit' was not imported by this file
89 |
90 | @MainActor
AppKit.NSTextBlock:1:12: note: type declared here
1 | open class NSTextBlock : NSObject, NSSecureCoding, NSCopying {
| `- note: type declared here
2 | public init()
3 | open func setValue(_ val: CGFloat, type: NSTextBlock.ValueType, for dimension: NSTextBlock.Dimension)
/Users/admin/builder/spi-builder-workspace/Sources/AttributedStringBuilder/SwiftUI.swift:22:26: warning: sending task-isolated value of type 'some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | extension View {
21 | func snapshot(proposal: ProposedViewSize) -> NSImage? {
22 | let controller = NSHostingController(rootView: self.frame(width: proposal.width, height: proposal.height))
| `- warning: sending task-isolated value of type 'some View' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
23 | let targetSize = controller.view.intrinsicContentSize
24 | let contentRect = NSRect(origin: .zero, size: targetSize)
Build complete! (47.38s)
Fetching https://github.com/apple/swift-markdown
[1/5937] Fetching swift-markdown
Fetched https://github.com/apple/swift-markdown from cache (1.45s)
Fetching https://github.com/apple/swift-cmark.git
[1/17742] Fetching swift-cmark
Fetched https://github.com/apple/swift-cmark.git from cache (1.74s)
Creating working copy for https://github.com/apple/swift-cmark.git
Working copy of https://github.com/apple/swift-cmark.git resolved at gfm (86aeb49)
Creating working copy for https://github.com/apple/swift-markdown
Working copy of https://github.com/apple/swift-markdown resolved at main (ad0b81f)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-markdown",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-markdown"
}
],
"manifest_display_name" : "attributed-string-builder",
"name" : "attributed-string-builder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "AttributedStringBuilder",
"targets" : [
"AttributedStringBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Tests",
"module_type" : "SwiftTarget",
"name" : "Tests",
"path" : "Sources/Tests",
"sources" : [
"Environment.swift",
"MarkdownTests.swift",
"ReadmeTests.swift",
"Tests.swift"
],
"target_dependencies" : [
"AttributedStringBuilder"
],
"type" : "test"
},
{
"c99name" : "AttributedStringBuilder",
"module_type" : "SwiftTarget",
"name" : "AttributedStringBuilder",
"path" : "Sources/AttributedStringBuilder",
"product_dependencies" : [
"Markdown"
],
"product_memberships" : [
"AttributedStringBuilder"
],
"sources" : [
"AddOutline.swift",
"AttributedStringBuilder.swift",
"AttributedStringConvertible.swift",
"AttributedStringToPDF_TextKit.swift",
"Attributes.swift",
"Checklist.swift",
"CustomKeys.swift",
"Environment.swift",
"Footnote.swift",
"Heading.swift",
"Image.swift",
"InternalLinks.swift",
"Join.swift",
"LayoutManagerHelpers.swift",
"MarkdownHelper.swift",
"MarkdownString.swift",
"MarkdownStylesheet.swift",
"Modify.swift",
"PDF.swift",
"State.swift",
"StringHelpers.swift",
"SwiftUI.swift",
"Table.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.