java.lang.UnsupportedOperationException: Panic! Unhandled pattern detected!

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by LooMaclin
, 9 months ago
Panic! Unhandled pattern detected!
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 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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.