I'm trying to add a REPL to my Java projects build with gradle (same as #237). At first I was using the Scala REPL which worked but didn't had tab completion support. Now I was pointed to Ammonite, which I configured.
At first I was very happy, because tab completion now works, but unfortunately, when trying to invoke a method, the compilation fails:
MiniDNS REPL
Welcome to the Ammonite Repl 0.5.5
(Scala 2.11.7 Java 1.8.0_72)
@ c.q
query
def query(x$1: String,x$2: de.measite.minidns.Record.TYPE,x$3: de.measite.minidns.Record.CLASS,x$4: java.net.InetAddress): de.measite.minidns.DNSMessage
def query(x$1: String,x$2: de.measite.minidns.Record.TYPE,x$3: de.measite.minidns.Record.CLASS,x$4: java.net.InetAddress,x$5: Int): de.measite.minidns.DNSMessage
def query(x$1: de.measite.minidns.Question): de.measite.minidns.DNSMessage
def query(x$1: de.measite.minidns.Question,x$2: String): de.measite.minidns.DNSMessage
def query(x$1: de.measite.minidns.Question,x$2: java.net.InetAddress): de.measite.minidns.DNSMessage
def query(x$1: de.measite.minidns.Question,x$2: java.net.InetAddress,x$3: Int): de.measite.minidns.DNSMessage
final def query(x$1: String,x$2: de.measite.minidns.Record.TYPE): de.measite.minidns.DNSMessage
final def query(x$1: String,x$2: de.measite.minidns.Record.TYPE,x$3: de.measite.minidns.Record.CLASS): de.measite.minidns.DNSMessage
@ c.query("foo.bar.com", TYPE.A)
Main.scala:11: Internal is renamed twice
import ammonite.repl.frontend.ReplBridge.repl.{
^
Compilation Failed
@
I'm trying to add a REPL to my Java projects build with gradle (same as #237). At first I was using the Scala REPL which worked but didn't had tab completion support. Now I was pointed to Ammonite, which I configured.
At first I was very happy, because tab completion now works, but unfortunately, when trying to invoke a method, the compilation fails: