See the sample script, the first and the second run below.
Environment: Ammonite 0.7.8, Scala 2.11.8, Java 1.8.0_111, Ubuntu 16.04.1
Expected: both invocations succeed.
Actual: the compiled script does not find the resource in the ivy-imported jar.
Exception in thread "main" ammonite.ops.ResourceNotFoundException: sun.misc.Launcher$AppClassLoader@3d4eac69/reference.conf
at ammonite.ops.ResourcePath.getInputStream(Path.scala:327)
at ammonite.ops.Readable$class.getBytes(PathUtils.scala:19)
at ammonite.ops.ResourcePath.getBytes(Path.scala:320)
at ammonite.ops.read$.apply(FileOps.scala:333)
at ammonite.ops.read$.apply(FileOps.scala:332)
at $file.amm$minusissue$.<init>(amm-issue.sc:4)
at $file.amm$minusissue$.<clinit>(amm-issue.sc)
at $file.amm$minusissue.$main(amm-issue.sc)
The text was updated successfully, but these errors were encountered:
See the sample script, the first and the second run below.
Environment: Ammonite 0.7.8, Scala 2.11.8, Java 1.8.0_111, Ubuntu 16.04.1
Expected: both invocations succeed.
Actual: the compiled script does not find the resource in the ivy-imported jar.
cat amm-issue.sc
./amm-issue.sc
./amm-issue.sc
The text was updated successfully, but these errors were encountered: