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

Issue with the plugin, IDE error

Open DiamondWolf3404 opened this issue 1 year ago • 14 comments

Hey ! Sooo, I wanted to try the plugin, it didn't worked, my IDE gave me a popup and that's pretty much all. -Windows 10 -PyCharm Professional (2023.1.2) | Installed with JetBrains Toolbox -Discord Integration (1.11.0) -Discord stable (up to date)

### Screenshot:

image

### Full error code Unhandled exception in [StandaloneCoroutine{Cancelling}@6c61c8c0, Dispatchers.Default]

java.io.IOException: Stream Closed at java.base/java.io.RandomAccessFile.read0(Native Method) at java.base/java.io.RandomAccessFile.read(RandomAccessFile.java:365) at java.base/java.io.RandomAccessFile.readInt(RandomAccessFile.java:837) at dev.cbyrne.kdiscordipc.core.socket.impl.WindowsSocket.read(WindowsSocket.kt:38) at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler$events$1.invokeSuspend(SocketHandler.kt:35) at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler$events$1.invoke(SocketHandler.kt) at dev.cbyrne.kdiscordipc.core.socket.handler.SocketHandler$events$1.invoke(SocketHandler.kt) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:61) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:230) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:195) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo$suspendImpl(ChannelFlow.kt:157) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo(ChannelFlow.kt) at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:60) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) 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}@6c61c8c0, Dispatchers.Default]

DiamondWolf3404 avatar Jun 07 '23 13:06 DiamondWolf3404

I got an IDE error too but the plugin still works lol

supahfox avatar Jun 08 '23 23:06 supahfox

Doesn't for me

DiamondWolf3404 avatar Jun 09 '23 13:06 DiamondWolf3404

In my WebStorm EAP at the beginning everything worked fine, but then classic... IDE error.

000rosiu avatar Jun 14 '23 19:06 000rosiu

It also has the same error for intellij idea ultimate 2023.1.2

anilozgok avatar Jun 19 '23 07:06 anilozgok

Hi, try to update plugin. Open File -> settings -> Pugins -> Discrod Integration.

noBloodOnTheLeaves avatar Jun 21 '23 19:06 noBloodOnTheLeaves

Discord Integration (1.11.0)

It's up to date. (for me too, have the same problem)

voruti avatar Jun 21 '23 20:06 voruti

I already had the latest version when I was getting the error. I uninstalled the plugin for now. I might download the plugin again if the issue is solved.

anilozgok avatar Jun 21 '23 21:06 anilozgok

I already had the latest version when I was getting the error. I uninstalled the plugin for now. I might download the plugin again if the issue is solved.

oh, that's why update to new version helped me, because plugin had reinstalled.

noBloodOnTheLeaves avatar Jun 21 '23 21:06 noBloodOnTheLeaves

I already had the latest version when I was getting the error. I uninstalled the plugin for now. I might download the plugin again if the issue is solved.

oh, that's why update to new version helped me, because plugin had reinstalled.

Probably, if I reinstall the plugin maybe that problem will be fixed for me too. But still, it is an issue to fix definitely. I will try now and let you know.

anilozgok avatar Jun 21 '23 23:06 anilozgok

For me the issue occurs when discord is not open, or when it is closed while the plugin runs. Reinstalling the plugin doesn't fix the issue for me.

derdilla avatar Jun 22 '23 07:06 derdilla

Yes, exactly! I didn't realize that before but I tried right now and it occurs when discord isn't open like you said. And yes reinstalling doesn't fix anything I already reinstalled it 2 or 3 times. Well, I'm going to uninstall it again. My IDE is always open but I don't use Discord very often while I'm working. Thx for the heads up btw. Have a nice one!

anilozgok avatar Jun 22 '23 07:06 anilozgok

That's interesting. I have Discord open in the background all the time and still get the error.

voruti avatar Jun 22 '23 07:06 voruti

Interesting. I have no clue what is going on in the background.

anilozgok avatar Jun 22 '23 07:06 anilozgok

It seems that in the PY-231.9161.41 (PyCharm Professional) build, the error isn't showing anymore.

supahfox avatar Jun 23 '23 21:06 supahfox