java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

Stack Overflow | skm | 1 month 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

    Issue while building project in scalaide

    Stack Overflow | 1 month ago | skm
    java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer
  2. 0

    Support scala 2.11.7

    GitHub | 2 years ago | jendap
    java.lang.ClassCastException: org.scalaide.core.internal.compiler.ScalaPresentationCompiler cannot be cast to scala.tools.nsc.interactive.CompilerControl
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NoSuchElementException in TextAnalysisFormat

    GitHub | 6 months ago | sschaef
    java.util.NoSuchElementException: None.get
  5. 0

    Error Log (求解决)_scala吧_百度贴吧

    baidu.com | 1 year ago
    scala.reflect.internal.Types$TypeError: bad symbolic reference. A signature in DatabaseComponent.class refers to term config in package com.typesafe which is not available. It may be completely missing from the current classpath, or the version on the classpath might be incompatible with the version used when compiling DatabaseComponent.class.

    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

      org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

      at org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply()
    2. org.scalaide.core
      ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply
      1. org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply(ScalaProject.scala:242)
      2. org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply(ScalaProject.scala:232)
      2 frames
    3. Scala
      Option$WithFilter.map
      1. scala.Option$WithFilter.map(Option.scala:207)
      1 frame
    4. org.scalaide.core
      ScalaProject$$anonfun$sourceOutputFolders$2.apply
      1. org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2.apply(ScalaProject.scala:232)
      2. org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2.apply(ScalaProject.scala:231)
      2 frames
    5. Scala
      TraversableLike$WithFilter.flatMap
      1. scala.collection.TraversableLike$WithFilter$$anonfun$flatMap$2.apply(TraversableLike.scala:714)
      2. scala.collection.immutable.List.foreach(List.scala:381)
      3. scala.collection.TraversableLike$WithFilter.flatMap(TraversableLike.scala:713)
      3 frames
    6. org.scalaide.core
      ScalaSourceIndexer$$anonfun$indexDocument$2.apply
      1. org.scalaide.core.internal.project.ScalaProject.sourceOutputFolders(ScalaProject.scala:231)
      2. org.scalaide.core.internal.project.ScalaProject.initializeCompilerSettings(ScalaProject.scala:478)
      3. org.scalaide.core.internal.project.ScalaProject.org$scalaide$core$internal$project$ScalaProject$$prepareCompilerSettings(ScalaProject.scala:435)
      4. org.scalaide.core.internal.project.ScalaProject$$anonfun$5.apply(ScalaProject.scala:159)
      5. org.scalaide.core.internal.project.ScalaProject$$anonfun$5.apply(ScalaProject.scala:159)
      6. org.scalaide.core.internal.compiler.PresentationCompilerProxy.liftedTree1$1(PresentationCompilerProxy.scala:152)
      7. org.scalaide.core.internal.compiler.PresentationCompilerProxy.create(PresentationCompilerProxy.scala:151)
      8. org.scalaide.core.internal.compiler.PresentationCompilerProxy.initialize(PresentationCompilerProxy.scala:116)
      9. org.scalaide.core.internal.compiler.PresentationCompilerProxy.obtainPc$1(PresentationCompilerProxy.scala:78)
      10. org.scalaide.core.internal.compiler.PresentationCompilerProxy.internal(PresentationCompilerProxy.scala:98)
      11. org.scalaide.core.internal.jdt.model.ScalaCompilationUnit$class.addToIndexer(ScalaCompilationUnit.scala:157)
      12. org.scalaide.core.internal.jdt.model.ScalaSourceFile.addToIndexer(ScalaSourceFile.scala:66)
      13. org.scalaide.core.internal.jdt.search.ScalaSourceIndexer$$anonfun$indexDocument$2.apply(ScalaSourceIndexer.scala:16)
      14. org.scalaide.core.internal.jdt.search.ScalaSourceIndexer$$anonfun$indexDocument$2.apply(ScalaSourceIndexer.scala:16)
      14 frames
    7. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)
      1 frame
    8. org.scalaide.core
      ScalaSourceIndexer.indexDocument
      1. org.scalaide.core.internal.jdt.search.ScalaSourceIndexer.indexDocument(ScalaSourceIndexer.scala:16)
      1 frame
    9. scala.tools.eclipse
      IndexerProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_indexerprovider_IndexerProviderAspect$1$16276a3c
      1. scala.tools.eclipse.contribution.weaving.jdt.indexerprovider.IndexerProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_indexerprovider_IndexerProviderAspect$1$16276a3c(IndexerProviderAspect.aj:30)
      1 frame
    10. JDT Core
      JobManager.run
      1. org.eclipse.jdt.internal.core.search.JavaSearchParticipant.indexDocument(JavaSearchParticipant.java:71)
      2. org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexDocument(IndexManager.java:504)
      3. org.eclipse.jdt.internal.core.search.indexing.IndexManager$1.execute(IndexManager.java:984)
      4. org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:405)
      4 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame