Closed unkarjedy closed 8 months ago
Noticed while fixing https://youtrack.jetbrains.com/issue/SCL-20892
Hello @unkarjedy, during my research on your problem, with @ckipp01, we noticed that the comment deletion as in your example was not done during the generation of Scaladoc but well before.
As you can see in the screenshot below, the comment is not already present in the TASTY file of our code. So when our scaladoc is generated with "sbt doc" for example, it already has no idea of the existence of this comment, which makes the warning at scaladoc generation time impossible.
One of the secondary solutions would be to send a warning when the comment is deleted at compile time, but this is no longer relevant to the generation of the scaladoc.
Compiler version
Minimized code
Run
sbt doc
Notice that no documentation will be generated forMyCase2
andMyCase3
:This is kinda expected (to some degree), for example because scala doc could contain references to parameters and type parameters:
Expectation
At least some warning should be printed during
sbt doc
. Something like "Scaladoc at position ... was ignored because..."Actual result
The comment is silently ignored without any warning