-
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
URISyntaxException during publishLocal scaladoc phase #11955
Comments
The main exception seems to be:
Do you have Scaladoc that links to |
Maybe this is a variant of #11839 |
Yes, this seems quite similar to #11839 (although I didn't see a dependency on Windows builds) Here's my scaladoc, which is not a symlink: /opt/scala-2.12.11/bin/scaladoc: Bourne-Again shell script, ASCII text executable I updated the description to clarify that the error depends on jdk-11. |
The central issue, AFAIKT, seems to be that the URI is not valid, and it seems likely that the problem would only occur with a Windows build (no colons in the path, otherwise). I'll try to verify that the problem goes away in a linux build. |
Problem goes away unless build server is running Windows. I had a successful build under WSL (same Windows server, but running Ubuntu). |
I meant something like: /**
* [[java.io.Serializable]]
*/
class A I'm guessing that if someone were to reproduce this on their (Windows) machine the above would be needed. |
There is not a URISyntaxException in #11839. It has to do with JDK11, but it has to do with using apiMappings and the Java modules (JEP 261). Scaladoc just produces a warning such as "Could not find any member to link for "java.io.Serializable" and fails to produce the cross-reference hyperlink. |
There is a chance that this was broken with the changes in scala/scala#8663 though. It looks like this still needs to be reproduced, though. |
I've reproduced it on Appveyor in this repo: https://github.com/ashawley/scala-issue-11955 I know there's an Appveyor build for Scala, but maybe there's no build on JDK11 on Windows? |
what's the minimal reproduction for this? |
I believe this will fix the problem, but I have no way to test on Windows. |
I put some testing instructions on the PR in the hopes someone will volunteer to try it. |
Latest scala version has a bug [1] that breaks build on windows. [1] scala/bug#11955
Latest scala version has a bug [1] that breaks build on windows. [1] scala/bug#11955
Keep Scala at 2.13.1 due to scala/bug#11955
reproduction steps
NOTE: problem depends on jdk-11.0.6 ;
when I run sbt with jdk-8u251, the problem goes away.
sbt version seems not to matter (reproduced problem with 1.3.8 and 1.3.10).
scala build version: 2.13.2
Here's the full stackdump:
expectation
The text was updated successfully, but these errors were encountered: