-
Notifications
You must be signed in to change notification settings - Fork 154
Description
I've tested Rocket.Chat connector. During connection process gets an exception:
Exception in thread "DefaultDispatcher-worker-1 @coroutine#8" java.lang.NoSuchMethodError: 'boolean kotlinx.coroutines.channels.Channel.isFull()' at chat.rocket.core.internal.realtime.socket.Socket$onMessage$$inlined$let$lambda$2.invokeSuspend(Socket.kt:349) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [CoroutineId(8), "coroutine#8":StandaloneCoroutine{Cancelling}@72c89528, Dispatchers.Default]
The problem is that rocket.chat connector uses rocket.chat.sdk which requires the old coroutine lib(v.1.1.1).
https://github.com/RocketChat/Rocket.Chat.Kotlin.SDK/blob/app-3.5.1/dependencies.gradle
Tock uses newer coroutine lib version (v.1.6.4)
Line 35 in a56f860
| <couroutine>1.6.4</couroutine> |
Rocket.Chat.sdk contains the fix but only on develop branch.There is no release to publish to mvn repository.
https://github.com/RocketChat/Rocket.Chat.Kotlin.SDK/blob/develop/dependencies.gradle#L5