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
3.2.2, 3.3.0-RC3 and 3.3.1-RC1-bin-20230411-d577300-NIGHTLY
Minimized code
scala-cli doc .
packageexampleclassImpl() extendsBase(Seq.empty, c ="-")
classBase(vala:Seq[String], valb:String="", valc:String="")
Docs for the class are not output to the docs folder. Interestingly, scaladoc can successfully parse if I remove the val b: String = "" from the super class, or if I replace the Seq.empty with Nil
Output
Problem parsing repro.scala:[0..8..134], documentation may not be generated.
scala.MatchError:Block(List(ValDef(a$1,TypeTree[AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module classcollection)),objectimmutable),Seq),List(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module classjava)),objectlang),String)))],TypeApply(Select(Ident(Seq),empty),List(TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module classjava)),objectlang),String)]))), ValDef(b$1,TypeTree[AnnotatedType(TypeRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class<root>)),objectscala),Predef),String),ConcreteAnnotation(Apply(Select(New(TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module classannotation)),objectunchecked),uncheckedVariance)]),<init>),List())))],Select(Ident(Base),$lessinit$greater$default$2))),Apply(Select(New(Ident(Base)),<init>),List(Ident(a$1), Ident(b$1), NamedArg(c,Literal(Constant(-)))))) (of classdotty.tools.dotc.ast.Trees$Block)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.unpackTreeToClassDef$1(ClassLikeSupport.scala:71)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.getSupertypesGraph$1$$anonfun$1(ClassLikeSupport.scala:83)
at scala.collection.immutable.List.flatMap(List.scala:293)
at scala.collection.immutable.List.flatMap(List.scala:79)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.getSupertypesGraph$1(ClassLikeSupport.scala:86)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.mkClass(ClassLikeSupport.scala:104)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.mkClass$(ClassLikeSupport.scala:15)
at dotty.tools.scaladoc.tasty.TastyParser.mkClass(TastyParser.scala:169)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.parseClasslike(ClassLikeSupport.scala:298)
at dotty.tools.scaladoc.tasty.ClassLikeSupport.parseClasslike$(ClassLikeSupport.scala:15)
at dotty.tools.scaladoc.tasty.TastyParser.parseClasslike(TastyParser.scala:169)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.traverseTree(TastyParser.scala:223)
at scala.quoted.Quotes$reflectModule$TreeTraverser.foldTree(Quotes.scala:4666)
at scala.quoted.Quotes$reflectModule$TreeTraverser.foldTree$(Quotes.scala:4662)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.foldTree(TastyParser.scala:211)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.foldTree(TastyParser.scala:211)
at scala.quoted.Quotes$reflectModule$TreeAccumulator.foldTrees$$anonfun$1(Quotes.scala:4554)
at scala.collection.LinearSeqOps.foldLeft(LinearSeq.scala:183)
at scala.collection.LinearSeqOps.foldLeft$(LinearSeq.scala:179)
at scala.collection.immutable.List.foldLeft(List.scala:79)
at scala.quoted.Quotes$reflectModule$TreeAccumulator.foldTrees(Quotes.scala:4554)
at scala.quoted.Quotes$reflectModule$TreeAccumulator.foldTrees$(Quotes.scala:4549)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.foldTrees(TastyParser.scala:211)
at scala.quoted.Quotes$reflectModule$TreeAccumulator.foldOverTree(Quotes.scala:4617)
at scala.quoted.Quotes$reflectModule$TreeAccumulator.foldOverTree$(Quotes.scala:4549)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.foldOverTree(TastyParser.scala:211)
at scala.quoted.Quotes$reflectModule$TreeTraverser.traverseTreeChildren(Quotes.scala:4668)
at scala.quoted.Quotes$reflectModule$TreeTraverser.traverseTreeChildren$(Quotes.scala:4662)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.traverseTreeChildren(TastyParser.scala:211)
at scala.quoted.Quotes$reflectModule$TreeTraverser.traverseTree(Quotes.scala:4664)
at scala.quoted.Quotes$reflectModule$TreeTraverser.traverseTree$(Quotes.scala:4662)
at dotty.tools.scaladoc.tasty.TastyParser$Traverser$2$.traverseTree(TastyParser.scala:219)
at dotty.tools.scaladoc.tasty.TastyParser.parseRootTree(TastyParser.scala:228)
at dotty.tools.scaladoc.tasty.ScaladocTastyInspector.$anonfun$4(TastyParser.scala:123)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at dotty.tools.scaladoc.tasty.ScaladocTastyInspector.postProcess$$anonfun$2(TastyParser.scala:42)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.collection.immutable.List.foreach(List.scala:333)
at dotty.tools.scaladoc.tasty.ScaladocTastyInspector.postProcess(TastyParser.scala:42)
at scala.tasty.inspector.OldTastyInspector$TastyInspectorFinishPhase$1.runOn(OldTastyInspector.scala:91)
at dotty.tools.dotc.Run.runPhases$1$$anonfun$1(Run.scala:238)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1321)
at dotty.tools.dotc.Run.runPhases$1(Run.scala:249)
at dotty.tools.dotc.Run.compileUnits$$anonfun$1(Run.scala:257)
at dotty.tools.dotc.Run.compileUnits$$anonfun$adapted$1(Run.scala:266)
at dotty.tools.dotc.util.Stats$.maybeMonitored(Stats.scala:68)
at dotty.tools.dotc.Run.compileUnits(Run.scala:266)
at dotty.tools.dotc.Run.compileUnits(Run.scala:196)
at dotty.tools.dotc.fromtasty.TASTYRun.compile(TASTYRun.scala:14)
at dotty.tools.dotc.Driver.doCompile(Driver.scala:35)
at dotty.tools.dotc.Driver.process(Driver.scala:195)
at scala.tasty.inspector.OldTastyInspector.inspectFilesInContext(OldTastyInspector.scala:72)
at scala.tasty.inspector.OldTastyInspector.inspectFilesInContext$(OldTastyInspector.scala:22)
at scala.tasty.inspector.DocTastyInspector.inspectFilesInContext(DocTastyInspector.scala:5)
at dotty.tools.scaladoc.tasty.ScaladocTastyInspector.result(TastyParser.scala:147)
at dotty.tools.scaladoc.ScalaModuleProvider$.mkModule(ScalaModuleProvider.scala:11)
at dotty.tools.scaladoc.Scaladoc$.run(Scaladoc.scala:241)
at dotty.tools.scaladoc.Scaladoc$.run$$anonfun$1(Scaladoc.scala:73)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
at scala.Option.map(Option.scala:242)
at dotty.tools.scaladoc.Scaladoc$.run(Scaladoc.scala:77)
at dotty.tools.scaladoc.Main.run(Main.scala:18)
at dotty.tools.scaladoc.Main$.main(Main.scala:24)
at dotty.tools.scaladoc.Main.main(Main.scala)
WroteScaladoc to ./scala-doc
Expectation
No stacktrace, doc generated to output folder.
The text was updated successfully, but these errors were encountered:
Compiler version
3.2.2, 3.3.0-RC3 and 3.3.1-RC1-bin-20230411-d577300-NIGHTLY
Minimized code
scala-cli doc .
Docs for the class are not output to the docs folder. Interestingly, scaladoc can successfully parse if I remove the
val b: String = ""
from the super class, or if I replace theSeq.empty
withNil
Output
Expectation
No stacktrace, doc generated to output folder.
The text was updated successfully, but these errors were encountered: