Build Information
Successful build of WikipediaKit, reference main (a601bf
), with Swift 6.0 for Linux on 2 Nov 2024 11:18:29 UTC.
Swift 6 data race errors: 13
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/WikipediaImage.swift:32:14: note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaImage {
| `- note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
33 |
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }()
102 |
103 | public static var systemLanguage: WikipediaLanguage = {
| |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'systemLanguage' 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
104 | return WikipediaLanguage(systemLanguageCode)
105 | }()
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | }
83 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | }
92 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | }
100 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | }
125 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | }
132 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaArticlePreview.swift:49:14: note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
47 | }
48 |
49 | public class WikipediaArticlePreview: Hashable, Equatable {
| `- note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
50 |
51 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:52:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
50 | else {
51 | DispatchQueue.main.async {
52 | completion(.failure(.other(nil)))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | }
54 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:41: warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'featured' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:82:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
80 | } else {
81 | DispatchQueue.main.async {
82 | completion(.failure(.noResults))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
83 | }
84 | }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:71:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | guard let jsonDictionary = jsonDictionary else {
70 | DispatchQueue.main.async {
71 | completion(.failure(.decodingError))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | // (also occurs when the request was cancelled programmatically)
63 | DispatchQueue.main.async {
64 | completion(.failure(error!))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public class WikipediaNetworking {
36 |
37 | public static var appAuthorEmailForAPI = ""
| |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'appAuthorEmailForAPI' 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
38 |
39 | public static let shared: WikipediaNetworking = {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:100:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
98 | else {
99 | DispatchQueue.main.async {
100 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:46:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
44 | firstURL.path != "" else {
45 | DispatchQueue.main.async {
46 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 | }
48 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:32: warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'imageMetadata' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'images' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:119:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
117 | else {
118 | DispatchQueue.main.async {
119 | completion (nil, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:109:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
107 | guard error == nil else {
108 | DispatchQueue.main.async {
109 | completion (nil, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
110 | }
111 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
[30/31] Compiling WikipediaKit Wikipedia+Languages.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:52:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | else {
51 | DispatchQueue.main.async {
52 | completion(.failure(.other(nil)))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 | }
54 | return nil
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
33 | #endif
34 |
35 | public class WikipediaNetworking {
| `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
36 |
37 | public static var appAuthorEmailForAPI = ""
38 |
39 | public static let shared: WikipediaNetworking = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' 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
40 | return WikipediaNetworking()
41 | }()
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:64:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | // (also occurs when the request was cancelled programmatically)
63 | DispatchQueue.main.async {
64 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:71:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | guard let jsonDictionary = jsonDictionary else {
70 | DispatchQueue.main.async {
71 | completion(.failure(.decodingError))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | }
73 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:41: warning: capture of 'featured' with non-sendable type 'WikipediaFeatured' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| `- warning: capture of 'featured' with non-sendable type 'WikipediaFeatured' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/WikipediaFeatured.swift:32:15: note: consider making struct 'WikipediaFeatured' conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public struct WikipediaFeatured {
| `- note: consider making struct 'WikipediaFeatured' conform to the 'Sendable' protocol
33 | public let date: Date
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:82:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | } else {
81 | DispatchQueue.main.async {
82 | completion(.failure(.noResults))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | }
84 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:46:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | firstURL.path != "" else {
45 | DispatchQueue.main.async {
46 | completion(nil, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | }
48 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:32: warning: capture of 'imageMetadata' with non-sendable type '[WikipediaImage]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| `- warning: capture of 'imageMetadata' with non-sendable type '[WikipediaImage]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/host/spi-builder-workspace/Sources/WikipediaImage.swift:32:14: note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaImage {
| `- note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
33 |
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:100:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | else {
99 | DispatchQueue.main.async {
100 | completion(nil, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:109:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | guard error == nil else {
108 | DispatchQueue.main.async {
109 | completion (nil, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | }
111 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:119:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | else {
118 | DispatchQueue.main.async {
119 | completion (nil, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/WikipediaImage.swift:32:14: note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaImage {
| `- note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
33 |
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }()
102 |
103 | public static var systemLanguage: WikipediaLanguage = {
| |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'systemLanguage' 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
104 | return WikipediaLanguage(systemLanguageCode)
105 | }()
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | }
83 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | }
92 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | }
100 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | }
125 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | }
132 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaArticlePreview.swift:49:14: note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
47 | }
48 |
49 | public class WikipediaArticlePreview: Hashable, Equatable {
| `- note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
50 |
51 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:52:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
50 | else {
51 | DispatchQueue.main.async {
52 | completion(.failure(.other(nil)))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | }
54 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:41: warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'featured' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:82:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
80 | } else {
81 | DispatchQueue.main.async {
82 | completion(.failure(.noResults))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
83 | }
84 | }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:71:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | guard let jsonDictionary = jsonDictionary else {
70 | DispatchQueue.main.async {
71 | completion(.failure(.decodingError))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | // (also occurs when the request was cancelled programmatically)
63 | DispatchQueue.main.async {
64 | completion(.failure(error!))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public class WikipediaNetworking {
36 |
37 | public static var appAuthorEmailForAPI = ""
| |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'appAuthorEmailForAPI' 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
38 |
39 | public static let shared: WikipediaNetworking = {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:100:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
98 | else {
99 | DispatchQueue.main.async {
100 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:46:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
44 | firstURL.path != "" else {
45 | DispatchQueue.main.async {
46 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 | }
48 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:32: warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'imageMetadata' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'images' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:119:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
117 | else {
118 | DispatchQueue.main.async {
119 | completion (nil, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:109:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
107 | guard error == nil else {
108 | DispatchQueue.main.async {
109 | completion (nil, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
110 | }
111 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
[31/31] Compiling WikipediaKit Wikipedia+NearbySearch.swift
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:52:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | else {
51 | DispatchQueue.main.async {
52 | completion(.failure(.other(nil)))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
53 | }
54 | return nil
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' may have shared mutable state; this is an error in the Swift 6 language mode
33 | #endif
34 |
35 | public class WikipediaNetworking {
| `- note: class 'WikipediaNetworking' does not conform to the 'Sendable' protocol
36 |
37 | public static var appAuthorEmailForAPI = ""
38 |
39 | public static let shared: WikipediaNetworking = {
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'WikipediaNetworking' 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
40 | return WikipediaNetworking()
41 | }()
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:64:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | // (also occurs when the request was cancelled programmatically)
63 | DispatchQueue.main.async {
64 | completion(.failure(error!))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:71:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | guard let jsonDictionary = jsonDictionary else {
70 | DispatchQueue.main.async {
71 | completion(.failure(.decodingError))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | }
73 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:41: warning: capture of 'featured' with non-sendable type 'WikipediaFeatured' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| `- warning: capture of 'featured' with non-sendable type 'WikipediaFeatured' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/WikipediaFeatured.swift:32:15: note: consider making struct 'WikipediaFeatured' conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public struct WikipediaFeatured {
| `- note: consider making struct 'WikipediaFeatured' conform to the 'Sendable' protocol
33 | public let date: Date
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:82:21: warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | } else {
81 | DispatchQueue.main.async {
82 | completion(.failure(.noResults))
| |- warning: capture of 'completion' with non-sendable type '(Result<WikipediaFeatured, WikipediaError>) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
83 | }
84 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:46:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | firstURL.path != "" else {
45 | DispatchQueue.main.async {
46 | completion(nil, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | }
48 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:32: warning: capture of 'imageMetadata' with non-sendable type '[WikipediaImage]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| `- warning: capture of 'imageMetadata' with non-sendable type '[WikipediaImage]?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 | }
/host/spi-builder-workspace/Sources/WikipediaImage.swift:32:14: note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaImage {
| `- note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
33 |
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:100:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | else {
99 | DispatchQueue.main.async {
100 | completion(nil, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
101 | }
102 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:109:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | guard error == nil else {
108 | DispatchQueue.main.async {
109 | completion (nil, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
110 | }
111 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:119:21: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | else {
118 | DispatchQueue.main.async {
119 | completion (nil, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaImage]?, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: capture of 'images' with non-sendable type '[WikipediaImage]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/WikipediaImage.swift:32:14: note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaImage {
| `- note: class 'WikipediaImage' does not conform to the 'Sendable' protocol
33 |
34 | public let language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| `- warning: reference to captured var 'images' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:103:23: warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
101 | }()
102 |
103 | public static var systemLanguage: WikipediaLanguage = {
| |- warning: static property 'systemLanguage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'systemLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'systemLanguage' 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
104 | return WikipediaLanguage(systemLanguageCode)
105 | }()
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | }
83 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
91 | }
92 | return
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: capture of 'completion' with non-sendable type '(WikipediaArticle, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| `- warning: capture of 'article' with non-sendable type 'WikipediaArticle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/host/spi-builder-workspace/Sources/WikipediaArticle.swift:32:14: note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
30 | import Foundation
31 |
32 | public class WikipediaArticle {
| `- note: class 'WikipediaArticle' does not conform to the 'Sendable' protocol
33 |
34 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
99 | }
100 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 | }
117 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | }
125 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 | }
132 | return
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: capture of 'completion' with non-sendable type '([WikipediaArticlePreview]?, WikipediaLanguage, WikipediaError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'results' with non-sendable type '[WikipediaArticlePreview]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaArticlePreview.swift:49:14: note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
47 | }
48 |
49 | public class WikipediaArticlePreview: Hashable, Equatable {
| `- note: class 'WikipediaArticlePreview' does not conform to the 'Sendable' protocol
50 |
51 | public var language: WikipediaLanguage
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: capture of 'language' with non-sendable type 'WikipediaLanguage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/WikipediaLanguage.swift:40:15: note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
38 |
39 |
40 | public struct WikipediaLanguage: Hashable, Equatable {
| `- note: consider making struct 'WikipediaLanguage' conform to the 'Sendable' protocol
41 |
42 | public let code: String
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:52:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
50 | else {
51 | DispatchQueue.main.async {
52 | completion(.failure(.other(nil)))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
53 | }
54 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:78:41: warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
76 | if let featured = WikipediaFeatured(jsonDictionary: jsonDictionary, language: language) {
77 | DispatchQueue.main.async {
78 | completion(.success(featured))
| |- warning: sending 'featured' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'featured' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
79 | }
80 | } else {
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:82:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
80 | } else {
81 | DispatchQueue.main.async {
82 | completion(.failure(.noResults))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
83 | }
84 | }
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:71:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | guard let jsonDictionary = jsonDictionary else {
70 | DispatchQueue.main.async {
71 | completion(.failure(.decodingError))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | return
/host/spi-builder-workspace/Sources/Wikipedia+Featured.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | // (also occurs when the request was cancelled programmatically)
63 | DispatchQueue.main.async {
64 | completion(.failure(error!))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return
/host/spi-builder-workspace/Sources/WikipediaNetworking.swift:37:23: warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | public class WikipediaNetworking {
36 |
37 | public static var appAuthorEmailForAPI = ""
| |- warning: static property 'appAuthorEmailForAPI' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'appAuthorEmailForAPI' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'appAuthorEmailForAPI' 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
38 |
39 | public static let shared: WikipediaNetworking = {
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:100:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
98 | else {
99 | DispatchQueue.main.async {
100 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:46:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
44 | firstURL.path != "" else {
45 | DispatchQueue.main.async {
46 | completion(nil, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
47 | }
48 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:61:32: warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
59 | return self.requestSizedImageMetadata(language: language, ids: imageIDs, width: width) { imageMetadata, error in
60 | DispatchQueue.main.async {
61 | completion(imageMetadata, error)
| |- warning: sending 'imageMetadata' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'imageMetadata' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
62 | }
63 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:131:28: warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
129 | }
130 | DispatchQueue.main.async {
131 | completion(images, error)
| |- warning: sending 'images' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'images' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
132 | }
133 | }
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:119:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
117 | else {
118 | DispatchQueue.main.async {
119 | completion (nil, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
120 | }
121 | return
/host/spi-builder-workspace/Sources/Wikipedia+ImageMeta.swift:109:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
107 | guard error == nil else {
108 | DispatchQueue.main.async {
109 | completion (nil, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
110 | }
111 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:64:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
62 | else {
63 | DispatchQueue.main.async {
64 | completion(article, .other(nil))
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
65 | }
66 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:45:32: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
43 | else {
44 | DispatchQueue.main.async {
45 | completion(article, nil)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
46 | }
47 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:97:28: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
95 | article.languageLinks = languages
96 | DispatchQueue.main.async {
97 | completion(article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
98 | }
99 | }
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:90:37: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
88 | else {
89 | DispatchQueue.main.async {
90 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
91 | }
92 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:81:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
79 | guard let jsonDictionary = jsonDictionary else {
80 | DispatchQueue.main.async {
81 | completion (article, .decodingError)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
82 | }
83 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+Languages.swift:74:33: warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
72 | // (also occurs when the request was cancelled programmatically)
73 | DispatchQueue.main.async {
74 | completion (article, error)
| |- warning: sending 'article' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'article' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
75 | }
76 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:88:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
86 | else {
87 | DispatchQueue.main.async {
88 | completion(nil, language, .other(nil))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | return nil
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:123:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
121 | let info = error["info"] as? String {
122 | DispatchQueue.main.async {
123 | completion (nil, language, .apiError(info))
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
124 | }
125 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:21: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:32: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:156:41: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
154 |
155 | DispatchQueue.main.async {
156 | completion(results, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
157 | }
158 |
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:130:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
128 | guard let pages = query["pages"] as? [JSONDictionary] else {
129 | DispatchQueue.main.async {
130 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
131 | }
132 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:115:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
113 | // there is no “query” key,
114 | // but unfortunately no error message either
115 | completion (nil, language, .notFound)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
116 | }
117 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:105:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
103 | guard let jsonDictionary = jsonDictionary else {
104 | DispatchQueue.main.async {
105 | completion (nil, language, .decodingError)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
106 | }
107 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:25: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
/host/spi-builder-workspace/Sources/Wikipedia+NearbySearch.swift:98:42: warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
96 | // (also occurs when the request was cancelled programmatically)
97 | DispatchQueue.main.async {
98 | completion (nil, language, error)
| |- warning: sending 'language' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'language' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
99 | }
100 | return
Build complete! (12.72s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "WikipediaKit",
"name" : "WikipediaKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "tvos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "WikipediaKit",
"targets" : [
"WikipediaKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WikipediaKitTests",
"module_type" : "SwiftTarget",
"name" : "WikipediaKitTests",
"path" : "Tests/WikipediaKitTests",
"sources" : [
"WikipediaKitTests.swift"
],
"target_dependencies" : [
"WikipediaKit"
],
"type" : "test"
},
{
"c99name" : "WikipediaKit",
"module_type" : "SwiftTarget",
"name" : "WikipediaKit",
"path" : "Sources",
"product_memberships" : [
"WikipediaKit"
],
"sources" : [
"String+Wikipedia.swift",
"URL+Wikipedia.swift",
"Wikipedia+Article.swift",
"Wikipedia+ArticleSummary.swift",
"Wikipedia+Featured.swift",
"Wikipedia+ImageMeta.swift",
"Wikipedia+Languages.swift",
"Wikipedia+NearbySearch.swift",
"Wikipedia+RandomArticles.swift",
"Wikipedia+Search.swift",
"Wikipedia.swift",
"WikipediaArticle.swift",
"WikipediaArticleCache.swift",
"WikipediaArticleLanguageLink.swift",
"WikipediaArticlePreview.swift",
"WikipediaError.swift",
"WikipediaFeatured.swift",
"WikipediaImage.swift",
"WikipediaLanguage.swift",
"WikipediaNamespace.swift",
"WikipediaNetworking.swift",
"WikipediaNetworkingActivityDelegate.swift",
"WikipediaRandomArticlesBuffer.swift",
"WikipediaSearchMethod.swift",
"WikipediaSearchResults.swift",
"WikipediaSearchResultsCache.swift",
"WikipediaTOCItem.swift",
"WikipediaTextFormattingDelegate.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.