2016-10-17 33 views
2

我有一个码头集装箱运行lein repl :start :host 0.0.0.0 :port 7888(我也通过-p开关端口像docker run -p 7888:7888)。VIM壁炉与码头上的nREPL将不会运行测试

现在,当我切换到vim并连接到REPL时,一切似乎按预期工作。我可以通过cqp评估代码,并在该泊坞窗机器上进行评估。

但是,当我想通过cpr组合在测试文件中运行测试时,vim显示它在其状态栏中执行(clojure.test/run-tests 'users.models.users-it-test),但没有一个测试真的执行,也没有得到发生情况的报告。我还可以添加任何失败的测试,如

(deftest shouldnt-work 
    (is (= 3 4)) 

但不会引发异常。

更奇怪的是:当我执行通过cqp和测试,那么 (clojure.test/run-tests),测试实际上是运行和 正确的/失败的结果打印出来。

我的.vimrc看起来是这样的:

" Plugins 
call vundle#begin() 

Plugin 'gmarik/Vundle.vim' 
Plugin 'danro/rename.vim' 
Plugin 'guns/vim-clojure-static' 
Plugin 'scrooloose/nerdtree' 
Plugin 'ctrlpvim/ctrlp.vim' 
Plugin 'tpope/vim-salve' 
Plugin 'tpope/vim-classpath' 
Plugin 'tpope/vim-fireplace' 
Plugin 'paredit.vim' 

call vundle#end() 
filetype plugin indent on 
" End Plugins 

" Add and delete spaces in increments of 'shiftwidth' for tabsb 
set smarttab 
set number 
set tabstop=2 
set shiftwidth=2 
set expandtab 
set noesckeys 
syntax on 

回答

4

好像有在我的VIM文件导致整个事情不运行冲突。

我现在删除rename.vim,ctrlp.vimvim-clojure-static(因为它已经包含在Vim从版本7.4开始)。另外我对我的插件进行了重新排序,现在看起来像这样:

Plugin 'gmarik/Vundle.vim' 
Plugin 'altercation/vim-colors-solarized'           
Plugin 'scrooloose/nerdtree' 
Plugin 'paredit.vim' 
Plugin 'tpope/vim-salve' 
Plugin 'tpope/vim-classpath' 
Plugin 'tpope/vim-fireplace' 
相关问题