Skip to content
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

Can't use breeze is Scala 3.1.0 #835

Closed
Swoorup opened this issue Jan 13, 2022 · 8 comments
Closed

Can't use breeze is Scala 3.1.0 #835

Swoorup opened this issue Jan 13, 2022 · 8 comments

Comments

@Swoorup
Copy link

Swoorup commented Jan 13, 2022

When I try to use this library in Scala 3 I get the following issue:

I am using cats-effect, spire already as is. Not sure if the cross-compilation is setup correctly.

error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/Users/swoorup.joshi/personal/finflow-scala/"), "common"):
[error]    org.typelevel:spire-util _3, _2.13
[error]    org.scala-lang.modules:scala-collection-compat _3, _2.13
[error]    org.typelevel:algebra _3, _2.13
[error]    org.typelevel:spire-platform _3, _2.13
[error]    org.typelevel:spire _3, _2.13
[error]    org.typelevel:cats-kernel _3, _2.13
[error]    org.typelevel:spire-macros _3, _2.13
[error] stack trace is suppressed; run last common / update for the full output
[error] (common / update) Conflicting cross-version suffixes in: org.typelevel:spire-util, org.scala-lang.modules:scala-collection-compat, org.typelevel:algebra, org.typelevel:spire-platform, org.typelevel:spire, org.typelevel:cats-kernel, org.typelevel:spire-macros
[error] Total time: 3 s, completed 13 Jan. 2022, 6:04:14 pm
sbt:root> 
@Swoorup
Copy link
Author

Swoorup commented Jan 13, 2022

Can be fixed by #833

@dlwh dlwh closed this as completed Aug 22, 2022
@Swoorup
Copy link
Author

Swoorup commented Aug 22, 2022

Hi @dlwh Any chance for a new release? The last version in scaladex appears to be 10 months ago.
https://index.scala-lang.org/scalanlp/breeze/artifacts/breeze?binary-versions=_3#

@dlwh
Copy link
Member

dlwh commented Aug 22, 2022 via email

@dlwh
Copy link
Member

dlwh commented Aug 22, 2022

Ok 2.1.0 should be hitting central as we speak.

@Swoorup
Copy link
Author

Swoorup commented Aug 22, 2022

Awesome

@philwalk
Copy link
Contributor

philwalk commented Sep 13, 2022

Not sure why, but I'm getting what appears to be this error when I try to upgrade breeze version from "2.0.1-RC2" to "2.1.0".
On the off chance that someone can see a relevant clue in my stack dump:

My build compiles for "2.13.8" and "3.2.0", and there's no problem with the scala2 build. Here's what happens during the scala3 compile:

[error] java.lang.RuntimeException: Conflicting cross-version suffixes in: org.typelevel:cats-kernel
[error]         at scala.sys.package$.error(package.scala:30)
[error]         at sbt.librarymanagement.ConflictWarning$.processCrossVersioned(ConflictWarning.scala:39)
[error]         at sbt.librarymanagement.ConflictWarning$.apply(ConflictWarning.scala:19)
[error]         at sbt.Classpaths$.$anonfun$ivyBaseSettings$71(Defaults.scala:3204)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]         at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error]         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error]         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error]         at java.base/java.lang.Thread.run(Thread.java:834)
[error] (apps / update) Conflicting cross-version suffixes in: org.typelevel:cats-kernel
[error] Total time: 2 s, completed Sep 13, 2022, 1:42:13 PM

I verified that the transitive dependency on spire is from breeze.

@dlwh
Copy link
Member

dlwh commented Oct 11, 2022 via email

@philwalk
Copy link
Contributor

Can you use one of the SBT dependency tree plugins that are out there different the dependency graph I suspect the conflict will be pretty clear in there

Wow, thanks! I did try that previously, but this time it showed that I have a conflict with circe, which requires an older version of cats-kernel.

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

3 participants