java.lang.ClassCastException: java.lang.String cannot be cast to com.intellij.psi.PsiClass

GitHub | liach | 2 months ago
  1. 0

    Error in SideOnly inspection

    GitHub | 2 months ago | liach
    java.lang.ClassCastException: java.lang.String cannot be cast to com.intellij.psi.PsiClass
  2. 0

    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.base.ScPrimaryConstructorImpl cannot be cast to com.intellij.psi.PsiClass

    YouTrack | 7 years ago
    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.base.ScPrimaryConstructorImpl cannot be cast to com.intellij.psi.PsiClass
  3. 0

    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.toplevel.imports.ScImportStmtImpl cannot be cast to com.intellij.psi.PsiClass

    YouTrack | 7 years ago
    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.toplevel.imports.ScImportStmtImpl cannot be cast to com.intellij.psi.PsiClass
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.expr.ScAnnotationsImpl cannot be cast to com.intellij.psi.PsiClass

    YouTrack | 7 years ago
    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.expr.ScAnnotationsImpl cannot be cast to com.intellij.psi.PsiClass
  6. 0

    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.toplevel.templates.ScExtendsBlockImpl cannot be cast to com.intellij.psi.PsiClass

    YouTrack | 8 years ago
    java.lang.ClassCastException: org.jetbrains.plugins.scala.lang.psi.impl.toplevel.templates.ScExtendsBlockImpl cannot be cast to com.intellij.psi.PsiClass

    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.ClassCastException

      java.lang.String cannot be cast to com.intellij.psi.PsiClass

      at com.demonwav.mcdev.platform.forge.inspections.sideonly.LocalVariableDeclarationSideOnlyInspection.buildFix()
    2. com.demonwav.mcdev
      LocalVariableDeclarationSideOnlyInspection.buildFix
      1. com.demonwav.mcdev.platform.forge.inspections.sideonly.LocalVariableDeclarationSideOnlyInspection.buildFix(LocalVariableDeclarationSideOnlyInspection.java:43)
      1 frame
    3. IDEA
      BaseInspectionVisitor.registerVariableError
      1. com.siyeh.ig.BaseInspectionVisitor.createFixes(BaseInspectionVisitor.java:222)
      2. com.siyeh.ig.BaseInspectionVisitor.registerError(BaseInspectionVisitor.java:186)
      3. com.siyeh.ig.BaseInspectionVisitor.registerError(BaseInspectionVisitor.java:177)
      4. com.siyeh.ig.BaseInspectionVisitor.registerVariableError(BaseInspectionVisitor.java:126)
      4 frames
    4. com.demonwav.mcdev
      LocalVariableDeclarationSideOnlyInspection$2.visitLocalVariable
      1. com.demonwav.mcdev.platform.forge.inspections.sideonly.LocalVariableDeclarationSideOnlyInspection$2.visitLocalVariable(LocalVariableDeclarationSideOnlyInspection.java:122)
      1 frame
    5. IDEA
      ApplierCompleter.compute
      1. com.intellij.psi.impl.source.tree.java.PsiLocalVariableImpl.accept(PsiLocalVariableImpl.java:284)
      2. com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81)
      3. com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69)
      4. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:286)
      5. com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$1(LocalInspectionsPass.java:254)
      6. com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:123)
      7. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1026)
      8. com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$0(ApplierCompleter.java:96)
      9. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494)
      10. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
      11. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      12. com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:106)
      13. com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:91)
      13 frames
    6. Java RT
      ForkJoinWorkerThread.run
      1. java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
      2. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      3. java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      4. java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      5. java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      5 frames