You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, do you know why I would get the following compile errors after installing the LanguageClient package into a new XCode CLI project?
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:275:84: error: 'RequestHandler' is not a member type of actor 'JSONRPC.JSONRPCSession'
private nonisolated func makeErrorOnlyHandler(_ handler: @escaping JSONRPCSession.RequestHandler) -> ServerRequest.ErrorOnlyHandler {
~~~~~~~~~~~~~~ ^
.../SourcePackages/checkouts/JSONRPC/Sources/JSONRPC/JSONRPCSession.swift:46:14: note: 'JSONRPCSession' declared here
public actor JSONRPCSession {
^
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:285:78: error: 'RequestHandler' is not a member type of actor 'JSONRPC.JSONRPCSession'
private nonisolated func makeHandler<T>(_ handler: @escaping JSONRPCSession.RequestHandler) -> ServerRequest.Handler<T> {
~~~~~~~~~~~~~~ ^
.../SourcePackages/checkouts/JSONRPC/Sources/JSONRPC/JSONRPCSession.swift:46:14: note: 'JSONRPCSession' declared here
public actor JSONRPCSession {
^
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:293:108: error: 'RequestHandler' is not a member type of actor 'JSONRPC.JSONRPCSession'
private func handleRequest(_ anyRequest: AnyJSONRPCRequest, data: Data, handler: @escaping JSONRPCSession.RequestHandler) {
~~~~~~~~~~~~~~ ^
.../SourcePackages/checkouts/JSONRPC/Sources/JSONRPC/JSONRPCSession.swift:46:14: note: 'JSONRPCSession' declared here
public actor JSONRPCSession {
^
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:54:36: error: value of type 'JSONRPCSession' has no member 'notificationSequence'
let noteSequence = await session.notificationSequence
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:66:35: error: value of type 'JSONRPCSession' has no member 'requestSequence'
let reqSequence = await session.requestSequence
~~~~~~~ ^~~~~~~~~~~~~~~
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:54:22: warning: no 'async' operations occur within 'await' expression
let noteSequence = await session.notificationSequence
^
.../SourcePackages/checkouts/LanguageServerProtocol/Sources/LanguageServerProtocol/Additions/JSONRPCServer.swift:278:20: error: cannot infer contextual base in reference to member 'failure'
await handler(.failure(error))
~^~~~~~~
The text was updated successfully, but these errors were encountered:
Hello, do you know why I would get the following compile errors after installing the LanguageClient package into a new XCode CLI project?
The text was updated successfully, but these errors were encountered: