-
Notifications
You must be signed in to change notification settings - Fork 155
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
sbt-scoverage 2.0.0 fails on Windows with [error] bad option: -P:scoverage:
errors
#440
Labels
Comments
guizmaii
added a commit
to guizmaii/sbt-scoverage
that referenced
this issue
Jun 28, 2022
Closed
stevedlawrence
added a commit
to stevedlawrence/sbt-scoverage
that referenced
this issue
Sep 28, 2022
The -Xplugin option expects a classpath string with multiple paths separated by a semicolon or colon depending on this operating system. However, this currently always uses a colon, which doesn't work on windows. This means scalac cannot find the scoverage plugin jars and leads to errors about "bad options". This modifies the -Xplugin logic to use File.pathSeparator when building the Xplugin classpath, allowing it to work regardless of operating system. Closes scoverage#440
stevedlawrence
added a commit
to stevedlawrence/sbt-scoverage
that referenced
this issue
Oct 18, 2022
The -Xplugin option expects a classpath string with multiple paths separated by a semicolon or colon depending on this operating system. However, this currently always uses a colon, which doesn't work on windows. This means scalac cannot find the scoverage plugin jars and leads to errors about "bad options". This modifies the -Xplugin logic to use File.pathSeparator when building the Xplugin classpath, allowing it to work regardless of operating system. Also modifies excludedPackages when on windows to replace unix file separators with escaped windows file separators. Modifies tests to remove unnecessary escaping of unix separators. Closes scoverage#440
Closed with #465 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have CIs running on Linux, macOS and Windows.
Since we updated to sbt-scoverage 2.0.0, we have the following error at compile time on Windows when we run the
sbt 'clean;coverage;test;coverageReport'
command:The same sbt command on Linux and macOS works normally.
Could it be because of the
/scoverage-data
inscoverage:dataDir:D:\a\project-name\project-name\modules\common\target\scala-2.13/scoverage-data
which should be\scoverage-data
on Windows 🤔The text was updated successfully, but these errors were encountered: