uriyyo / pycharm-evaluate-async-code

Finally, you can use await in evaluate expression 💪
https://plugins.jetbrains.com/plugin/14476-evaluate-async-code
44 stars 2 forks source link

Fails the invocation of the latest IDEA EAP 6 #72

Closed kool79 closed 2 months ago

kool79 commented 9 months ago
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.diagnostic.PluginException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory [Plugin: com.uriyyo.evaluate_async_code]
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:567)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:328)
    at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:58)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents$default(ComponentManagerImpl.kt:310)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invokeSuspend(ApplicationLoader.kt:95)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
    at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span$default(tracer.kt:49)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1.invokeSuspend(ApplicationLoader.kt:94)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270)
    at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Caused by: com.intellij.platform.instanceContainer.InstanceNotRegisteredException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory
    at com.intellij.platform.instanceContainer.internal.InstanceRegistrarImpl.overrideInitializer(InstanceRegistrarImpl.kt:47)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices2Inner(ComponentManagerImpl.kt:604)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:560)
    ... 21 more

-----
Your JRE: 17.0.10+8-b1207.1 amd64 (JetBrains s.r.o.)
C:\Users\o.kulychok\AppData\Local\Programs\IntelliJ IDEA Ultimate\jbr
uriyyo commented 9 months ago

Thanks, I will take a look

uriyyo commented 9 months ago

Hi @kool79

I was not able to reproduce this issue using latest version of IDEA EAP.

image image

uriyyo commented 9 months ago

Hi @kool79,

Could you please try to use new version 1.24?

uriyyo commented 8 months ago

@kool79 Any updates?

kool79 commented 8 months ago

Same error with 2024.1 beta

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.diagnostic.PluginException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory [Plugin: com.uriyyo.evaluate_async_code] at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:572) at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:333) at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:58) at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents$default(ComponentManagerImpl.kt:315) at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invokeSuspend(ApplicationLoader.kt:101) at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt) at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56) at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span$default(tracer.kt:49) at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1.invokeSuspend(ApplicationLoader.kt:100) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.UndispatchedCoroutine.afterResume(CoroutineContext.kt:270) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684) Caused by: com.intellij.platform.instanceContainer.InstanceNotRegisteredException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory at com.intellij.platform.instanceContainer.internal.InstanceRegistrarImpl.overrideInitializer(InstanceRegistrarImpl.kt:47) at com.intellij.serviceContainer.ComponentManagerImpl.registerServices2Inner(ComponentManagerImpl.kt:609) at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:565) ... 21 more

uriyyo commented 4 months ago

Hi @kool79,

New version of both PyCharm and this plugin has been released. Could you please check if this issue still exists on your side?

ciarancourtney commented 4 months ago

Still not working for me, even worse its causing a crash at startup, need to delete the plugin dir manually to resolve.

Internal error

com.intellij.diagnostic.PluginException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory [Plugin: com.uriyyo.evaluate_async_code]
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:564)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents(ComponentManagerImpl.kt:325)
    at com.intellij.openapi.client.ClientAwareComponentManager.registerComponents(ClientAwareComponentManager.kt:58)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerComponents$default(ComponentManagerImpl.kt:307)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invokeSuspend(ApplicationLoader.kt:105)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1$1.invoke(ApplicationLoader.kt)
    at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
    at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
    at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
    at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span(tracer.kt:56)
    at com.intellij.platform.diagnostic.telemetry.impl.TracerKt.span$default(tracer.kt:49)
    at com.intellij.platform.ide.bootstrap.ApplicationLoader$loadApp$2$initServiceContainerJob$1.invokeSuspend(ApplicationLoader.kt:104)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Caused by: com.intellij.platform.instanceContainer.InstanceNotRegisteredException: com.jetbrains.python.console.PythonConsoleRunnerFactory -> com.uriyyo.evaluate_async_code.AsyncPyDebugConsoleRunnerFactory
    at com.intellij.platform.instanceContainer.internal.InstanceRegistrarImpl.overrideInitializer(InstanceRegistrarImpl.kt:56)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices2Inner(ComponentManagerImpl.kt:601)
    at com.intellij.serviceContainer.ComponentManagerImpl.registerServices(ComponentManagerImpl.kt:557)
    ... 18 more

-----
JRE: 21.0.3+13-b509.4 aarch64 (JetBrains s.r.o.)
/Applications/PyCharm 2024.2 EAP.app/Contents/jbr/Contents/Home
cetguyrenard commented 3 months ago

I just upgraded from 2024.1 to 2024.2 which made the error appear on IntelliJ IDEA Ultimate

same stacktrace, disabling the plugin worked via adding to /Library/Application Support/JetBrains/IntelliJIdea2024/disabled_plugins.txt the id "com.uriyyo.evaluate_async_code"

Plugin Evaluate Async Code is version 1.25

Uninstall, restart, re-install makes it fail again.

UltimateLobster commented 3 months ago

Happens to me as well in the newly released Pycharm 2024.2. Crash on startup while using the latest version of the plugin (1.25).

lewkoo commented 3 months ago

Crashing the Pycharm IDE @ 2024.2 with the only solution to remove the plugin folder.

AndreMPCosta commented 3 months ago

X2 after upgrading to the latest version, 2024.2

UltimateLobster commented 3 months ago

I've noticed this comment in Jetbrains' issue tracker. Hopefully it can help the plugin's author resolve the issue faster.

I've forked the source code and managed to make it not crash using the suggestion in the comment. However, when trying to evalutate an asynchronous code, the evaluation itself still failed with an error (though the process didn't crash so that's a start).

uriyyo commented 3 months ago

Hi @UltimateLobster,

This is super helpful, I will take a look!

uriyyo commented 3 months ago

Hi all,

I just uploaded a new plugin version that should fix this issue. I will ping you when it will be reviewed and publicly available.

cc @kool79 @cetguyrenard @ciarancourtney @UltimateLobster @lewkoo @AndreMPCosta

uriyyo commented 3 months ago

Hi all,

The new version 1.26 is now publicly available.

uriyyo commented 2 months ago

Hi all,

I'm closing this issue, please reopen it in case of any questions