clojure lein(read-line)标准输入问题 [英] clojure lein (read-line) stdin woes

查看:111
本文介绍了clojure lein(read-line)标准输入问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此常规clojure repl可以正常工作,(read-line)收集输入,然后回显它.但是,使用lein repl永远不会回显任何输入字符,也永远不会允许我从任何标准输入读取命令中返回.

So regular clojure repl works fine, (read-line) collects input, then echos it. Using lein repl though, never echoes any input characters, nor does it ever allows me to return from any stdin reading commands.

我确定这与重新绑定 in 有关,但我想知道是否有解决方法/修复程序?

I'm sure it has something to do with rebinding in, but was wondering if there is a workaround/fix?

谢谢.

推荐答案

这是由于ant中的错误所致;它阻止了stdin流从它启动的子进程中被使用.但是telnet技巧应该起作用,因为lein repl启动了一个套接字repl服务器.在这里工作正常.

This is due to a bug in ant; it prevents the stdin stream from the subprocess it launches from being used. But the telnet trick should work since lein repl launches a socket repl server; it works fine here.

这篇关于clojure lein(read-line)标准输入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆