Skip to content

DottyDoc generation fails: undefined ... at readTasty #12692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
japgolly opened this issue Jun 3, 2021 · 2 comments
Closed

DottyDoc generation fails: undefined ... at readTasty #12692

japgolly opened this issue Jun 3, 2021 · 2 comments

Comments

@japgolly
Copy link
Contributor

japgolly commented Jun 3, 2021

Compiler version

3.0.0

Reproduction

git clone https://github.com/japgolly/scalajs-react.git
cd scalajs-react
git checkout 5641c262296e2831d6fec9ff4106e91ad2dfef58
sbt doc

Output

[warn] Setting -bootclasspath is currently not supported.
[warn] Setting -bootclasspath is currently not supported.
[warn] one warning found
[error] -- Error: core/src/main/scala-3/japgolly/scalajs/react/AsyncCallback.scala:220:6 
[error] 220 |      pa.`then`[Unit](ok, ko: js.Function1[Any, R])
[error]     |      ^^^^^^^^^^^^^^
[error]     |undefined: pa.then # -1: TermRef(AppliedType(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class scalajs)),object js),trait Thenable),List(TypeRef(NoPrefix,type A))),then) at readTasty
[info] Main Scala API documentation successful.
[error] -- Error: core/src/main/scala/japgolly/scalajs/react/internal/JsUtil.scala:41:27 
[error] 41 |      case s: String    => js.JSON.stringify(s)
[error]    |                           ^^^^^^^^^^^^^^^^^^^
[error]    |undefined: scala.scalajs.js.JSON.stringify # -1: TermRef(TermRef(TermRef(ThisType(TypeRef(NoPrefix,module class scalajs)),object js),object JSON),stringify) at readTasty
[warn] one warning found
[error] two errors found
[error] (core / Compile / doc) DottyDoc Compilation Failed
@griggt
Copy link
Contributor

griggt commented Jun 3, 2021

Duplicate of #11943.

I believe it should be fixed with the combination of 3.0.1-RC1 and sbt 1.5.3.

@griggt griggt closed this as completed Jun 3, 2021
@japgolly
Copy link
Contributor Author

japgolly commented Jun 3, 2021

Oh whoops, sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants