Skip to content

Loading project definition for scala 3 project fails when switching from 2.0.0 to 2.0.4 #463

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

Closed
rolman243 opened this issue Sep 28, 2022 · 2 comments

Comments

@rolman243
Copy link

sbt version: 1.7.1
scala version: 3.2.0

When switching to sbt-scoverage 2.0.4 sbt fails to load build.sbt with the following error:

[error] Couldn't run bloopGenerate for foundation-lib-3-build. Cause:
[error] Incomplete(node=Some(Task(_)), tpe=Error, msg=None, causes=List(Incomplete(node=Some(Task((taskDefinitionKey: ScopedKey(Scope(Select(ProjectRef(file:/home/rm/devel/obi/shared/foundation-lib-3/project/,foundation-lib-3-build)), Zero, Zero, Zero),update)))), tpe=Error, msg=None, causes=List(Incomplete(node=Some(Task((tags: Map(Tag(update) -> 1, Tag(network) -> 1), taskDefinitionKey: ScopedKey(Scope(Select(ProjectRef(file:/home/rm/devel/obi/shared/foundation-lib-3/project/,foundation-lib-3-build)), Zero, Zero, Zero),update)))), tpe=Error, msg=None, causes=List(), directCause=Some(java.lang.RuntimeException: found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[error] 
[error]         * org.scala-lang.modules:scala-xml_2.12:2.1.0 (early-semver) is selected over {1.3.0, 1.0.6, 1.2.0}
[error]             +- org.scoverage:scalac-scoverage-reporter_2.12:2.0.5 (depends on 2.1.0)
[error]             +- org.scala-sbt:testing_2.12:1.7.1                   (depends on 1.3.0)
[error]             +- org.scala-sbt:sbinary_2.12:0.5.1                   (depends on 1.0.6)
[error]             +- org.scala-sbt:main_2.12:1.7.1                      (depends on 1.3.0)
[error]             +- org.scala-sbt:librarymanagement-core_2.12:1.7.0    (depends on 1.2.0)
[error]             +- org.scala-lang:scala-compiler:2.12.16              (depends on 1.0.6)
[error]             +- io.get-coursier:lm-coursier-shaded_2.12:2.0.10     (depends on 1.3.0)

What needs to be done to get scoverage 2.0.4 working for a scala 3 project?

@ckipp01
Copy link
Member

ckipp01 commented Sep 28, 2022

Hey @rolman243. What you're hitting on actually isn't related to Scala 3, but rather the scala-xml version. You can find some more context to this issue and also a workaround in here. Feel free to comment back if you're still stuck.

@ckipp01 ckipp01 closed this as completed Sep 28, 2022
@rolman243
Copy link
Author

@ckipp01 Thanks for your super fast response. My build loads again :) Maybe the scala Issue should be linked to the README.md? Even though I googled a lot I haven't found it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants