我的.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='⚠' 当我在1.6.0+ (即npm install -g coffee-script@1.6.3)上安装了coffeescript时,syntastic似乎无法检测到任何编译错误,即使coffee file.coffee和coffeelint file.coffee都能很好地显示错误。
我运行:SyntasticCheck,然后运行:messages,没有出现调试错误。
我还确保npm是PATH的一部分:PATH="/usr/local/share/npm/bin:$PATH"
另一方面,当在coffee-script@1.5.0上安装了coffeescript时,错误确实会浮出水面(一切正常!),除了它不能提取coffeelint_args。在https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee中可能会出现这种行为
我需要知道一些特殊的东西才能在Mac上使用coffeescript 1.6.0+进行语法工作吗?
发布于 2013-06-26 01:43:15
这是关于github的问题:https://github.com/scrooloose/syntastic/issues/694
修复方法是从syntastic git目录执行git fetch && git rebase或git pull (假设您使用的是病原体)。
https://stackoverflow.com/questions/17137302
复制相似问题