Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.0-RC2, Scala 2.10.0
    • Fix Version/s: Scala 2.10.2-RC1
    • Component/s: Scaladoc Tool
    • Labels:

      Description

      I'm getting this stack trace:

      java.util.NoSuchElementException: next on empty iterator
      at scala.collection.Iterator$$anon$2.next(Iterator.scala:39)
      at scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
      at scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:64)
      at scala.collection.IterableLike$class.head(IterableLike.scala:91)
      at scala.collection.immutable.StringOps.scala$collection$IndexedSeqOptimized$$super$head(StringOps.scala:31)
      at scala.collection.IndexedSeqOptimized$class.head(IndexedSeqOptimized.scala:120)
      at scala.collection.immutable.StringOps.head(StringOps.scala:31)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$result$2$.addMember(IndexModelFactory.scala:27)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:48)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:42)
      at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:773)
      at scala.collection.immutable.List.foreach(List.scala:309)
      at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:772)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1(IndexModelFactory.scala:42)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:46)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:42)
      at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:773)
      at scala.collection.immutable.List.foreach(List.scala:309)
      at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:772)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1(IndexModelFactory.scala:42)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:46)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:42)
      at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:773)
      at scala.collection.immutable.List.foreach(List.scala:309)
      at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:772)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1(IndexModelFactory.scala:42)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:46)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1$$anonfun$scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1$2.apply(IndexModelFactory.scala:42)
      at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:773)
      at scala.collection.immutable.List.foreach(List.scala:309)
      at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:772)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.scala$tools$nsc$doc$model$IndexModelFactory$$anon$$gather$1(IndexModelFactory.scala:42)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.firstLetterIndex$lzycompute(IndexModelFactory.scala:52)
      at scala.tools.nsc.doc.model.IndexModelFactory$$anon$1.firstLetterIndex(IndexModelFactory.scala:16)
      at scala.tools.nsc.doc.html.HtmlFactory.generate(HtmlFactory.scala:131)
      at scala.tools.nsc.doc.html.Doclet.generateImpl(Doclet.scala:16)
      at scala.tools.nsc.doc.doclet.Generator.generate(Generator.scala:24)
      at scala.tools.nsc.doc.DocFactory.generate$1(DocFactory.scala:134)
      at scala.tools.nsc.doc.DocFactory.document(DocFactory.scala:137)
      at xsbt.Runner.run(ScaladocInterface.scala:30)
      at xsbt.ScaladocInterface.run(ScaladocInterface.scala:11)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:73)
      at sbt.compiler.AnalyzingCompiler.doc(AnalyzingCompiler.scala:54)
      at sbt.compiler.AnalyzingCompiler.doc(AnalyzingCompiler.scala:50)
      at sbt.Scaladoc$$anonfun$apply$3.apply(Doc.scala:62)
      at sbt.Scaladoc$$anonfun$apply$3.apply(Doc.scala:62)
      at sbt.Doc$class.generate(Doc.scala:36)
      at sbt.Scaladoc.generate(Doc.scala:58)
      at sbt.Scaladoc.apply(Doc.scala:62)
      at sbt.Doc$$anonfun$1$$anonfun$apply$1.apply(Doc.scala:50)
      at sbt.Doc$$anonfun$1$$anonfun$apply$1.apply(Doc.scala:48)
      at sbt.Tracked$$anonfun$outputChanged$1.apply(Tracked.scala:57)
      at sbt.Tracked$$anonfun$outputChanged$1.apply(Tracked.scala:52)
      at sbt.Doc$class.cached(Doc.scala:55)
      at sbt.Scaladoc.cached(Doc.scala:58)
      at sbt.Defaults$$anonfun$docTaskSettings$1.apply(Defaults.scala:546)
      at sbt.Defaults$$anonfun$docTaskSettings$1.apply(Defaults.scala:540)
      at sbt.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
      at sbt.Scoped$$anonfun$hf5$1.apply(Structure.scala:581)
      at scala.Function1$$anonfun$compose$1.apply(Function1.scala:49)
      at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
      at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$12.apply(Structure.scala:311)
      at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:41)
      at sbt.std.Transform$$anon$5.work(System.scala:71)
      at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
      at sbt.Execute.work(Execute.scala:238)
      at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

        Activity

        Hide
        Naftoli Gugenheim added a comment -

        Is there any workaround?

        Show
        Naftoli Gugenheim added a comment - Is there any workaround?
        Hide
        Vlad Ureche added a comment -

        Hi, sorry for the delay in answering, I missed this bug completely. It seems you bumped into an entity without a name, which is very strange. Can you please post a minimization? It might help me find a workaround, at least to get things working with 2.10.0.

        Show
        Vlad Ureche added a comment - Hi, sorry for the delay in answering, I missed this bug completely. It seems you bumped into an entity without a name, which is very strange. Can you please post a minimization? It might help me find a workaround, at least to get things working with 2.10.0.
        Hide
        Naftoli Gugenheim added a comment -

        Turns out I had a def named $$.

        Show
        Naftoli Gugenheim added a comment - Turns out I had a def named $$.
        Hide
        Vlad Ureche added a comment -

        Good to know the indexer crashes on that. Thanks for investigating it!

        Show
        Vlad Ureche added a comment - Good to know the indexer crashes on that. Thanks for investigating it!
        Hide
        Jason Zaugg added a comment -

        Deferring, we should fix this, but it it can wait.

        Show
        Jason Zaugg added a comment - Deferring, we should fix this, but it it can wait.
        Show
        Kato Kazuyoshi added a comment - https://github.com/scala/scala/pull/2281

          People

          • Assignee:
            Kato Kazuyoshi
            Reporter:
            Naftoli Gugenheim
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development