@// Repl Session@importammonite.ops._@ load.module(wd/"Foo.scala")
ammonite.repl.CompilationError:CompilationFailedMain.scala:174: not found: value res
println(res)
^
Main.scala:177: not found: value asd
println(asd)
^
ammonite.repl.interp.Interpreter.loop$1(Interpreter.scala:97)
ammonite.repl.interp.Interpreter.processScript(Interpreter.scala:86)
ammonite.repl.interp.Interpreter.processModule(Interpreter.scala:67)
ammonite.repl.interp.Interpreter$$anon$1$load$.module(Interpreter.scala:134)
cmd4$$anonfun$1.apply$mcV$sp(Main.scala:110)
cmd4$.<init>(Main.scala:111)
cmd4$.<clinit>(Main.scala:-1)
This should work. Will take some refactoring to make load.module put the imports in the right place depending on whether it's being called in a module or directly from the REPL, but shouldn't be hard in principle
The text was updated successfully, but these errors were encountered:
this makes writing script compatible with different versions through interp.load.module really hard.
as old version e.g. 1.6.7 does not support import ammonite.$file.dummy.LimitImports_2._
need 1.6.7 to support scala 2.11 and spark.
This doesn't seem to behave correctly in the following case:
This should work. Will take some refactoring to make
load.module
put the imports in the right place depending on whether it's being called in a module or directly from the REPL, but shouldn't be hard in principleThe text was updated successfully, but these errors were encountered: