我安装了菊石并得到
(Scala 2.11.7 Java 1.8.0_45)
bash: /dev/tty: No such device or address
bash: /dev/tty: No such device or address
Exception in thread "main" java.lang.RuntimeException: Nonzero exit value: 1
at scala.sys.package$.error(package.scala:27)
at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.slurp(ProcessBuilderImpl.scala:132)
at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang$bang(ProcessBuilderImpl.scala:102)
at ammonite.terminal.TTY$.stty(Utils.scala:85)
at ammonite.terminal.TTY$.init(Utils.scala:64)
at ammonite.terminal.TermCore$.x$6$lzycompute$1(TermCore.scala:244)
at ammonite.terminal.TermCore$.x$6$1(TermCore.scala:244)
at ammonite.terminal.TermCore$.initialConfig$lzycompute$1(TermCore.scala:244)
at ammonite.terminal.TermCore$.initialConfig$1(TermCore.scala:244)
at ammonite.terminal.TermCore$.readLine(TermCore.scala:254)
at ammonite.repl.frontend.AmmoniteFrontEnd.readLine(AmmoniteFrontEnd.scala:110)
at ammonite.repl.frontend.AmmoniteFrontEnd.action(AmmoniteFrontEnd.scala:25)
at ammonite.repl.Repl.action(Repl.scala:46)
at ammonite.repl.Repl.loop$1(Repl.scala:79)
at ammonite.repl.Repl.run(Repl.scala:97)
at ammonite.repl.Main$.run(Main.scala:135)
at ammonite.repl.Main$$anonfun$main$2.apply(Main.scala:82)
at ammonite.repl.Main$$anonfun$main$2.apply(Main.scala:81)
at scala.Option.foreach(Option.scala:257)
at ammonite.repl.Main$.main(Main.scala:81)
at ammonite.repl.Main.main(Main.scala)
尽管在我的 cygwin 中/dev/tty
存在/dev/ttyS0
。我该如何修复它?
答案1
bash:/dev/tty:没有这样的设备或地址
尽管在 Cygwin 中
/dev/tty
存在/dev/ttyS0
此问题。我该如何修复?
这是一个已知错误。请参阅Ammonite-REPL 在 Windows 上无法运行 #119。