scala / scala3

The Scala 3 compiler, also known as Dotty.
https://dotty.epfl.ch
Apache License 2.0
5.88k stars 1.06k forks source link

Scaladoc does not give source reference for missing DRI in file specified by -doc-root-content #13874

Closed jphmrst closed 3 years ago

jphmrst commented 3 years ago

Compiler version

3.1.0

Minimized code

In build.sbt

Compile / doc / scalacOptions ++= Seq(
  "-doc-root-content", "rootdoc.txt"
)

In rootdoc.txt

I'm a little [[org.teapot]]

Output

From SBT

[info] Main Scala API documentation to /home/jm/tmp/tmp/target/scala-3.1.0/api...
[warn] No DRI found for query: org.teapot
[warn] one warning found
[info] Main Scala API documentation successful.
[success] Total time: 0 s, completed Nov 3, 2021, 10:35:14 PM

Expectation

It should mention that the problem is in the rootdoc.txt file.

raquo commented 3 years ago

Relatedly, how do I silence this "No DRI found for query" warning? I think previous versions had "-no-link-warnings" option, but it doesn't seem to silence this warning anymore.

pikinier20 commented 3 years ago

Relatedly, how do I silence this "No DRI found for query" warning? I think previous versions had "-no-link-warnings" option, but it doesn't seem to silence this warning anymore.

Hey, I tried to reproduce your problem on newest master snapshot as well as on 3.1.0 and it seems that flag -no-link-warnings works well on both versions. Could you check your configuration once more and if the problem remains, write here the sbt config?