You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[info] welcome to sbt 1.7.1 (OracleCorporationJava17.0.1)
[info] loading global plugins from ...\.sbt\1.0\plugins
[info] loading project definition from ...\docfailexample\project
[info] loading settings for project root from build.sbt ...
[info] set current project to docfailexample (in build file:/.../docfailexample/)
[success] Totaltime: 0 s, completed 5Nov2022, 2:50:24 pm
[info] compiling 1Scala source to ...\docfailexample\target\scala-3.2.0\classes ...
[info] MainScalaAPI documentation to ...\docfailexample\target\scala-3.2.0\api...
[info] Skipping unused scalacOptions: -WerrorProblem parsing src\main\scala\Main.scala:<0..124>, documentation may not be generated.
java.lang.AssertionError: assertion failed
|=> rat scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:11)
at dotty.tools.dotc.util.Spans$Span$.start$extension(Spans.scala:45)
at dotty.tools.dotc.util.SourcePosition.start(SourcePosition.scala:52)
at scala.quoted.runtime.impl.QuotesImpl$reflect$PositionMethods$.start(QuotesImpl.scala:2813)
at scala.quoted.runtime.impl.QuotesImpl$reflect$PositionMethods$.start(QuotesImpl.scala:2813)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.getParentsAsTreeSymbolTuples$$anonfun$1(ClassLikeSupport.scala:260)
at scala.collection.Iterator$$anon$6.hasNext(Iterator.scala:472)
at scala.collection.Iterator$$anon$9.hasNext(Iterator.scala:576)
at scala.collection.immutable.List.prependedAll(List.scala:152)
at scala.collection.immutable.List$.from(List.scala:684)
at scala.collection.immutable.List$.from(List.scala:681)
at scala.collection.IterableOps$WithFilter.map(Iterable.scala:891)
Expectation
An AssertionError is generated. The task completes with warning, but no documentation is generated. The stack trace is unexpected. I would expect documentation would be generated & no AssertionError.
Notes
sbt 1.7.1
The error only occurs with extends Iterator[String] and not other extends, e.g. extends Iterable[String].
Compiler version
3.2.0 & 3.2.1
Minimized code
Output
First few lines of stack trace:
Expectation
An AssertionError is generated. The task completes with warning, but no documentation is generated. The stack trace is unexpected. I would expect documentation would be generated & no AssertionError.
Notes
sbt 1.7.1
The error only occurs with
extends Iterator[String]
and not other extends, e.g.extends Iterable[String]
.Original reported here: sbt/sbt#7065
Error also occurs with
scaladoc
command.The text was updated successfully, but these errors were encountered: