clojure-jack-in : error in process filter: open-network-stream: make client process failed: Connecti

来源:互联网 发布:封天战神足迹进阶数据 编辑:程序博客网 时间:2024/05/19 23:26

clojure-jack-in 启动出错

出错信息如下:

Connecting to Swank on port 65280.. [2 times]
error in process filter: open-network-stream: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil
error in process filter: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil

解决办法如下:

My hostname was set to "localhost" which is why the underlying dns lookup was returning the actual interface, not the loopback. Here's the fix:

localhost:~ amitava$ sudo scutil --set HostName amitava.localamitava:~ amitava$ scutil --get HostNameamitava.localamitava:~ amitava$ cljClojure 1.3.0user=> (import 'java.net.InetAddress)java.net.InetAddressuser=> (InetAddress/getByName "localhost")#<Inet4Address localhost/127.0.0.1>user=> 

详细见:

https://github.com/technomancy/swank-clojure/issues/68

原创粉丝点击