Skip to content

pre-2.13.15 regression: phase assembly related failure during Scaladoc generation in Scala.js repo #13028

@SethTisue

Description

@SethTisue

as reported to me by @sjrd

repro steps: clone scala-js/scala-js

apply this patch in order not to run afoul of scala/scala#10727:

--- library/src/main/scala/scala/scalajs/js/Error.scala
+++ library/src/main/scala/scala/scalajs/js/Error.scala
@@ -46,7 +46,7 @@ object Error extends js.Object {
  */
 @js.native
 @JSGlobal
-class AggregateError(errors: js.Iterable[scala.Any], message: String = "") extends js.Error {
+class AggregateError(_errors: js.Iterable[scala.Any], message: String = "") extends js.Error {

then:

  • start sbt
  • set ThisBuild / resolvers += "integration" at "https://scala-ci.typesafe.com/artifactory/scala-integration/"
  • set ThisBuild / cross213ScalaVersions += "2.13.15-bin-52b2013"
  • library2_13/doc

and you get:

[info] Main Scala API documentation to /Users/tisue/scala-js/library/.2.13/target/scala-2.13/api...
[error] No phase `pickler` for jsinterop.runsBefore
[error] one error found
[error] stack trace is suppressed; run last library2_13 / Compile / doc for the full output
[error] (library2_13 / Compile / doc) Scaladoc generation failed

fyi @lrytz @som-snytt — looks like we need to do some further adjusting in the vein of scala/scala#10807

Seb knows how to work around it for Scala.js in particular if he must, but I'm proposing we consider it a blocker for the release because other compiler plugins might be affected (we do have the most popular ones in the community build, but lord knows what else is out there) and because it actually is a bug on our end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions