Clojure 为什么钉枪服务器抛出';无法确定文件的命名空间';错误?

Clojure 为什么钉枪服务器抛出';无法确定文件的命名空间';错误?,clojure,leiningen,vimclojure,nailgun,Clojure,Leiningen,Vimclojure,Nailgun,我正在努力让vimclojure走,如果有人能帮我解决我做错了什么,我将不胜感激。在我的一个lein项目中尝试读取project.clj时出现错误: ; Use \p to close this buffer! Could not determine the Namespace of the file. This might have different reasons. Please check, that the ng server is running with the correct

我正在努力让vimclojure走,如果有人能帮我解决我做错了什么,我将不胜感激。在我的一个lein项目中尝试读取project.clj时出现错误:

; Use \p to close this buffer!

Could not determine the Namespace of the file.

This might have different reasons. Please check, that the ng server
is running with the correct classpath and that the file does not contain
syntax errors. The interactive features will not be enabled, ie. the
keybindings will not be mapped.

Reason:
Error executing Nail! (230)
connect: Connection refused
下面是~/.vimrc中的相关行

filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
let g:vimclojure#HighlightBuiltins = 1
let g:vimclojure#ParenRainbow = 1
let vimclojure#NailgunClient = "/home/cnorton/bin/ng"
let vimclojure#WantNailgun = 1
:helptags ~/.vim/bundle/VimClojure/doc/
nailgun在类路径中

export CLASSPATH=/usr/share/java:/home/cnorton/bin:$CLASSPATH
export VIMCLOJURE_SERVER_JAR="$HOME/bin/server-2.3.0.jar"
我遗漏了什么和/或我做错了什么? 多谢各位

connect: Connection refused

你没有启动服务器。或者错误配置了服务器地址/端口。

尝试使用管理nailgun服务器。如何启动nailgun服务器?我在线程“main”中尝试了
$java com.martiansoftware.nailgun.NGServer异常。。。原因:java.lang.ClassNotFoundException:com.martiansoftware.nalgun.NGServer位于java.net.URLClassLoader$1.run(URLClassLoader.java:217)位于java.security.AccessController.doPrivileged(本机方法)位于java.net.URLClassLoader.findClass(URLClassLoader.java:205)位于java.lang.ClassLoader.java:321在sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)和java.lang.ClassLoader.loadClass(ClassLoader.java:266)…
中,您必须设置类路径。最小值为
java-cp clojure.jar:vimclojure-server.jar vimclojure.nailgun.NGServer 127.0.0.1
。将jar名称替换为jar在计算机上的实际位置。(顺便说一句,你可能需要像lein tarsier插件一样的东西。)(或者你想看看nrepl和vim前戏。)