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

Error on conflicting cats versions #256

Closed
cquiroz opened this issue Feb 6, 2018 · 6 comments
Closed

Error on conflicting cats versions #256

cquiroz opened this issue Feb 6, 2018 · 6 comments

Comments

@cquiroz
Copy link

cquiroz commented Feb 6, 2018

I'm facing this exception due to conflicts on cats versions:

This is observed with sbt-microsites 0.7.15

[error] java.lang.NoSuchMethodError: cats.instances.package$list$.catsStdInstancesForList()Lcats/TraverseFilter;
[error] 	at sbtorgpolicies.io.FileWriter.copyMultipleFiles$1(FileWriter.scala:85)
[error] 	at sbtorgpolicies.io.FileWriter.$anonfun$copyFilesRecursively$2(FileWriter.scala:89)
[error] 	at scala.util.Either.flatMap(Either.scala:338)
[error] 	at sbtorgpolicies.io.FileWriter.copyFilesRecursively(FileWriter.scala:88)
[error] 	at microsites.util.MicrositeHelper.createResources(MicrositeHelper.scala:68)
[error] 	at microsites.MicrositeAutoImportSettings.$anonfun$micrositeTasksSettings$1(MicrositeKeys.scala:242)

It seems this is due to org-policies-core which still uses cats 0.9.0

[warn] 	* org.typelevel:cats-core_2.12:1.0.1 is selected over {0.9.0, 1.0.0}
[warn] 	    +- org.typelevel:cats-effect_2.12:0.8                 (depends on 1.0.1)
[warn] 	    +- io.github.cquiroz:kuyfi_2.12:0.8.2                 (depends on 1.0.1)
[warn] 	    +- org.tpolecat:atto-core_2.12:0.6.1                  (depends on 1.0.0)
[warn] 	    +- org.typelevel:mouse_2.12:0.15                      (depends on 1.0.0)
[warn] 	    +- org.typelevel:cats-laws_2.12:0.9.0 ()              (depends on 0.9.0)
[warn] 	    +- org.typelevel:cats_2.12:0.9.0 ()                   (depends on 0.9.0)
[warn] 	    +- org.typelevel:cats-jvm_2.12:0.9.0 ()               (depends on 0.9.0)
[warn] 	    +- com.47deg:org-policies-core_2.12:0.8.17 ()         (depends on 0.9.0)
@jaksah
Copy link

jaksah commented Feb 22, 2019

This happens for me as well after adding sbt-bloop:1.2.5 plugin

@calvellido
Copy link
Contributor

Sadly, this is a long-standing issue that, after some other attempts, we only could get rid off by stopping depending on sbt-org-policy, which is not an easy task.

@Krever
Copy link

Krever commented Feb 25, 2019

Is there any workaround for this?

@juanpedromoreno
Copy link
Member

Yes, hopefully, we get a fix soon. I'll let you know.

@juanpedromoreno
Copy link
Member

FYI: @cquiroz @jaksah @Krever The new version of the plugin, 0.9.0 fixes the issue.

@Krever
Copy link

Krever commented Feb 26, 2019 via email

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

5 participants