detekt / detekt-intellij-plugin

detekt plugin for IntelliJ
https://plugins.jetbrains.com/plugin/10761-detekt
Apache License 2.0
299 stars 39 forks source link

org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments: Unsupported reference #484

Closed danny-su closed 1 year ago

danny-su commented 1 year ago

org.jetbrains.kotlin.utils.KotlinExceptionWithAttachments: Unsupported reference at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor$addClassToProcess$ProcessClassUsagesTask$perform$3.invoke(ExpressionsOfTypeProcessor.kt:245) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor$addClassToProcess$ProcessClassUsagesTask$perform$3.invoke(ExpressionsOfTypeProcessor.kt:215) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor$searchReferences$1$1.invoke(ExpressionsOfTypeProcessor.kt:951) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor$searchReferences$1$1.invoke(ExpressionsOfTypeProcessor.kt:949) at com.intellij.openapi.application.ActionsKt.runReadAction$lambda$3(actions.kt:31) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:909) at com.intellij.openapi.application.ActionsKt.runReadAction(actions.kt:31) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.searchReferences$lambda$20(ExpressionsOfTypeProcessor.kt:949) at com.intellij.util.AbstractQuery.lambda$threadSafeProcessor$1(AbstractQuery.java:73) at com.intellij.util.UniqueResultsQuery$MyProcessor.process(UniqueResultsQuery.java:68) at com.intellij.psi.search.SingleTargetRequestResultProcessor.processTextOccurrence(SingleTargetRequestResultProcessor.java:35) at com.intellij.psi.impl.search.PsiSearchHelperImpl$5.lambda$execute$0(PsiSearchHelperImpl.java:968) at com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:85) at com.intellij.psi.impl.search.LowLevelSearchUtil.lambda$processElementsAtOffsets$0(LowLevelSearchUtil.java:176) at com.intellij.psi.impl.search.LowLevelSearchUtil.processOffsets(LowLevelSearchUtil.java:203) at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:175) at com.intellij.psi.impl.search.PsiSearchHelperImpl$5.execute(PsiSearchHelperImpl.java:964) at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:289) at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:280) at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:11) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76) at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:11) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processCandidates$18(PsiSearchHelperImpl.java:925) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processVirtualFile$11(PsiSearchHelperImpl.java:561) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:540) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processPsiFileRoots$7(PsiSearchHelperImpl.java:411) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processFilesConcurrentlyDespiteWriteActions$9(PsiSearchHelperImpl.java:482) 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.psi.impl.search.PsiSearchHelperImpl.lambda$processFilesConcurrentlyDespiteWriteActions$10(PsiSearchHelperImpl.java:481) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:142) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:98) 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.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:110) at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:88) 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.concurrency.ApplierCompleter.compute(ApplierCompleter.java:88) at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:62) at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:51) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processFilesConcurrentlyDespiteWriteActions(PsiSearchHelperImpl.java:498) at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processPsiFileRoots$8(PsiSearchHelperImpl.java:408) at com.intellij.psi.impl.PsiManagerImpl.runInBatchFilesMode(PsiManagerImpl.java:455) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processPsiFileRoots(PsiSearchHelperImpl.java:401) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processCandidates(PsiSearchHelperImpl.java:920) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processGlobalRequests(PsiSearchHelperImpl.java:904) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processGlobalRequestsOptimized(PsiSearchHelperImpl.java:856) at com.intellij.psi.impl.search.PsiSearchHelperImpl.processRequests(PsiSearchHelperImpl.java:781) at com.intellij.psi.search.SearchRequestQuery.processResults(SearchRequestQuery.java:21) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105) at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105) at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:37) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:80) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.searchReferences(ExpressionsOfTypeProcessor.kt:947) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.searchReferences(ExpressionsOfTypeProcessor.kt:943) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.access$searchReferences(ExpressionsOfTypeProcessor.kt:46) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor$addClassToProcess$ProcessClassUsagesTask.perform(ExpressionsOfTypeProcessor.kt:215) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.processTasks(ExpressionsOfTypeProcessor.kt:176) at org.jetbrains.kotlin.idea.search.usagesSearch.ExpressionsOfTypeProcessor.run(ExpressionsOfTypeProcessor.kt:143) at org.jetbrains.kotlin.idea.search.usagesSearch.operators.OperatorReferenceSearcher.run(OperatorReferenceSearcher.kt:222) at org.jetbrains.kotlin.idea.search.ideaExtensions.KotlinConventionMethodReferencesSearcher.processQuery(KotlinConventionMethodReferencesSearcher.kt:27) at org.jetbrains.kotlin.idea.search.ideaExtensions.KotlinConventionMethodReferencesSearcher.processQuery(KotlinConventionMethodReferencesSearcher.kt:13) at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:76) at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:30) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105) at com.intellij.util.MergeQuery.processResults(MergeQuery.java:22) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.delegateProcessResults(AbstractQuery.java:105) at com.intellij.util.UniqueResultsQuery.processResults(UniqueResultsQuery.java:37) at com.intellij.util.AbstractQuery.doProcessResults(AbstractQuery.java:88) at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:80) at com.intellij.find.findUsages.JavaFindUsagesHelper.addElementUsages(JavaFindUsagesHelper.java:475) at com.intellij.find.findUsages.JavaFindUsagesHelper.processElementUsages(JavaFindUsagesHelper.java:116) at com.intellij.codeInsight.daemon.impl.UnusedSymbolUtil.lambda$processUsages$1(UnusedSymbolUtil.java:294) at com.intellij.util.containers.ContainerUtil.process(ContainerUtil.java:814) at com.intellij.codeInsight.daemon.impl.UnusedSymbolUtil.processUsages(UnusedSymbolUtil.java:294) at com.intellij.codeInsight.daemon.impl.UnusedSymbolUtil.processUsages(UnusedSymbolUtil.java:224) at com.intellij.codeInspection.sameParameterValue.SameParameterValueInspection$LocalSameParameterValueInspection$1.visitMethod(SameParameterValueInspection.java:421) at org.jetbrains.uast.UMethod.accept(UMethod.kt:42) at com.intellij.uast.UastHintedVisitorAdapter$Companion$create$1.visitElement(UastHintedVisitorAdapter.kt:37) at org.jetbrains.kotlin.psi.KtElementImplStub.accept(KtElementImplStub.java:52) at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$10(InspectionRunner.java:334) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133) at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$11(InspectionRunner.java:342) 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.InspectionRunner.lambda$processInOrder$12(InspectionRunner.java:348) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151) at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$13(InspectionRunner.java:311) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119) at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$14(InspectionRunner.java:311) at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.lambda$call$0(JobLauncherImpl.java:309) 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.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:294) at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:280) at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428) 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)

arturbosch commented 1 year ago

Duplicate of #271