JetBrains-Discord-Integration icon indicating copy to clipboard operation
JetBrains-Discord-Integration copied to clipboard

Error on startup when Discord isn't launched

Open 10YAR opened this issue 1 year ago • 2 comments

Here's an error that display everytime at startup (on phpStorm) when Discord isn't launched : I'm on macOS Sonoma (M2) and i'm using the NewUI of phpStorm

Unhandled exception in [StandaloneCoroutine{Cancelling}@75ec539c, Dispatchers.Default]

java.net.SocketException: Connection refused; errno=61
	at org.newsclub.net.unix.NativeUnixSocket.connect(Native Method)
	at org.newsclub.net.unix.AFSocketImpl.connect0(AFSocketImpl.java:372)
	at org.newsclub.net.unix.AFSocket.connect0(AFSocket.java:265)
	at org.newsclub.net.unix.AFSocket.connect(AFSocket.java:234)
	at org.newsclub.net.unix.AFSocket.connect(AFSocket.java:229)
	at dev.cbyrne.kdiscordipc.core.socket.impl.UnixSocket.connect(UnixSocket.kt:19)
	at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler.connect(SocketHandler.kt:59)
	at dev.cbyrne.kdiscordipc.KDiscordIPC.connect(KDiscordIPC.kt:83)
	at dev.cbyrne.kdiscordipc.KDiscordIPC.connect$default(KDiscordIPC.kt:76)
	at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.connection.DiscordIpcConnection$connect$2.invokeSuspend(DiscordIpcConnection.kt:59)
	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: [StandaloneCoroutine{Cancelled}@75ec539c, Dispatchers.Default]

Maybe you should like do nothing (not even throwing errors) when Discord isn't detected

Thanks !

10YAR avatar Jul 25 '23 11:07 10YAR