godot-kotlin-jvm icon indicating copy to clipboard operation
godot-kotlin-jvm copied to clipboard

Intellij idea 2022.2 plugin error

Open lemon07r opened this issue 1 year ago • 8 comments

Didnt get this error until I updated my idea ide to 2022.2. See error below: stacktrace.txt

java.lang.ClassCastException
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
	at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:564)
	at java.base/java.util.concurrent.ForkJoinTask.reportExecutionException(ForkJoinTask.java:604)
	at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:981)
	at com.intellij.util.ConcurrencyUtil.manifestExceptionsIn(ConcurrencyUtil.java:256)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$queuePassesCreation$14(DaemonCodeAnalyzerImpl.java:941)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:513)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:75)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:118)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:791)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:881)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
	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 org.jetbrains.kotlin.idea.codeInsight.hints.KotlinReferencesTypeHintsProvider$Settings cannot be cast to class com.intellij.codeInsight.hints.NoSettings (org.jetbrains.kotlin.idea.codeInsight.hints.KotlinReferencesTypeHintsProvider$Settings is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @12959e30; com.intellij.codeInsight.hints.NoSettings is in unnamed module of loader com.intellij.util.lang.PathClassLoader @2d6a9952)
	at godot.intellij.plugin.codevision.RegisteredNameInlayHint.getCollectorFor(RegisteredNameInlayHint.kt:38)
	at com.intellij.codeInsight.hints.InlayHintsUtilsKt.getCollectorWrapperFor(InlayHintsUtils.kt:50)
	at com.intellij.codeInsight.hints.InlayHintsPassFactory.createHighlightingPass(InlayHintsPassFactory.kt:35)
	at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPassRegistrarImpl.instantiatePasses(TextEditorHighlightingPassRegistrarImpl.java:190)
	at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.getPasses(TextEditorBackgroundHighlighter.java:75)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$17(DaemonCodeAnalyzerImpl.java:1008)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:941)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:68)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$submitInBackground$18(DaemonCodeAnalyzerImpl.java:999)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.submitInBackground(DaemonCodeAnalyzerImpl.java:991)
	at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl.lambda$queuePassesCreation$13(DaemonCodeAnalyzerImpl.java:939)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
 

lemon07r avatar Jul 26 '22 16:07 lemon07r

Rolling back to 2022.1.4 fixes this issue.

lemon07r avatar Jul 26 '22 16:07 lemon07r

When does this appear ?

piiertho avatar Jul 26 '22 16:07 piiertho

When does this appear ?

Just from having a godot project open. I get the pop up seconds later with that error. Rolling my ide back a version makes the error go away. Maybe plugin needs to be updated for the idea ide update?

lemon07r avatar Jul 26 '22 17:07 lemon07r

Updated and tested a simple working project again to make sure it was a reproducible error. I am still getting the same error. See attached screenshot. image

lemon07r avatar Jul 29 '22 12:07 lemon07r

@lemon07r did you update your kotlin plugin as well? Probably we need to rebuild the plugin, but I'm not sure if the problem is really us or the kotlin plugin itself.

raniejade avatar Jul 31 '22 15:07 raniejade

@lemon07r did you update your kotlin plugin as well? Probably we need to rebuild the plugin, but I'm not sure if the problem is really us or the kotlin plugin itself.

I did, but im not sure if it rolls back the kotlin plugin as well when I hit the rollback option from the jetbrains toolbox menu (which was how I did it).

lemon07r avatar Aug 01 '22 15:08 lemon07r

I have exactly the same problem, did you find any solution ?

AntonioGomesFr avatar Aug 05 '22 18:08 AntonioGomesFr

I have exactly the same problem, did you find any solution ?

ATM the only work around I've found is to rollback my idea version to any of the 2022.1.x versions, until the plugin gets fixed/updated. Im currently using 2022.1.4 without any issues.

lemon07r avatar Aug 06 '22 02:08 lemon07r

Only solution atm is to rollback to an earlier version of idea, until the plugin gets fixed.

On Fri, Aug 5, 2022 at 2:29 PM Antonio Gomes @.***> wrote:

I have exactly the same problem, did you find any solution ?

— Reply to this email directly, view it on GitHub https://github.com/utopia-rise/godot-kotlin-jvm/issues/346#issuecomment-1206737157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3SAOQOK7VOPWFO277R53DVXVMOZANCNFSM54WSGGDQ . You are receiving this because you were mentioned.Message ID: @.***>

lemon07r avatar Oct 11 '22 09:10 lemon07r

tm is to rollback to an earlier version of i

You still have the problem with last godot kotlin version ?

piiertho avatar Oct 13 '22 06:10 piiertho