-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix function classpathArgs() #14559
Fix function classpathArgs() #14559
Conversation
The CI error seems unrelated to the changes of this PR:
|
@anatoliykmetyuk |
Hmm the reason of this error is that classpath of script is different than classpath that is used to run Scaladoc in SBT. Because of that, there are differences in inkuire-db.json. |
Not sure you get the point : here we are talking about the Scala 3 shell scripts (resp. batch files on MS Windows) the end-user executes from the command prompt (nothing to do with Concretely we need function |
@pikinier20 Addendum (to be even more concrete) : |
The test that is failing is comparing documentation of our test project generated with script and with sbt. The test fails so the output of script differs from the output of sbt task. The only thing that changed is classpath so I'm assuming that the classpath used in script is different from the classpath that is set in sbt when running Scaladoc task. I think I've added the |
@Kordyjan @anatoliykmetyuk It's a pitty that this PS. As Windows user I will have to manually patch batch file |
Unfortunately, we can't merge PRs that don't pass the CI. According to what @pikinier20 says, it seems the CI failure is not spurious and is related to the PR. So it needs to be addressed first. |
@Kordyjan @anatoliykmetyuk Ok for backporting this tiny PR to PS. Thanks again to @griggt for his help. |
It will definitely be included in 3.1.3-RC1. |
(cc @SethTisue)
Both commands
scaladoc
andscaladoc.bat
rely on functionclasspathArgs()
to get their class path.Thanks to a tiny difference in behaviour between bash script
scaladoc
and batch filescaladoc.bat
(I wrote the batch file and I mostly work with Scala batch commands on MS Windows 10) I get an execution error due to the absence of library fileST4-4.0.7.jar
in version 3.1.2-RC1. With my change on line 154 in batch filescaladoc.bat
I do align its behaviour with its bash counterpart.Important: This PR assumes that
ST4-4.0.7.jar
is not used anymore in versions 3.1.2-RC1 and newer.PS. This issue is another example that underpins my motivation for the discussion External library management (started on October 22, 2021).