Skip to content

Exception in Runtime #24

Description

@agamrafaeli

I was just sitting and working when I get the following exception:
com.intellij.psi.impl.source.tree.CompositeElement cannot be cast to com.intellij.psi.tree.IElementType java.lang.ClassCastException: com.intellij.psi.impl.source.tree.CompositeElement cannot be cast to com.intellij.psi.tree.IElementType at com.wix.rt.lang.psi.RTRepeatExpression.<init>(RTRepeatExpression.java:25) at com.wix.rt.lang.parser.RTParserDefinition.createElement(RTParserDefinition.java:42) at com.intellij.psi.impl.source.tree.CompositeElement.createPsiNoLock(CompositeElement.java:765) at com.intellij.psi.impl.source.tree.CompositeElement.getPsi(CompositeElement.java:742) at com.intellij.psi.impl.source.SourceTreeToPsiMap.treeElementToPsi(SourceTreeToPsiMap.java:30) at com.intellij.psi.impl.source.tree.SharedImplUtil.getParent(SharedImplUtil.java:48) at com.intellij.extapi.psi.StubBasedPsiElementBase.getParent(StubBasedPsiElementBase.java:363) at com.intellij.psi.util.PsiTreeUtil.getDepth(PsiTreeUtil.java:162) at com.intellij.psi.util.PsiTreeUtil.findCommonParent(PsiTreeUtil.java:136) at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.findCommonParent(CollectHighlightsUtil.java:145) at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.getElementsInRange(CollectHighlightsUtil.java:53) at com.intellij.codeInsight.daemon.impl.CollectHighlightsUtil.getElementsInRange(CollectHighlightsUtil.java:45) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:246) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:157) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:241) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:203) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.a(LineMarkersPass.java:111) at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:96) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:106) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:438) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1148) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.d(PassExecutorService.java:431) at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:548) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:430) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:406) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:142) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:237) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:404) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:165) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

We are in the process of migrating our codebase to React 16. It didn't throw any errors in the process. So maybe not the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions