Skip to content

Commit b5e8cfb

Browse files
authored
swift-plugin-server: update for throwing SwiftSyntax API (#78114)
Depends on swiftlang/swift-syntax#2915 The `main` method on `CompilerPluginMessageListener` can synchronously clean up resources that cannot be dealt with in a deinitializer due to possible errors thrown during the clean up. Usually this includes closure of file handles, sockets, shutting down external processes and IPC resources set up for these processes, etc.
1 parent 8715c34 commit b5e8cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/swift-plugin-server/Sources/swift-plugin-server/swift-plugin-server.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ final class SwiftPluginServer {
2121
connection: connection,
2222
provider: LibraryPluginProvider.shared
2323
)
24-
listener.main()
24+
try listener.main()
2525
}
2626
}

0 commit comments

Comments
 (0)