Skip to content

Scaladoc: Doctool doesn't include -scalajs flag to compile TASTY files of JSProject #12298

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
pikinier20 opened this issue Apr 30, 2021 · 0 comments · Fixed by #12364
Closed

Comments

@pikinier20
Copy link
Contributor

This is summary bug report that covers #12215 and #11943. The reason of failures while documenting these projects is that Scaladoc tries to compile TASTY files but doesn't set -scalajs flag which seems to be mandatory while compiling JS projects.

There was a test made by me:

  1. Set a basic sbt project with JS target.
  2. Add minimized source proposed by @griggt in Dottydoc fails to read symbol in scalajs project on RC2 #11943.
  3. Compile the project in order to generate .tasty file
  4. Try to sbt doc this source <- Compilation error
  5. Try to compile generated .tasty file with scalac with set -scalajs and with scalajs library on classpath <- Compilation success
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants