java.lang.ClassCastException: com.jetbrains.php.lang.psi.elements.impl.PhpUseImpl cannot be cast to com.jetbrains.php.lang.psi.elements.PhpClass

GitHub | thebigb | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Reference contributor not working yet

    GitHub | 9 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

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.jetbrains.php.lang.psi.elements.impl.PhpUseImpl cannot be cast to com.jetbrains.php.lang.psi.elements.PhpClass

      at de.espend.idea.php.annotation.reference.DocTagNameAnnotationReferenceContributor$PhpDocIdentifierReference.isReferenceTo()
    2. de.espend.idea
      DocTagNameAnnotationReferenceContributor$PhpDocIdentifierReference.isReferenceTo
      1. de.espend.idea.php.annotation.reference.DocTagNameAnnotationReferenceContributor$PhpDocIdentifierReference.isReferenceTo(DocTagNameAnnotationReferenceContributor.java:261)
      1 frame
    3. IDEA
      ProgressManagerImpl.executeProcessUnderProgress
      1. com.intellij.psi.search.SingleTargetRequestResultProcessor.processTextOccurrence(SingleTargetRequestResultProcessor.java:52)
      2. com.intellij.psi.impl.search.PsiSearchHelperImpl$10.execute(PsiSearchHelperImpl.java:736)
      3. com.intellij.psi.impl.search.LowLevelSearchUtil.a(LowLevelSearchUtil.java:134)
      4. com.intellij.psi.impl.search.LowLevelSearchUtil.access$000(LowLevelSearchUtil.java:47)
      5. com.intellij.psi.impl.search.LowLevelSearchUtil$1.execute(LowLevelSearchUtil.java:204)
      6. com.intellij.psi.impl.search.LowLevelSearchUtil.processTextOccurrences(LowLevelSearchUtil.java:271)
      7. com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:200)
      8. com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:200)
      9. com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:188)
      10. com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:32)
      11. com.intellij.openapi.application.ReadActionProcessor$1.compute(ReadActionProcessor.java:29)
      12. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:866)
      13. com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:29)
      14. com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:123)
      15. com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1033)
      16. com.intellij.concurrency.ApplierCompleter.b(ApplierCompleter.java:96)
      17. com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
      18. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
      19. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      19 frames