Vim Syntastic插件不适用于coffeescript 1.6.0+

时间:2013-06-16 20:17:45

标签: vim macvim vim-plugin syntastic

我的.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同时显示错误,syntaly似乎也无法检测到任何编译错误精细。

我运行:SyntasticCheck然后:messages并且没有调试错误浮出水面。

我还确保npm属于PATHPATH="/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+进行合成工作?

1 个答案:

答案 0 :(得分:2)

以下是github上的问题:https://github.com/scrooloose/syntastic/issues/694

修复是从syntime git目录做一个git fetch && git rebasegit pull(假设你正在使用病原体)

相关问题