java.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiCommentImpl cannot be cast to com.jetbrains.php.lang.psi.elements.StringLiteralExpression

GitHub | samdark | 4 months 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

    com.intellij.psi.impl.source.tree.PsiCommentImpl cannot be cast to com.jetbrains.php.lang.psi.elements.StringLiteralExpression

    GitHub | 4 months ago | samdark
    java.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiCommentImpl cannot be cast to com.jetbrains.php.lang.psi.elements.StringLiteralExpression
  2. 0

    Reference contributor not working yet

    GitHub | 10 months ago | thebigb
    java.lang.ClassCastException: com.jetbrains.php.lang.psi.elements.impl.PhpUseImpl cannot be cast to com.jetbrains.php.lang.psi.elements.PhpClass
  3. 0

    NullPointerException

    GitHub | 9 months ago | LeanderK
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IDE Errors | Not sure if its already reported

    GitHub | 9 months ago | karimiumar
    java.lang.IllegalArgumentException: No PSI node found for ceylon node of type ObjectDefinition at (471-615).
  6. 0

    Cannot refactor Actionscript code

    YouTrack | 4 years ago
    java.lang.ClassCastException: com.intellij.lang.javascript.psi.impl.JSReferenceSet$MyPsiReference cannot be cast to com.intellij.lang.javascript.psi.JSReferenceExpression

    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

      com.intellij.psi.impl.source.tree.PsiCommentImpl cannot be cast to com.jetbrains.php.lang.psi.elements.StringLiteralExpression

      at com.yii2support.views.PsiReference.getViewPsiFile()
    2. com.yii2support.views
      PsiReference.resolve
      1. com.yii2support.views.PsiReference.getViewPsiFile(PsiReference.java:43)
      2. com.yii2support.views.PsiReference.resolve(PsiReference.java:26)
      2 frames
    3. IDEA
      ApplierCompleter.compute
      1. com.intellij.psi.PsiReferenceBase.isReferenceTo(PsiReferenceBase.java:125)
      2. com.intellij.psi.search.SingleTargetRequestResultProcessor.processTextOccurrence(SingleTargetRequestResultProcessor.java:52)
      3. com.intellij.psi.impl.search.PsiSearchHelperImpl$8.lambda$execute$0(PsiSearchHelperImpl.java:734)
      4. com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:138)
      5. com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:224)
      6. com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:183)
      7. com.intellij.psi.impl.search.LowLevelSearchUtil.processInjectedFile(LowLevelSearchUtil.java:64)
      8. com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:133)
      9. com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:224)
      10. com.intellij.psi.impl.search.PsiSearchHelperImpl$8.execute(PsiSearchHelperImpl.java:730)
      11. com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:232)
      12. com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:228)
      13. com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:32)
      14. com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:29)
      15. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:895)
      16. com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:29)
      17. com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processVirtualFile$4(PsiSearchHelperImpl.java:376)
      18. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1061)
      19. com.intellij.openapi.application.ex.ApplicationUtil.tryRunReadAction(ApplicationUtil.java:46)
      20. com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:360)
      21. com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processPsiFileRoots$2(PsiSearchHelperImpl.java:313)
      22. com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:123)
      23. com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
      24. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
      25. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      26. com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:106)
      27. com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:91)
      27 frames
    4. 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