Giter VIP home page Giter VIP logo

Comments (4)

adpi2 avatar adpi2 commented on August 25, 2024

Hello @nkcoder

This error means that some dependencies are declared twice, directly or transitively, on 2 different Scala versions. This is not valid, so you need to fix this problem before continuing the migration.

Here for instance, specs2-cats_2.13 depends on cats-effect_2.13 but cats-effect_3 is also declared. It would be better to use specs2-cats_3 by declaring:

"orgs.specs2" %% "specs2-cats" % "1.0.0-ALPHA-01"

instead of

"orgs.specs2" %% "specs2-cats" % "1.0.0-ALPHA-01" cross CrossVersion.fro3Use2.13

Unfortunately circe-generic-extra is not available for Scala 3, so you should maybe try to remove that dependency.

from scala3-migrate.

adpi2 avatar adpi2 commented on August 25, 2024

In general it is better not to use CrossVersion.for3Use2_13

from scala3-migrate.

nkcoder avatar nkcoder commented on August 25, 2024

Hi @adpi2, CrossVersion.for3Use2_13 is the output/suggestion of migrate-libs project_id, why shouldn't use it?

from scala3-migrate.

adpi2 avatar adpi2 commented on August 25, 2024

The tool should recommend it only if there is no Scala 3 compatible versions. It is a last resort and it does not give any guarantee that it will work.

In your case circe-generic-extras and specs2-mock are not published for Scala 3, so the tool suggests to use CrossVersion.for3Use2_13. Unfortunately it cannot work because they depend respectively on circe-core and specs2-core which are published for Scala 3. This problem is briefly explained here:

This is permitted as long as all libraries are resolved to a single binary version: you can have lib-foo_3 and lib-bar_2.13 in the same classpath, but you cannot have lib-foo_3 and lib-foo_2.13.

from scala3-migrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.