No such device or address
Closed this issue · 1 comments
krishna444 commented
When I user integrated sbt shell in Intellij IDE, and run the following command:
sbt>test:run
I get the following error message in an infinity loop:
sh: 1: cannot open /dev/tty: No such device or address
java.lang.RuntimeException: Nonzero exit value: 2
scala.sys.package$.error(package.scala:30)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:138)
scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:108)
ammonite.terminal.TTY$.stty(Utils.scala:114)
ammonite.terminal.TTY$.init(Utils.scala:97)
ammonite.terminal.Terminal$.readLine(Terminal.scala:41)
ammonite.repl.AmmoniteFrontEnd.readLine(AmmoniteFrontEnd.scala:130)
ammonite.repl.AmmoniteFrontEnd.action(AmmoniteFrontEnd.scala:24)
ammonite.repl.Repl.$anonfun$action$2(Repl.scala:165)
ammonite.util.Catching.flatMap(Res.scala:114)
ammonite.repl.Repl.action(Repl.scala:149)
ammonite.repl.Repl.loop$1(Repl.scala:189)
ammonite.repl.Repl.run(Repl.scala:205)
ammonite.Main.$anonfun$run$2(Main.scala:205)
scala.Option.getOrElse(Option.scala:138)
ammonite.Main.run(Main.scala:192)
ammonite.MainRunner.$anonfun$runRepl$1(Main.scala:374)
ammonite.MainRunner.watchLoop(Main.scala:355)
ammonite.MainRunner.runRepl(Main.scala:374)
ammonite.Main$.main0(Main.scala:291)
ammonite.Main$.main(Main.scala:255)
amm$.delayedEndpoint$amm$1(amm.scala:1)
amm$delayedInit$body.apply(amm.scala:1)
scala.Function0.apply$mcV$sp(Function0.scala:39)
scala.Function0.apply$mcV$sp$(Function0.scala:39)
scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
scala.App.$anonfun$main$1$adapted(App.scala:80)
scala.collection.immutable.List.foreach(List.scala:392)
scala.App.main(App.scala:80)
scala.App.main$(App.scala:78)
amm$.main(amm.scala:1)
amm.main(amm.scala)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
sbt.Run.invokeMain(Run.scala:98)
sbt.Run.run0(Run.scala:92)
sbt.Run.execute$1(Run.scala:68)
sbt.Run.$anonfun$run$4(Run.scala:80)
scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
sbt.TrapExit$App.run(TrapExit.scala:253)
java.lang.Thread.run(Thread.java:748)