[英]Vim Syntastic plugin not working for coffeescript 1.6.0+
I have the following syntastic settings inside my .vimrc: 我的.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='⚠'
when I have coffeescript installed to 1.6.0+ (ie npm install -g coffee-script@1.6.3
) syntastic doesn't seem able to detect any compilation errors, even though both coffee file.coffee
and coffeelint file.coffee
displays the error fine. 当我将coffeescript安装到1.6.0+(即
npm install -g coffee-script@1.6.3
)时,似乎无法检测到任何编译错误,即使coffee file.coffee
和coffeelint file.coffee
显示错误很好。
I ran :SyntasticCheck
then :messages
and no debug error surfaced. 我跑了
:SyntasticCheck
然后:messages
和没有调试错误浮出水面。
I've also made sure that npm
is part of the PATH
: PATH="/usr/local/share/npm/bin:$PATH"
我还确保
npm
是PATH
一部分: PATH="/usr/local/share/npm/bin:$PATH"
On the other hand, when coffeescript is installed at coffee-script@1.5.0
the errors DO in fact surface (everything works!), except that it doesn't pick up the coffeelint_args
. 另一方面,当coffeescript安装在
coffee-script@1.5.0
,错误DO实际上表面(一切正常!),除了它没有拿起coffeelint_args
。 This behavior might be expect from https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee 可能会出现这种行为来自https://github.com/scrooloose/syntastic/wiki/CoffeeScript%3A---coffee
Do I need to know something special to get syntastic working w/ coffeescript 1.6.0+ on Mac? 我是否需要了解一些特殊的东西才能在Mac上使用coffeescript 1.6.0+进行合成工作?
Here's the issue on github: https://github.com/scrooloose/syntastic/issues/694 这是github上的问题: https : //github.com/scrooloose/syntastic/issues/694
The fix was to do a git fetch && git rebase
or git pull
from the syntastic git directory (assuming you're using pathogen) 修复是从合成git目录做一个
git fetch && git rebase
或git pull
(假设你正在使用病原体)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.