File tree Expand file tree Collapse file tree 8 files changed +6
-46
lines changed
BuildSystemIntegrationTests
LanguageServerProtocolJSONRPCTests Expand file tree Collapse file tree 8 files changed +6
-46
lines changed Original file line number Diff line number Diff line change 11
11
//===----------------------------------------------------------------------===//
12
12
13
13
import BuildServerProtocol
14
+ import Foundation
14
15
import LanguageServerProtocol
15
16
import LanguageServerProtocolJSONRPC
16
17
import SKLogging
@@ -26,13 +27,6 @@ import var TSCBasic.localFileSystem
26
27
import func TSCBasic. lookupExecutablePath
27
28
import func TSCBasic. resolveSymlinks
28
29
29
- #if canImport(Darwin)
30
- import Foundation
31
- #else
32
- // FIMXE: (async-workaround) @preconcurrency needed because Pipe is not marked as Sendable on Linux rdar://132378792
33
- @preconcurrency import Foundation
34
- #endif
35
-
36
30
enum BuildServerTestError : Error {
37
31
case executableNotFound( String )
38
32
}
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import SwiftExtensions
15
15
#if canImport(Darwin)
16
16
import Foundation
17
17
#else
18
- // FIMXE: (async-workaround) @preconcurrency needed because DateFormatter and stderr are not marked as Sendable on Linux
19
- // rdar://125578486, rdar://132378589
18
+ // TODO: @preconcurrency needed because stderr is not sendable on Linux https://github.com/swiftlang/swift/issues/75601
20
19
@preconcurrency import Foundation
21
20
#endif
22
21
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import RegexBuilder
15
15
#if canImport(Darwin)
16
16
import Foundation
17
17
#else
18
- // FIMXE: (async-workaround) @preconcurrency needed because DateFormatter and stderr are not marked as Sendable on Linux
19
- // rdar://125578486, rdar://132378589
18
+ // TODO: @preconcurrency needed because stderr is not sendable on Linux https://github.com/swiftlang/swift/issues/75601
20
19
@preconcurrency import Foundation
21
20
#endif
22
21
Original file line number Diff line number Diff line change @@ -17,12 +17,7 @@ import SKSupport
17
17
import SwiftExtensions
18
18
import XCTest
19
19
20
- #if canImport(Darwin)
21
20
import class Foundation. Pipe
22
- #else
23
- // FIMXE: (async-workaround) @preconcurrency needed because Pipe is not marked as Sendable on Linux rdar://132378792
24
- @preconcurrency import class Foundation. Pipe
25
- #endif
26
21
27
22
package final class TestJSONRPCConnection : Sendable {
28
23
package let clientToServer : Pipe = Pipe ( )
Original file line number Diff line number Diff line change 11
11
//===----------------------------------------------------------------------===//
12
12
13
13
import BuildSystemIntegration
14
+ import Foundation
14
15
import LanguageServerProtocol
15
16
import LanguageServerProtocolJSONRPC
16
17
import SKLogging
@@ -22,21 +23,10 @@ import ToolchainRegistry
22
23
23
24
import struct TSCBasic. AbsolutePath
24
25
25
- #if canImport(Darwin)
26
- import Foundation
27
- #else
28
- // FIMXE: (async-workaround) @preconcurrency needed because Pipe is not marked as Sendable on Linux
29
- @preconcurrency import Foundation
30
- #endif
31
-
32
26
#if os(Windows)
33
27
import WinSDK
34
28
#endif
35
29
36
- #if !canImport(Darwin)
37
- extension Process : @unchecked Sendable { }
38
- #endif
39
-
40
30
/// A thin wrapper over a connection to a clangd server providing build setting handling.
41
31
///
42
32
/// In addition, it also intercepts notifications and replies from clangd in order to do things
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import BuildSystemIntegration
15
15
import Csourcekitd // Not needed here, but fixes debugging...
16
16
import Diagnose
17
17
import Dispatch
18
+ import Foundation
18
19
import LanguageServerProtocol
19
20
import LanguageServerProtocolJSONRPC
20
21
import SKLogging
@@ -28,13 +29,6 @@ import struct TSCBasic.AbsolutePath
28
29
import struct TSCBasic. RelativePath
29
30
import var TSCBasic. localFileSystem
30
31
31
- #if canImport(Darwin)
32
- import Foundation
33
- #else
34
- // FIMXE: (async-workaround) @preconcurrency needed because FileHandle is not marked as Sendable on Linux rdar://132378985
35
- @preconcurrency import Foundation
36
- #endif
37
-
38
32
extension AbsolutePath {
39
33
public init ? ( argument: String ) {
40
34
let path : AbsolutePath ?
Original file line number Diff line number Diff line change 12
12
13
13
import BuildServerProtocol
14
14
import BuildSystemIntegration
15
+ import Foundation
15
16
import ISDBTestSupport
16
17
import LanguageServerProtocol
17
18
import SKTestSupport
18
19
import TSCBasic
19
20
import XCTest
20
21
21
- #if canImport(Darwin)
22
- import Foundation
23
- #else
24
- // FIMXE: (async-workaround) @preconcurrency needed because Pipe is not marked as Sendable on Linux rdar://132378792
25
- @preconcurrency import Foundation
26
- #endif
27
-
28
22
/// The path to the INPUTS directory of shared test projects.
29
23
private let skTestSupportInputsDirectory : URL = {
30
24
#if os(macOS)
Original file line number Diff line number Diff line change @@ -15,12 +15,7 @@ import LanguageServerProtocol
15
15
import SKTestSupport
16
16
import XCTest
17
17
18
- #if canImport(Darwin)
19
18
import class Foundation. Pipe
20
- #else
21
- // FIMXE: (async-workaround) @preconcurrency needed because Pipe is not marked as Sendable on Linux rdar://132378792
22
- @preconcurrency import class Foundation. Pipe
23
- #endif
24
19
25
20
#if os(Windows)
26
21
import WinSDK
You can’t perform that action at this time.
0 commit comments