Comments (4)
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.
In general it is better not to use CrossVersion.for3Use2_13
from scala3-migrate.
Hi @adpi2, CrossVersion.for3Use2_13
is the output/suggestion of migrate-libs project_id
, why shouldn't use it?
from scala3-migrate.
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)
- Add the crossVersion syntax for migrate-libs HOT 1
- Be able to specify the configuration name when running migrate commands
- Task "migrate-syntax" fails due to colons within path strings on Windows HOT 3
- Changes not saved to build HOT 5
- migrate-libs -> 2 versions of the same dependency HOT 2
- Be smarter about scala.js HOT 3
- Option to not suggest 2.13 libraries HOT 2
- [help wanted] asTerm called on not-a-Term val HOT 12
- New release for RC2? HOT 4
- Java library being flagged as containing macros HOT 2
- Support RC3
- Move to 3.0.0-RC3 HOT 1
- Publishing migrate-rules as a 2.12 artifact HOT 3
- Migration failed because of null
- improve the test suite for scala-migrate to detect wrong inferred types
- confusion around necessity of adding explicit result types and implicits HOT 7
- Failed to run scalafix with ProcedureSyntax, fix.scala213.ExplicitNullaryEtaExpansion, fix.scala213.ParensAroundLambda, fix.scala213.ExplicitNonNullaryApply, fix.scala213.Any2StringAdd on because missing symbol: jdk.internal.HotSpotIntrinsicCandidate HOT 2
- SemanticDB not found HOT 1
- NoSuchElementException when running migrateTypes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala3-migrate.