簡體   English   中英

Vim Syntastic插件不適用於coffeescript 1.6.0+

[英]Vim Syntastic plugin not working for coffeescript 1.6.0+

我的.vimrc中有以下語法設置:

"------------SYNTASTIC-----------
let g:syntastic_enable_signs=1
let g:syntastic_mode_map={ 'mode': 'active',
                     \ 'active_filetypes': [],
                     \ 'passive_filetypes': ['html', 'java'] }
let g:syntastic_coffee_checkers = ['coffeelint', 'coffee']
let g:syntastic_coffee_coffeelint_args = "--file [absolute path to]/coffeelint.json"
let g:syntastic_enable_signs=1
let g:syntastic_error_symbol='✗'
let g:syntastic_warning_symbol='⚠'        

當我將coffeescript安裝到1.6.0+(即npm install -g coffee-script@1.6.3 )時,似乎無法檢測到任何編譯錯誤,即使coffee file.coffeecoffeelint file.coffee顯示錯誤很好。

我跑了:SyntasticCheck然后:messages和沒有調試錯誤浮出水面。

我還確保npmPATH一部分: PATH="/usr/local/share/npm/bin:$PATH"

另一方面,當coffeescript安裝在coffee-script@1.5.0 ,錯誤DO實際上表面(一切正常!),除了它沒有拿起coffeelint_args 可能會出現這種行為來自https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee

我是否需要了解一些特殊的東西才能在Mac上使用coffeescript 1.6.0+進行合成工作?

這是github上的問題: https//github.com/scrooloose/syntastic/issues/694

修復是從合成git目錄做一個git fetch && git rebasegit pull (假設你正在使用病原體)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM