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 create class cn.yiiguxing.plugin.translate.action.TranslateTextComponentAction (classloader=P... #2464

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

intellij-translation-plugin-bot commented 1 year ago

:warning:[Auto Generated Report]-=06F846296BEB4DC9867EB6E118AE224A=-

Description

Cannot create class cn.yiiguxing.plugin.translate.action.TranslateTextComponentAction (classloader=PluginClassLoader(plugin=PluginDescriptor(name=Translation, id=cn.yiiguxing.plugin.translate, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\GoLand2022.2\plugins\TranslationPlugin, version=3.3.5, package=null, isBundled=false), packagePrefix=null, instanceId=125, state=active))

Environments

Plugin version: 3.3.5

GoLand 2022.2.4 Build #GO-222.4345.24, built on October 11, 2022 Runtime version: 17.0.4.1+7-b469.62 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Operating system: Windows 11 10.0 Last action id: null

Stack Trace

com.intellij.diagnostic.PluginException: Cannot create class cn.yiiguxing.plugin.translate.action.TranslateTextComponentAction (classloader=PluginClassLoader(plugin=PluginDescriptor(name=Translation, id=cn.yiiguxing.plugin.translate, descriptorPath=plugin.xml, path=~\AppData\Roaming\JetBrains\GoLand2022.2\plugins\TranslationPlugin, version=3.3.5, package=null, isBundled=false), packagePrefix=null, instanceId=125, state=active))
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:883)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:900)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.instantiate(ActionManagerImpl.java:199)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.convertStub(ActionManagerImpl.java:184)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getActionImpl(ActionManagerImpl.java:528)
    at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.getAction(ActionManagerImpl.java:517)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.addActionsFromActiveKeymap(IdeKeyEventDispatcher.java:839)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.updateCurrentContext(IdeKeyEventDispatcher.java:798)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:465)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:229)
    at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:824)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:450)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:449)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:624)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:447)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:493)
    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.Settings cannot be cast to class cn.yiiguxing.plugin.translate.Settings (cn.yiiguxing.plugin.translate.Settings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @513803b2; cn.yiiguxing.plugin.translate.Settings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @287f36a6)
    at cn.yiiguxing.plugin.translate.Settings$Companion.getInstance(Settings.kt:186)
    at cn.yiiguxing.plugin.translate.action.TranslateTextComponentAction$Handler.<init>(TranslateTextComponentAction.kt:59)
    at cn.yiiguxing.plugin.translate.action.TranslateTextComponentAction.<init>(TranslateTextComponentAction.kt:20)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:844)
    ... 25 more
github-actions[bot] commented 1 year 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 year 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.