2016-10-17 32 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' 
相關問題