java.lang.ClassCastException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Александр Гурьянов,
  • Stack trace

    • 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(ScalaPlugin.scala:158) at org.scalaide.core.internal.ScalaPlugin.scalaCompilationUnit(ScalaPlugin.scala:165) at org.scalaide.ui.internal.editor.ScalaCompilationUnitEditor$class.getInteractiveCompilationUnit(ScalaCompilationUnitEditor.scala:100) at org.scalaide.ui.internal.editor.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:62) at org.scalaide.ui.internal.reconciliation.ScalaReconciler.install(ScalaReconciler.scala:95) at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:217) at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:204) at scala.Option.map(Option.scala:146) at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration.getReconciler(ScalaSourceViewerConfiguration.scala:204) at org.eclipse.jface.text.source.SourceViewer.configure(SourceViewer.java:460) at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.configure(JavaSourceViewer.java:230) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3427) at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:447) at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3119) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl(CompilationUnitEditor.java:1505)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.