HaxeFoundation / intellij-haxe

Haxe plugin for IntelliJ Platform based IDEs (IDEA, Android-Studio)
http://intellij-haxe.org
Apache License 2.0
219 stars 100 forks source link

Plugin exception 1.4.21 on IJ 2023.2.5 #1144

Closed shaman4dd closed 9 months ago

shaman4dd commented 10 months ago

Hi bug occuring on: plugin 1.4.21 IJ 2023.2.5 Haxe 4.3.3

java.lang.Throwable: Stack Overflow trying to resolve Signal1
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolveResult.create(HaxeResolveResult.java:201)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResultInternal(HaxeResolveUtil.java:686)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResult(HaxeResolveUtil.java:641)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.tryResolveType(HaxeResolveUtil.java:896)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResultInternal(HaxeResolveUtil.java:669)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResult(HaxeResolveUtil.java:641)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResult(HaxeResolveUtil.java:595)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolveResult.generateParameterList(HaxeResolveResult.java:434)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolveResult.create(HaxeResolveResult.java:178)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResultInternal(HaxeResolveUtil.java:686)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResult(HaxeResolveUtil.java:641)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolveResult.specializeByParameters(HaxeResolveResult.java:475)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolveResult.create(HaxeResolveResult.java:178)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.tryResolveType(HaxeResolveUtil.java:891)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.tryResolveClassByTypeTag(HaxeResolveUtil.java:920)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResultInternal(HaxeResolveUtil.java:742)
    at com.intellij.plugins.haxe.util.HaxeResolveUtil.getHaxeClassResolveResult(HaxeResolveUtil.java:641)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl._resolveHaxeClassInternal(HaxeReferenceImpl.java:835)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl.resolveHaxeClassInternal(HaxeReferenceImpl.java:341)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl.resolveHaxeClass(HaxeReferenceImpl.java:306)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolver.resolveChain(HaxeResolver.java:709)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolver.checkIsChain(HaxeResolver.java:620)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolver.doResolveInner(HaxeResolver.java:178)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolver.doResolve(HaxeResolver.java:146)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolveWithCaching$5(ResolveCache.java:268)
    at com.intellij.openapi.util.Computable.get(Computable.java:16)
    at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$4(ResolveCache.java:234)
    at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:27)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:65)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:212)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:268)
    at com.intellij.plugins.haxe.lang.psi.HaxeResolver.resolve(HaxeResolver.java:94)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl.doResolve(HaxeReferenceImpl.java:248)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl.multiResolve(HaxeReferenceImpl.java:239)
    at com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl.resolveToComponentName(HaxeReferenceImpl.java:260)
    at com.intellij.plugins.haxe.ide.annotator.color.HaxeSlowColorAnnotator.annotate(HaxeSlowColorAnnotator.java:56)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:130)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:107)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:360)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$7(GeneralHighlightingPass.java:299)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:320)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$8(GeneralHighlightingPass.java:323)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:92)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:323)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:286)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:234)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:95)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:390)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.runWithSpanIgnoreThrows(trace.kt:77)
    at com.intellij.platform.diagnostic.telemetry.helpers.TraceUtil.runWithSpanThrows(TraceUtil.java:24)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:386)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$3(PassExecutorService.java:377)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:376)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:352)
    at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:201)
    at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:207)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:350)
    at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:190)
    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)
m0rkeulv commented 10 months ago

I did find two cases of stack-overflows a about a week ago, this might be the same or due to the same code, hopefully this will be solved once i get 1.4.22 released.

https://github.com/HaxeFoundation/intellij-haxe/commit/808e60f4e945da5f0b26e0082464936d2200dc9a