-
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
Scaladoc: fails to generate doc for ScAS #21662
Comments
I'd say we need a minimised example to work on this. |
trait Monoid[T]:
extension (a: T)
def \:[U](b: U) = ???
|
This one fails too: trait C[T]
trait Equiv[T]:
extension[U: C] (x: U)
def ><[V](y: V) = ???
|
I think these are the two sole problems. Other than that, my doc generation will be fine. What would be cool is if parsing problems did not propagate, that is, currently if one class has a problem then all its subclasses too, transitively. This makes it hard to point it. |
Both minimized examples seem to generate scaladoc for 3.3.0 and then break for 3.3.1+. scala-cli doc repro.scala -S 3.3.0
# Following generated file paths might not be compatible with Jekyll:
# _empty_/Equiv
# _empty_/C
# If using GitHub Pages consider adding a ".nojekyll" file.
# Wrote Scaladoc to ./scala-doc |
org.scala-lang#scaladoc_3;3.3.1-RC1-bin-20230202-af95ceb-NIGHTLY : no error in between : introduction of clause interleaving. Cc @Sporarum |
The error message:
|
This issue is already assigned to Mikołaj, so I'll let him have a look, but I am happy to help if needed 🙂 |
Compiler version
3.5.1
Minimized code
Output
Expectation
It would be good to at least uncomment
e.printStackTrace()
in dotty/scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala (and put it under a flag eventually), so as to know more about the problem.The text was updated successfully, but these errors were encountered: