YiiGuxing / TranslationPlugin

Translation plugin for IntelliJ based IDEs/Android Studio.
https://intellij-translation.yiiguxing.top
MIT License
11.31k stars 787 forks source link

[Auto Generated]Plugin error occurred: Cannot invoke (class=, method=beforeActionPerformed, topic=AnActionListener) #6114

Closed intellij-translation-plugin-bot closed 1 month ago

intellij-translation-plugin-bot commented 1 month ago

:warning:[Auto Generated Report]-=D63130E554C31EDE0CC52F61F7FDC957=-

Description

Cannot invoke (class=, method=beforeActionPerformed, topic=AnActionListener)

Environments

Plugin version: 3.6.5

IntelliJ IDEA 2024.3 EAP (Ultimate Edition) Build #IU-243.12818.47, built on September 11, 2024 Runtime version: 21.0.4+8-b589.3 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Operating system: macOS 15.0 Last action id: null

Stack Trace

java.lang.RuntimeException: Cannot invoke (class=, method=beforeActionPerformed, topic=AnActionListener)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:702)
    at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:517)
    at com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:279)
    at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:474)
    at jdk.proxy2/jdk.proxy2.$Proxy253.beforeActionPerformed(Unknown Source)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.fireBeforeActionPerformed(ActionManagerImpl.kt:1080)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1153)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.kt:396)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:845)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$intellij_platform_ide_impl(IdeKeyEventDispatcher.kt:574)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:510)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:449)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:442)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:304)
    at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:614)
    at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$15(IdeEventQueue.kt:576)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:87)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:576)
    at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:75)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke$lambda$0(IdeEventQueue.kt:355)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:844)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:354)
    at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:349)
    at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke$lambda$0(IdeEventQueue.kt:1031)
    at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:87)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:898)
    at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55)
    at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
    at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1031)
    at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1026)
    at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1040)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
    at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1040)
    at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$10(IdeEventQueue.kt:349)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:395)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.lang.ClassCastException: class cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl$9 cannot be cast to class com.intellij.openapi.Disposable (cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl$9 is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @3e96d630; com.intellij.openapi.Disposable is in unnamed module of loader com.intellij.util.lang.PathClassLoader @2c7b84de)
    at com.intellij.openapi.util.ObjectTree.lambda$executeAll$1(ObjectTree.java:177)
    at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:110)
    at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:163)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:205)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:193)
    at cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl.runAnimation(BalloonImpl.java:897)
    at cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl.hideAndDispose(BalloonImpl.java:1071)
    at cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl.hide(BalloonImpl.java:1031)
    at cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl.hide(BalloonImpl.java:1026)
    at cn.yiiguxing.plugin.translate.ui.balloon.BalloonImpl$5.beforeActionPerformed(BalloonImpl.java:641)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:725)
    at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:685)
    ... 42 more
github-actions[bot] commented 1 month ago

This problem is caused by the dynamic loading of the plugin, you need to restart the IDE to solve it.

github-actions[bot] commented 1 month ago

This issue has been automatically closed because it is not an issue for this project. If you think there are something really wrong, please reply this issue. Thanks for your cooperation.