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 generates incorrect source links to Java source files #5388
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5388?orig=1 |
@SethTisue said: |
This issue affects the scaladoc of scalac itself: http://www.scala-lang.org/api/2.12.4/scala-compiler/scala/tools/nsc/profile/ExternalToolHook.html points to https://github.com/scala/scala/tree/v2.12.4/src/compiler/scala/tools/nsc/profile/ExternalToolHook.java.scala#L1 |
Introduces new variables for -doc-source-url FILE_PATH_EXT - same as FILE_PATH, but including the file extension (which might be .java) FILE_EXT - the file extension (.scala or .java) FILE_LINE - containing the line number of the Symbol Fixes FILE_PATH to never contain the file extension (see scala/bug#5388)
Introduces new variables for -doc-source-url FILE_PATH_EXT - same as FILE_PATH, but including the file extension (which might be .java) FILE_EXT - the file extension (.scala or .java) FILE_LINE - containing the line number of the Symbol Fixes FILE_PATH to never contain the file extension (see scala/bug#5388)
…o source Introduces new variables for -doc-source-url FILE_PATH_EXT - same as FILE_PATH, but including the file extension (which might be .java) FILE_EXT - the file extension (.scala or .java) FILE_LINE - containing the line number of the Symbol Fixes FILE_PATH to never contain the file extension (see scala/bug#5388)
scala/scala#7532 (2.13), scala/scala#7559 (2.12) Enno thanks for fixing the bug I reported in 2012 :-) |
in ModelFactory.sourceUrl, it does .stripSuffix(".scala") , so when you specify -doc-source-url when calling Scaladoc you have to add the .scala back in to the URL, except then that means any links to Java source files end up as ".java.scala" instead of just ".java"
The text was updated successfully, but these errors were encountered: