我的 .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
)时,syntastic 似乎无法检测到任何编译错误,即使两者都coffee file.coffee
显示coffeelint file.coffee
错误正常。
:SyntasticCheck
然后我跑了:messages
,没有出现调试错误。
我还确保这npm
是以下内容的一部分PATH
:PATH="/usr/local/share/npm/bin:$PATH"
另一方面,当咖啡脚本安装在coffee-script@1.5.0
错误确实表面时(一切正常!),除了它没有拾取coffeelint_args
. 这种行为可能来自 https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee
我是否需要知道一些特别的东西才能在 Mac 上使用 coffeescript 1.6.0+ 进行合成工作?