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

Crash in ivy resolver #573

Closed
kiritsuku opened this Issue Mar 8, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@kiritsuku
Contributor

kiritsuku commented Mar 8, 2017

% a
Loading...
Welcome to the Ammonite Repl 0.8.2
(Scala 2.12.1 Java 1.8.0_121)
> interp.resolvers() :+= Resolver.Http("scala.meta", "https://bintray.com/scalameta/maven", Resolvers.IvyPattern, false)

> import $ivy.`org.scalameta::scalameta:1.7.0-387-abf2d2b5`
:: loading settings :: url = jar:file:/home/antoras/bin/amm!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.scalameta#scalameta_2.12-caller;working
        confs: [default]
        found org.scalameta#scalameta_2.12;1.7.0-387-abf2d2b5 in scala.meta
downloading https://bintray.com/scalameta/maven/org.scalameta/scalameta_2.12/1.7.0-387-abf2d2b5/jars/scalameta_2.12.jar ...
        [SUCCESSFUL ] org.scalameta#scalameta_2.12;1.7.0-387-abf2d2b5!scalameta_2.12.jar (576ms)
scala.reflect.internal.FatalError: Error accessing /home/antoras/.ivy2/cache/org.scalameta/scalameta_2.12/jars/scalameta_2.12-1.7.0-387-abf2d2b5.jar
  scala.tools.nsc.classpath.AggregateClassPath.$anonfun$list$1(AggregateClassPath.scala:81)
  scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
  scala.collection.Iterator.foreach(Iterator.scala:929)
  scala.collection.Iterator.foreach$(Iterator.scala:929)
  scala.collection.AbstractIterator.foreach(Iterator.scala:1406)
  scala.collection.IterableLike.foreach(IterableLike.scala:71)
  scala.collection.IterableLike.foreach$(IterableLike.scala:70)
  scala.collection.AbstractIterable.foreach(Iterable.scala:54)
  scala.collection.TraversableLike.map(TraversableLike.scala:234)
  scala.collection.TraversableLike.map$(TraversableLike.scala:227)
  scala.collection.AbstractTraversable.map(Traversable.scala:104)
  scala.tools.nsc.classpath.AggregateClassPath.list(AggregateClassPath.scala:76)
  scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:264)
  scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:213)
  scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1512)
  scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:225)
  scala.tools.nsc.Global.rootMirror$lzycompute(Global.scala:63)
  scala.tools.nsc.Global.rootMirror(Global.scala:61)
  scala.tools.nsc.Global.rootMirror(Global.scala:34)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1447)
  scala.tools.nsc.Global$Run.<init>(Global.scala:1140)
  ammonite.interp.Compiler$$anon$1.<init>(Compiler.scala:146)
  ammonite.interp.Compiler$.apply(Compiler.scala:85)
  ammonite.interp.Interpreter.init(Interpreter.scala:78)
  ammonite.interp.Interpreter.reInit(Interpreter.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$10(Interpreter.scala:174)
  ammonite.util.Res$Success.map(Res.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$6(Interpreter.scala:154)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$5(Interpreter.scala:153)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.resolveSingleImportHook(Interpreter.scala:152)
  ammonite.interp.Interpreter.$anonfun$resolveImportHooks$3(Interpreter.scala:201)
  ammonite.util.Res$.$anonfun$map$1(Res.scala:34)
  scala.collection.IndexedSeqOptimized.foldLeft(IndexedSeqOptimized.scala:56)
  scala.collection.IndexedSeqOptimized.foldLeft$(IndexedSeqOptimized.scala:64)
  scala.collection.mutable.ArrayBuffer.foldLeft(ArrayBuffer.scala:48)
  ammonite.util.Res$.map(Res.scala:31)
  ammonite.interp.Interpreter.resolveImportHooks(Interpreter.scala:201)
  ammonite.interp.Interpreter.$anonfun$processLine$3(Interpreter.scala:217)
  ammonite.util.Catching.flatMap(Res.scala:109)
  ammonite.interp.Interpreter.processLine(Interpreter.scala:211)
  ammonite.repl.Repl.$anonfun$action$6(Repl.scala:91)
  ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:44)
  ammonite.repl.Signaller.apply(Signaller.scala:29)
  ammonite.repl.Scoped.flatMap(Signaller.scala:44)
  ammonite.repl.Scoped.flatMap$(Signaller.scala:44)
  ammonite.repl.Signaller.flatMap(Signaller.scala:11)
  ammonite.repl.Repl.$anonfun$action$4(Repl.scala:90)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.repl.Repl.action(Repl.scala:77)
  ammonite.repl.Repl.loop$1(Repl.scala:101)
  ammonite.repl.Repl.run(Repl.scala:120)
  ammonite.Main.run(Main.scala:109)
  ammonite.Main$.$anonfun$main$2(Main.scala:250)
  ammonite.Main$.ifContinually$1(Main.scala:229)
  ammonite.Main$.$anonfun$main$1(Main.scala:231)
  scala.Option.foreach(Option.scala:257)
  ammonite.Main$.main(Main.scala:231)
  ammonite.Main.main(Main.scala:-1)
java.io.IOException: Error accessing /home/antoras/.ivy2/cache/org.scalameta/scalameta_2.12/jars/scalameta_2.12-1.7.0-387-abf2d2b5.jar
  scala.reflect.io.FileZipArchive.liftedTree1$1(ZipArchive.scala:129)
  scala.reflect.io.FileZipArchive.x$1$lzycompute(ZipArchive.scala:126)
  scala.reflect.io.FileZipArchive.x$1(ZipArchive.scala:123)
  scala.reflect.io.FileZipArchive.allDirs$lzycompute(ZipArchive.scala:123)
  scala.reflect.io.FileZipArchive.allDirs(ZipArchive.scala:123)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.findDirEntry(ZipArchiveFileLookup.scala:63)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.list(ZipArchiveFileLookup.scala:44)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.list$(ZipArchiveFileLookup.scala:43)
  scala.tools.nsc.classpath.ZipAndJarClassPathFactory$ZipArchiveClassPath.list(ZipAndJarFileLookupFactory.scala:47)
  scala.tools.nsc.classpath.AggregateClassPath.$anonfun$list$1(AggregateClassPath.scala:78)
  scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
  scala.collection.Iterator.foreach(Iterator.scala:929)
  scala.collection.Iterator.foreach$(Iterator.scala:929)
  scala.collection.AbstractIterator.foreach(Iterator.scala:1406)
  scala.collection.IterableLike.foreach(IterableLike.scala:71)
  scala.collection.IterableLike.foreach$(IterableLike.scala:70)
  scala.collection.AbstractIterable.foreach(Iterable.scala:54)
  scala.collection.TraversableLike.map(TraversableLike.scala:234)
  scala.collection.TraversableLike.map$(TraversableLike.scala:227)
  scala.collection.AbstractTraversable.map(Traversable.scala:104)
  scala.tools.nsc.classpath.AggregateClassPath.list(AggregateClassPath.scala:76)
  scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:264)
  scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:213)
  scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1512)
  scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:225)
  scala.tools.nsc.Global.rootMirror$lzycompute(Global.scala:63)
  scala.tools.nsc.Global.rootMirror(Global.scala:61)
  scala.tools.nsc.Global.rootMirror(Global.scala:34)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1447)
  scala.tools.nsc.Global$Run.<init>(Global.scala:1140)
  ammonite.interp.Compiler$$anon$1.<init>(Compiler.scala:146)
  ammonite.interp.Compiler$.apply(Compiler.scala:85)
  ammonite.interp.Interpreter.init(Interpreter.scala:78)
  ammonite.interp.Interpreter.reInit(Interpreter.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$10(Interpreter.scala:174)
  ammonite.util.Res$Success.map(Res.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$6(Interpreter.scala:154)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$5(Interpreter.scala:153)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.resolveSingleImportHook(Interpreter.scala:152)
  ammonite.interp.Interpreter.$anonfun$resolveImportHooks$3(Interpreter.scala:201)
  ammonite.util.Res$.$anonfun$map$1(Res.scala:34)
  scala.collection.IndexedSeqOptimized.foldLeft(IndexedSeqOptimized.scala:56)
  scala.collection.IndexedSeqOptimized.foldLeft$(IndexedSeqOptimized.scala:64)
  scala.collection.mutable.ArrayBuffer.foldLeft(ArrayBuffer.scala:48)
  ammonite.util.Res$.map(Res.scala:31)
  ammonite.interp.Interpreter.resolveImportHooks(Interpreter.scala:201)
  ammonite.interp.Interpreter.$anonfun$processLine$3(Interpreter.scala:217)
  ammonite.util.Catching.flatMap(Res.scala:109)
  ammonite.interp.Interpreter.processLine(Interpreter.scala:211)
  ammonite.repl.Repl.$anonfun$action$6(Repl.scala:91)
  ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:44)
  ammonite.repl.Signaller.apply(Signaller.scala:29)
  ammonite.repl.Scoped.flatMap(Signaller.scala:44)
  ammonite.repl.Scoped.flatMap$(Signaller.scala:44)
  ammonite.repl.Signaller.flatMap(Signaller.scala:11)
  ammonite.repl.Repl.$anonfun$action$4(Repl.scala:90)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.repl.Repl.action(Repl.scala:77)
  ammonite.repl.Repl.loop$1(Repl.scala:101)
  ammonite.repl.Repl.run(Repl.scala:120)
  ammonite.Main.run(Main.scala:109)
  ammonite.Main$.$anonfun$main$2(Main.scala:250)
  ammonite.Main$.ifContinually$1(Main.scala:229)
  ammonite.Main$.$anonfun$main$1(Main.scala:231)
  scala.Option.foreach(Option.scala:257)
  ammonite.Main$.main(Main.scala:231)
  ammonite.Main.main(Main.scala:-1)
java.util.zip.ZipException: error in opening zip file
  java.util.zip.ZipFile.open(Native Method)
  java.util.zip.ZipFile.<init>(ZipFile.java:219)
  java.util.zip.ZipFile.<init>(ZipFile.java:149)
  java.util.zip.ZipFile.<init>(ZipFile.java:163)
  scala.reflect.io.FileZipArchive.liftedTree1$1(ZipArchive.scala:127)
  scala.reflect.io.FileZipArchive.x$1$lzycompute(ZipArchive.scala:126)
  scala.reflect.io.FileZipArchive.x$1(ZipArchive.scala:123)
  scala.reflect.io.FileZipArchive.allDirs$lzycompute(ZipArchive.scala:123)
  scala.reflect.io.FileZipArchive.allDirs(ZipArchive.scala:123)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.findDirEntry(ZipArchiveFileLookup.scala:63)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.list(ZipArchiveFileLookup.scala:44)
  scala.tools.nsc.classpath.ZipArchiveFileLookup.list$(ZipArchiveFileLookup.scala:43)
  scala.tools.nsc.classpath.ZipAndJarClassPathFactory$ZipArchiveClassPath.list(ZipAndJarFileLookupFactory.scala:47)
  scala.tools.nsc.classpath.AggregateClassPath.$anonfun$list$1(AggregateClassPath.scala:78)
  scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
  scala.collection.Iterator.foreach(Iterator.scala:929)
  scala.collection.Iterator.foreach$(Iterator.scala:929)
  scala.collection.AbstractIterator.foreach(Iterator.scala:1406)
  scala.collection.IterableLike.foreach(IterableLike.scala:71)
  scala.collection.IterableLike.foreach$(IterableLike.scala:70)
  scala.collection.AbstractIterable.foreach(Iterable.scala:54)
  scala.collection.TraversableLike.map(TraversableLike.scala:234)
  scala.collection.TraversableLike.map$(TraversableLike.scala:227)
  scala.collection.AbstractTraversable.map(Traversable.scala:104)
  scala.tools.nsc.classpath.AggregateClassPath.list(AggregateClassPath.scala:76)
  scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:264)
  scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:213)
  scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1512)
  scala.reflect.internal.Mirrors$RootsBase.init(Mirrors.scala:225)
  scala.tools.nsc.Global.rootMirror$lzycompute(Global.scala:63)
  scala.tools.nsc.Global.rootMirror(Global.scala:61)
  scala.tools.nsc.Global.rootMirror(Global.scala:34)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass$lzycompute(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.ObjectClass(Definitions.scala:267)
  scala.reflect.internal.Definitions$DefinitionsClass.init(Definitions.scala:1447)
  scala.tools.nsc.Global$Run.<init>(Global.scala:1140)
  ammonite.interp.Compiler$$anon$1.<init>(Compiler.scala:146)
  ammonite.interp.Compiler$.apply(Compiler.scala:85)
  ammonite.interp.Interpreter.init(Interpreter.scala:78)
  ammonite.interp.Interpreter.reInit(Interpreter.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$10(Interpreter.scala:174)
  ammonite.util.Res$Success.map(Res.scala:63)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$6(Interpreter.scala:154)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.$anonfun$resolveSingleImportHook$5(Interpreter.scala:153)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.interp.Interpreter.resolveSingleImportHook(Interpreter.scala:152)
  ammonite.interp.Interpreter.$anonfun$resolveImportHooks$3(Interpreter.scala:201)
  ammonite.util.Res$.$anonfun$map$1(Res.scala:34)
  scala.collection.IndexedSeqOptimized.foldLeft(IndexedSeqOptimized.scala:56)
  scala.collection.IndexedSeqOptimized.foldLeft$(IndexedSeqOptimized.scala:64)
  scala.collection.mutable.ArrayBuffer.foldLeft(ArrayBuffer.scala:48)
  ammonite.util.Res$.map(Res.scala:31)
  ammonite.interp.Interpreter.resolveImportHooks(Interpreter.scala:201)
  ammonite.interp.Interpreter.$anonfun$processLine$3(Interpreter.scala:217)
  ammonite.util.Catching.flatMap(Res.scala:109)
  ammonite.interp.Interpreter.processLine(Interpreter.scala:211)
  ammonite.repl.Repl.$anonfun$action$6(Repl.scala:91)
  ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:44)
  ammonite.repl.Signaller.apply(Signaller.scala:29)
  ammonite.repl.Scoped.flatMap(Signaller.scala:44)
  ammonite.repl.Scoped.flatMap$(Signaller.scala:44)
  ammonite.repl.Signaller.flatMap(Signaller.scala:11)
  ammonite.repl.Repl.$anonfun$action$4(Repl.scala:90)
  ammonite.util.Res$Success.flatMap(Res.scala:58)
  ammonite.repl.Repl.action(Repl.scala:77)
  ammonite.repl.Repl.loop$1(Repl.scala:101)
  ammonite.repl.Repl.run(Repl.scala:120)
  ammonite.Main.run(Main.scala:109)
  ammonite.Main$.$anonfun$main$2(Main.scala:250)
  ammonite.Main$.ifContinually$1(Main.scala:229)
  ammonite.Main$.$anonfun$main$1(Main.scala:231)
  scala.Option.foreach(Option.scala:257)
  ammonite.Main$.main(Main.scala:231)
  ammonite.Main.main(Main.scala:-1)
Something unexpected went wrong =(
@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented May 18, 2017

Fixed by 662859f on my development branch

It fails for a different reason:

Welcome to the Ammonite Repl version-SNAPSHOT
(Scala 2.12.2 Java 1.8.0_112)
If you like Ammonite, please support our development at www.patreon.com/lihaoyi
@ interp.repositories() ++= Seq(coursier.MavenRepository(
    "https://bintray.com/scalameta/maven"
  ))

@ import $ivy.`org.scalameta::scalameta:1.7.0-387-abf2d2b5`
Failed to resolve ivy dependencies:
  org.scalameta:scalameta_2.12:1.7.0-387-abf2d2b5
    not found: /Users/lihaoyi/.ivy2/local/org.scalameta/scalameta_2.12/1.7.0-387-abf2d2b5/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/scalameta/scalameta_2.12/1.7.0-387-abf2d2b5/scalameta_2.12-1.7.0-387-abf2d2b5.pom
    checksum format error: /Users/lihaoyi/.coursier/cache/v1/https/bintray.com/scalameta/maven/org/scalameta/scalameta_2.12/1.7.0-387-abf2d2b5/scalameta_2.12-1.7.0-387-abf2d2b5.pom.sha1

I'm going to say that's probably not my fault (it's either Coursier's fault or scalameta's fault or bintray's fault) so I'll close this and you can figure out how to make it actually work

@lihaoyi lihaoyi closed this May 18, 2017

@lihaoyi

This comment has been minimized.

Owner

lihaoyi commented May 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment