java.lang.UnsupportedOperationException

Panic! Unhandled pattern detected!

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Stack trace

    • java.lang.UnsupportedOperationException: Panic! Unhandled pattern detected! at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor.visitElement(RustTypeInferenceEngine.kt:44) at org.rust.lang.core.psi.RsVisitor.visitCompositeElement(RsVisitor.java:618) at org.rust.lang.core.psi.RsVisitor.visitPat(RsVisitor.java:327) at org.rust.lang.core.psi.RsVisitor.visitPatRange(RsVisitor.java:355) at org.rust.lang.core.psi.impl.RsPatRangeImpl.accept(RsPatRangeImpl.java:20) at org.rust.lang.core.psi.impl.RsPatRangeImpl.accept(RsPatRangeImpl.java:24) at org.rust.lang.core.psi.visitors.RustComputingVisitor.compute(RustComputingVisitor.kt:27) at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor.match(RustTypeInferenceEngine.kt:37) at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor.access$match(RustTypeInferenceEngine.kt:28) at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor$visitPatTup$1.invoke(RustTypeInferenceEngine.kt:67) at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor$visitPatTup$1.invoke(RustTypeInferenceEngine.kt:28) at org.rust.lang.core.psi.visitors.RustComputingVisitor.set(RustComputingVisitor.kt:36) at org.rust.lang.core.types.visitors.impl.RustTypeInferencingVisitor.visitPatTup(RustTypeInferenceEngine.kt:59) at org.rust.lang.core.psi.impl.RsPatTupImpl.accept(RsPatTupImpl.java:20) at org.rust.lang.core.psi.impl.RsPatTupImpl.accept(RsPatTupImpl.java:24) at org.rust.lang.core.psi.visitors.RustComputingVisitor.compute(RustComputingVisitor.kt:27) at org.rust.lang.core.types.visitors.impl.RustTypeInferenceEngine.run(RustTypeInferenceEngine.kt:23) at org.rust.lang.core.types.visitors.impl.RustTypeInferenceEngine.inferPatBindingTypeFrom(RustTypeInferenceEngine.kt:15) at org.rust.lang.core.types.visitors.impl.RustTypificationEngineKt.deviseBoundPatType(RustTypificationEngine.kt:263) at org.rust.lang.core.types.visitors.impl.RustTypificationEngineKt.access$deviseBoundPatType(RustTypificationEngine.kt:1) at org.rust.lang.core.types.visitors.impl.RustTypificationEngine.typify(RustTypificationEngine.kt:33) at org.rust.lang.core.completion.CompletionEngineKt.createLookupElement(CompletionEngine.kt:141) at org.rust.lang.core.completion.CompletionEngineKt$completionsFromScopeEntries$1.invoke(CompletionEngine.kt:88) at org.rust.lang.core.completion.CompletionEngineKt$completionsFromScopeEntries$1.invoke(CompletionEngine.kt) at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:137) at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:98) at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:121) at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:536) at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:560) at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:553) at org.rust.lang.core.completion.CompletionEngineKt.completionsFromScopeEntries(CompletionEngine.kt:89) at org.rust.lang.core.completion.CompletionEngineKt.access$completionsFromScopeEntries(CompletionEngine.kt:1) at org.rust.lang.core.completion.CompletionEngine.completePath(CompletionEngine.kt:40) at org.rust.lang.core.resolve.ref.RsPathReferenceImpl.getVariants(RsPathReferenceImpl.kt:25) at com.intellij.codeInsight.completion.CompletionData.completeReference(CompletionData.java:292) at com.intellij.codeInsight.completion.CompletionVariant.addReferenceCompletions(CompletionVariant.java:164) at com.intellij.codeInsight.completion.CompletionData.completeReference(CompletionData.java:97) at com.intellij.codeInsight.completion.LegacyCompletionContributor.lambda$completeReference$0(LegacyCompletionContributor.java:71) at com.intellij.codeInsight.completion.LegacyCompletionContributor.processReference(LegacyCompletionContributor.java:125) at com.intellij.codeInsight.completion.LegacyCompletionContributor.processReferences(LegacyCompletionContributor.java:108) at com.intellij.codeInsight.completion.LegacyCompletionContributor.completeReference(LegacyCompletionContributor.java:69) at com.intellij.codeInsight.completion.LegacyCompletionContributor.fillCompletionVariants(LegacyCompletionContributor.java:52) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:132) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:125) at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$2.addCompletions(LiveTemplateCompletionContributor.java:88) at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36) at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:151) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81) at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:110) at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:773) at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$500(CompletionProgressIndicator.java:91) at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:755) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$0(CompletionThreading.java:87) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:884) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$1(CompletionThreading.java:84) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$2(CompletionThreading.java:82) at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.