java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit

Google Groups | Александр Гурьянов | 2 years 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

    Newbie questions

    Google Groups | 2 years ago | Александр Гурьянов
    java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit

      at org.scalaide.core.internal.ScalaPlugin.unitOfSourceFile$1()
    2. org.scalaide.core
      ScalaPlugin.scalaCompilationUnit
      1. org.scalaide.core.internal.ScalaPlugin.unitOfSourceFile$1(ScalaPlugin.scala:158)
      2. org.scalaide.core.internal.ScalaPlugin.scalaCompilationUnit(ScalaPlugin.scala:165)
      2 frames
    3. org.scalaide.ui
      ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply
      1. org.scalaide.ui.internal.editor.ScalaCompilationUnitEditor$class.getInteractiveCompilationUnit(ScalaCompilationUnitEditor.scala:100)
      2. org.scalaide.ui.internal.editor.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:62)
      3. org.scalaide.ui.internal.reconciliation.ScalaReconciler.install(ScalaReconciler.scala:95)
      4. org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:217)
      5. org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:204)
      5 frames
    4. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)
      1 frame
    5. org.scalaide.ui
      ScalaSourceViewerConfiguration.getReconciler
      1. org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration.getReconciler(ScalaSourceViewerConfiguration.scala:204)
      1 frame
    6. JFace Text
      SourceViewer.configure
      1. org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:460)
      1 frame
    7. Java Development Tools UI
      JavaSourceViewer.configure
      1. org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.configure(JavaSourceViewer.java:230)
      1 frame
    8. Text Editor Framework
      AbstractDecoratedTextEditor.createPartControl
      1. org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3427)
      2. org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
      3. org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447)
      3 frames
    9. Java Development Tools UI
      CompilationUnitEditor.createPartControl
      1. org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3119)
      2. org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1505)
      2 frames