Skip to content

Commit db20d9c

Browse files
committed
Doc do not fail for empty (or java) modules
1 parent c21068e commit db20d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ object projects:
408408
sbtTestCommand = "testsJVM/test;testsJS/test;",
409409
// Hardcode the version to avoid having to deal with something set by sbt-dynver
410410
sbtPublishCommand = s"""set every version := "${Versions.munit}"; munitJVM/publishLocal; munitJS/publishLocal; munitScalacheckJVM/publishLocal; munitScalacheckJS/publishLocal; junit/publishLocal""",
411-
sbtDocCommand = "munitJVM/doc",
411+
sbtDocCommand = "junit/doc; munitJVM/doc",
412412
dependencies = List(scalacheck)
413413
)
414414

scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends DocTastyInspe
123123
val filePaths = ctx.args.tastyFiles.map(_.getAbsolutePath).toList
124124
val classpath = ctx.args.classpath.split(java.io.File.pathSeparator).toList
125125

126-
inspectFilesInContext(classpath, filePaths)
126+
if filePaths.nonEmpty then inspectFilesInContext(classpath, filePaths)
127127

128128
val all = topLevels.result()
129129
all.groupBy(_._1).map { case (pckName, members) =>

0 commit comments

Comments
 (0)