-
-
Notifications
You must be signed in to change notification settings - Fork 369
Description
If I try and import the cats library (there might be others) I get the error below and afterwards my Ivy cache is corrupted and SBT fails when I run sbt update - specifically the scala and sbt libraries are corrupted and fails with
org.scala-lang#scala-library;2.11.8: configuration not found in org.scala-lang#scala-library;2.11.8: 'master(compile)'. Missing configuration: 'compile'.
If I delete scala and scala sbt libs from the ivy cache and they are downloaded again SBT works again.
I have tested this repeatedly and the behaviour is consistent. I am using ammonite repl 0.7.7.
import $ivy.org.typelevel::cats:0.7.2`, cats._
:: resolving dependencies :: org.typelevel#cats_2.11-caller;working
confs: [default]
found org.typelevel#cats_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats_2.11;0.7.2
found org.scala-lang#scala-library;2.11.8 in m2
found org.typelevel#cats-macros_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-macros_2.11;0.7.2
found com.github.mpilquist#simulacrum_2.11;0.8.0 in chain-resolver
found org.typelevel#macro-compat_2.11;1.1.1 in chain-resolver
found org.typelevel#machinist_2.11;0.4.1 in chain-resolver
found org.scala-lang#scala-reflect;2.11.7 in m2
found org.typelevel#cats-kernel_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-kernel_2.11;0.7.2
found org.typelevel#cats-kernel-laws_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-kernel-laws_2.11;0.7.2
found org.scalacheck#scalacheck_2.11;1.12.5 in chain-resolver
found org.scala-sbt#test-interface;1.0 in m2
found org.typelevel#discipline_2.11;0.4 in chain-resolver
found org.typelevel#catalysts-platform_2.11;0.0.2 in chain-resolver
[0.0.2] org.typelevel#catalysts-platform_2.11;0.0.2
found org.typelevel#catalysts-macros_2.11;0.0.2 in chain-resolver
[0.0.2] org.typelevel#catalysts-macros_2.11;0.0.2
found org.typelevel#cats-core_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-core_2.11;0.7.2
found org.typelevel#cats-laws_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-laws_2.11;0.7.2
found org.typelevel#cats-free_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-free_2.11;0.7.2
found org.typelevel#cats-jvm_2.11;0.7.2 in chain-resolver
[0.7.2] org.typelevel#cats-jvm_2.11;0.7.2
ammonite.runtime.tools.IvyThing$IvyResolutionException: failed to resolve ivy dependencies unresolved dependency: org.scala-lang#scala-library;2.11.8: configuration not found in org.scala-lang#scala-library;2.11.8: 'master(compile)'. Missing configuration: 'compile'. It was required from org.typelevel#cats-jvm_2.11;0.7.2 compile, unresolved dependency: org.scala-lang#scala-reflect;2.11.7: configuration not found in org.scala-lang#scala-reflect;2.11.7: 'master(compile)'. Missing configuration: 'compile'. It was required from org.typelevel#machinist_2.11;0.4.1 compile, unresolved dependency: org.scala-sbt#test-interface;1.0: configuration not found in org.scala-sbt#test-interface;1.0: 'master(compile)'. Missing configuration: 'compile'. It was required from org.scalacheck#scalacheck_2.11;1.12.5 compile
ammonite.runtime.tools.IvyThing.resolveArtifact(IvyThing.scala:108)
ammonite.runtime.Interpreter.loadIvy(Interpreter.scala:592)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$resolve$2.liftedTree1$1(ImportHook.scala:166)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$resolve$2.apply(ImportHook.scala:166)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$resolve$2.apply(ImportHook.scala:160)
ammonite.util.Res$Success.flatMap(Res.scala:57)
ammonite.runtime.ImportHook$BaseIvy.resolve(ImportHook.scala:160)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$handle$4$$anonfun$apply$3.apply(ImportHook.scala:175)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$handle$4$$anonfun$apply$3.apply(ImportHook.scala:175)
ammonite.util.Res$$anonfun$1.apply(Res.scala:33)
ammonite.util.Res$$anonfun$1.apply(Res.scala:30)
scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
scala.collection.immutable.List.foldLeft(List.scala:84)
ammonite.util.Res$.map(Res.scala:30)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$handle$4.apply(ImportHook.scala:175)
ammonite.runtime.ImportHook$BaseIvy$$anonfun$handle$4.apply(ImportHook.scala:174)
ammonite.util.Res$Success.flatMap(Res.scala:57)
ammonite.runtime.ImportHook$BaseIvy.handle(ImportHook.scala:174)
ammonite.runtime.Interpreter$$anonfun$resolveSingleImportHook$3.apply(Interpreter.scala:151)
ammonite.runtime.Interpreter$$anonfun$resolveSingleImportHook$3.apply(Interpreter.scala:150)
ammonite.util.Res$Success.flatMap(Res.scala:57)
ammonite.runtime.Interpreter.resolveSingleImportHook(Interpreter.scala:150)
ammonite.runtime.Interpreter$$anonfun$resolveImportHooks$2.apply(Interpreter.scala:199)
ammonite.runtime.Interpreter$$anonfun$resolveImportHooks$2.apply(Interpreter.scala:199)
ammonite.util.Res$$anonfun$1.apply(Res.scala:33)
ammonite.util.Res$$anonfun$1.apply(Res.scala:30)
scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:57)
scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:66)
scala.collection.mutable.ArrayBuffer.foldLeft(ArrayBuffer.scala:48)
ammonite.util.Res$.map(Res.scala:30)
ammonite.runtime.Interpreter.resolveImportHooks(Interpreter.scala:199)
ammonite.runtime.Interpreter$$anonfun$processLine$2.apply(Interpreter.scala:213)
ammonite.runtime.Interpreter$$anonfun$processLine$2.apply(Interpreter.scala:209)
ammonite.util.Catching.flatMap(Res.scala:108)
ammonite.runtime.Interpreter.processLine(Interpreter.scala:209)
ammonite.repl.Repl$$anonfun$action$4$$anonfun$apply$2.apply(Repl.scala:88)
ammonite.repl.Repl$$anonfun$action$4$$anonfun$apply$2.apply(Repl.scala:87)
ammonite.repl.Scoped$$anonfun$flatMap$1.apply(Signaller.scala:44)
ammonite.repl.Signaller.apply(Signaller.scala:29)
ammonite.repl.Scoped$class.flatMap(Signaller.scala:44)
ammonite.repl.Signaller.flatMap(Signaller.scala:11)
ammonite.repl.Repl$$anonfun$action$4.apply(Repl.scala:87)
ammonite.repl.Repl$$anonfun$action$4.apply(Repl.scala:74)
ammonite.util.Res$Success.flatMap(Res.scala:57)
ammonite.repl.Repl.action(Repl.scala:74)
ammonite.repl.Repl.loop$1(Repl.scala:98)
ammonite.repl.Repl.run(Repl.scala:117)
ammonite.Main.run(Main.scala:108)
ammonite.Main$$anonfun$main$1$$anonfun$apply$1.apply(Main.scala:249)
ammonite.Main$.ammonite$Main$$ifContinually$1(Main.scala:228)
ammonite.Main$$anonfun$main$1.apply(Main.scala:230)
ammonite.Main$$anonfun$main$1.apply(Main.scala:230)
scala.Option.foreach(Option.scala:257)
ammonite.Main$.main(Main.scala:230)
ammonite.Main.main(Main.scala:-1)
`