Compiling Scala library in IDEA

I've been trying to participate in the Scalathon documentation spree, but I've been running into problems compiling and/or running Scaladoc from inside IDEA, in particular, LinkedList. Is there some special magic that I need or gotcha that I should be looking out for?

Scaladoc output:

/Users/dmclean/javaLib/scala-2.9.0.1/bin/scaladoc /Users/dmclean/github/scala/src/library/scala/collection/mutable/LinkedList.scala
/Users/dmclean/github/scala/src/library/scala/collection/mutable/LinkedList.scala:66: error: not found: value ReusableCBF
  implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, LinkedList[A]] = ReusableCBF.asInstanceOf[GenericCanBuildFrom[A]]
                                                                       ^
/Users/dmclean/github/scala/src/library/scala/collection/mutable/LinkedList.scala:66: error: erroneous or inaccessible type
  implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, LinkedList[A]] = ReusableCBF.asInstanceOf[GenericCanBuildFrom[A]]
                                                                                               ^
two errors found
Exception in thread "main" java.lang.NullPointerException
    at scala.tools.nsc.symtab.Types$$anonfun$isWithinBounds$3.apply(Types.scala:4958)
    at scala.tools.nsc.symtab.Types$$anonfun$isWithinBounds$3.apply(Types.scala:4958)
    at scala.collection.LinearSeqOptimized$class.exists(LinearSeqOptimized.scala:79)
    at scala.collection.immutable.List.exists(List.scala:45)
    at scala.tools.nsc.symtab.Types$class.isWithinBounds(Types.scala:4958)
    at scala.tools.nsc.symtab.SymbolTable.isWithinBounds(SymbolTable.scala:13)
    at scala.tools.nsc.typechecker.Infer$Inferencer.checkBounds(Infer.scala:1017)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.checkBounds(RefChecks.scala:1118)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1380)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$5.apply(Trees.scala:783)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$5.apply(Trees.scala:781)
    at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:899)
    at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:780)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1425)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:1113)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
    at scala.collection.immutable.List.flatMap(List.scala:45)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:1013)
    at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:797)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1425)
    at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:875)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$2.apply(Trees.scala:767)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$2.apply(Trees.scala:766)
    at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:899)
    at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:765)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1425)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transformTrees$1.apply(Trees.scala:873)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transformTrees$1.apply(Trees.scala:873)
    at scala.collection.immutable.List.loop$1(List.scala:117)
    at scala.collection.immutable.List.mapConserve(List.scala:133)
    at scala.tools.nsc.ast.Trees$Transformer.transformTrees(Trees.scala:873)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.eliminateModuleDefs(RefChecks.scala:1061)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:1098)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
    at scala.collection.immutable.List.flatMap(List.scala:45)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:1013)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$1.apply(Trees.scala:761)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$1.apply(Trees.scala:761)
    at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:899)
    at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:760)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1425)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:1113)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$transformStats$1.apply(RefChecks.scala:1013)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
    at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
    at scala.collection.immutable.List.foreach(List.scala:45)
    at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
    at scala.collection.immutable.List.flatMap(List.scala:45)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:1013)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$1.apply(Trees.scala:761)
    at scala.tools.nsc.ast.Trees$Transformer$$anonfun$transform$1.apply(Trees.scala:761)
    at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:899)
    at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:760)
    at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:1425)
    at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:892)
    at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:326)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply(Global.scala:326)
    at scala.tools.nsc.reporters.Reporter.withSource(Reporter.scala:47)
    at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:326)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:294)
    at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:294)
    at scala.collection.Iterator$class.foreach(Iterator.scala:652)
    at scala.collection.mutable.ListBuffer$$anon$1.foreach(ListBuffer.scala:311)
    at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:294)
    at scala.tools.nsc.Global$Run.compileSources(Global.scala:949)
    at scala.tools.nsc.Global$Run.compile(Global.scala:1034)
    at scala.tools.nsc.doc.DocFactory.makeUniverse(DocFactory.scala:49)
    at scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:108)
    at scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:120)
    at scala.tools.nsc.ScalaDoc.process(ScalaDoc.scala:48)
    at scala.tools.nsc.ScalaDoc$.main(ScalaDoc.scala:74)
    at scala.tools.nsc.ScalaDoc.main(ScalaDoc.scala)

Process finished with exit code 0

Please sign in to leave a comment.