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

amm fails if ran from /var or /bin #418

Closed
13h3r opened this Issue Jul 28, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@13h3r
Copy link

13h3r commented Jul 28, 2016

alexey@Alexeys-MacBook-Pro /var » cat > /Users/alexey/temp/C.sc                                                                    1 ↵
println("It works")
alexey@Alexeys-MacBook-Pro /var » amm /Users/alexey/temp/C.sc
It works
Exception in thread "main" java.lang.ClassNotFoundException: $file.`..`.`..`.Users.alexey.temp.C$$routes$
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at ammonite.interp.SpecialClassLoader.findClass(ClassLoaders.scala:113)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at ammonite.main.Scripts$$anonfun$runScript$2.apply(Scripts.scala:52)
    at ammonite.main.Scripts$$anonfun$runScript$2.apply(Scripts.scala:22)
    at ammonite.util.Res$Success.map(Res.scala:61)
    at ammonite.main.Scripts$.runScript(Scripts.scala:22)
    at ammonite.Main.runScript(Main.scala:82)
    at ammonite.Main$$anonfun$main$1$$anonfun$apply$1.apply(Main.scala:193)
    at ammonite.Main$.ammonite$Main$$ifContinually$1(Main.scala:173)
    at ammonite.Main$$anonfun$main$1.apply(Main.scala:175)
    at ammonite.Main$$anonfun$main$1.apply(Main.scala:175)
    at scala.Option.foreach(Option.scala:257)
    at ammonite.Main$.main(Main.scala:175)
    at ammonite.Main.main(Main.scala)
@lihaoyi

This comment has been minimized.

Copy link
Owner

lihaoyi commented Aug 3, 2016

Should be fixed by #420

@lihaoyi lihaoyi closed this Aug 3, 2016

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