-
Notifications
You must be signed in to change notification settings - Fork 21
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 external references JDK11 #11839
Comments
A git bisect tracks it down to scala/scala#7782 It could be. There is a reference to |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is a difficult problem to work on because there isn't a good testing story with Scaladoc in the Scala build, and even more the case for JDK11 issues. |
Oh, the |
Is the lack of unit tests laziness, or difficulty? |
Yes, it is perhaps both. I'd phrase it that the Scaladoc is not a priority compared to the compiler or the standard library. However, it is also a complex tool that is difficult to test. |
Alright, another attempt. steven-barnes/scala@d2ec0a5 I can attempt to write tests for some of this. Also test suites could be run with different JDKs, using a tool such as Jenkins |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@retronym wrote the following proposal in scala/scala#8647:
|
The current proposal by Jason above for The |
leaving the issue open because the linked PR (merged now for 2.13.2) only supports mappings to the |
It has been a while, but I believe it works with any JDK module.
…Sent from my iPhone
On Apr 16, 2020, at 6:55 AM, Seth Tisue ***@***.***> wrote:
leaving the issue open because the linked PR only supports mappings to the java.base module, so we're not all the way to a complete fix yet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@ashawley also didn't seem completely sure one way or the other. can somebody actually confirm? |
I'm suggesting Scaladoc should support multiple mappings to modules, not just one mapping. |
I have a lot of time on my hands now. If you write up a spec, then I can implement it. Or work on some other issue.
… On Apr 16, 2020, at 7:29 AM, Aaron S. Hawley ***@***.***> wrote:
I'm suggesting Scaladoc should support multiple mappings to modules, not just one mapping.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#11839 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJFBLGUXDRMVEQ5R77VPCE3RM4I3JANCNFSM4KAFOAGQ>.
|
It would be nice to have the apiMappings work as it used to in 2.12 (see bug description and the example code repo). Whether that's even possible after the change in 16a3216, I'm not sure. |
There a report #11955 that says Scala 2.13.2 produces "java.net.URISyntaxException: Illegal character in path at index 53: https://docs.oracle.com/en/java/javase/11/docs/api/C:\opt\jdk\jmods\java.base/java/io/Serializable.html". Not sure if OP is using |
I can look at this, however I do not have a Windows machine.
… On Apr 24, 2020, at 11:05 AM, eugene yokota ***@***.***> wrote:
There a report #11955 <#11955> that says Scala 2.13.2 produces "java.net.URISyntaxException: Illegal character in path at index 53: https://docs.oracle.com/en/java/javase/11/docs/api/C:\opt\jdk\jmods\java.base/java/io/Serializable.html <https://docs.oracle.com/en/java/javase/11/docs/api/C:%5Copt%5Cjdk%5Cjmods%5Cjava.base/java/io/Serializable.html>".
Not sure if OP is using apiMappings, but it seems like java.base isn't working?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#11839 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJFBLGUC7MKBHLLJFQFUR6LROHIHBANCNFSM4KAFOAGQ>.
|
Eyeballing the code, this is probably the issue: This needs to be "\" on Windows. java.io.File.separator would work My apologies, but lacking a Windows machine, I cannot test this |
Careful, split takes a regex. You need to quote it. |
Ah yes, the famous quadruple-backslash regex. Thanks for catching that. |
fixed by scala/scala#8663 |
Linking to Javadoc with JDK11 doesn't work in Scala 2.13.0-RC1 and later.
This is a
build.sbt
:A simple Scala file,
A.scala
:Running
doc
in sbt:Repository with minimal example:
https://github.com/ashawley/scala-issue-11839
The text was updated successfully, but these errors were encountered: