为什么nailgun服务器抛出“无法确定文件的命名空间”错误?

时间:2012-07-19 21:21:39

标签: 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 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在CLASSPATH中

export CLASSPATH=/usr/share/java:/home/cnorton/bin:$CLASSPATH
export VIMCLOJURE_SERVER_JAR="$HOME/bin/server-2.3.0.jar"

我错过了什么和/或我做错了什么? 谢谢。

1 个答案:

答案 0 :(得分:2)

connect: Connection refused

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