-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dottydoc fails to read scala.scalajs.js.Promise.then symbol in 3.1.0 and 3.0.2 #14143
Comments
Yes, we had a problem with documenting scala.js projects on 3.0.2. Could you please check if the problem remains on 3.1.0? IIRC in this version we added the support for scala.js then. |
3.1.0 seems to be the same:
|
I've done some debugging and it seems that this problem is not directly related to Scaladoc. The error comes from |
I would like to mention here that I found solution for this issue. You just need to bump sbt to at least 1.5.3 and Scala to at least 3.1.0. The code snippet that you pasted compiles successfully with this configuration. |
Thanks for looking at this, @pikinier20, and sorry it turned out to be a non-issue. From what you've said about the scalac options, I was able to piece together what's wrong with my code: a few months ago, back when 3.0.0 was first released, dottydoc did not support scala.js, so I used the workaroud suggested here which removed unsupported options from the doc command, including That lack of scalajs option didn't really register with me as something that would cause a problem because everything was apparently working fine without it (I didn't actually look at the output of The error I reported only started recently, when I started using the |
This seems similar to #11943 but that issue was closed a while ago saying that "this should be fixed in 3.0.1-RC1 / sbt 1.5.3". I use higher versions than those, but I'm still running into it (or a separate, similar issue).
Compiler version
Scala 3.0.2
Scala.js 1.8.0
sbt 1.5.3, 1.5.7, 1.6.0-RC2
Minimized example
Output
sbt doc
:Expectation
Since the code compiles, it should be doc-ed without error. Scala 2.13.7 produces no error.
EDIT: original text of the issue had a bit of mismatch between two test runs, I fixed it now.
The text was updated successfully, but these errors were encountered: