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

GitHub | LooMaclin | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    "Panic! Unhandled pattern detected!" error

    GitHub | 1 month ago | LooMaclin
    java.lang.UnsupportedOperationException: Panic! Unhandled pattern detected!
  2. 0

    GitHub comment 754#255958020

    GitHub | 4 months ago | la10736
    java.lang.AssertionError: Rebuild requested for index Stubs
  3. 0

    IDEA 2016.3: Could not initialize class com.intellij.codeInsight.completion.CompletionUtil

    GitHub | 3 months ago | rx80
    java.lang.NoClassDefFoundError: Could not initialize class com.intellij.codeInsight.completion.CompletionUtil
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Panic! Unhandled pattern detected!

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