简体   繁体   English

同步进入被动模式

[英]Syntastic going passive mode

It's been quite some time that I'm facing this annoying problem with syntastic. 很长时间以来,我正面临着这个令人烦恼的合成问题。

When running gvim and performing a SyntasticInfo c , without opening anything, it returns me : 当运行gvim并执行SyntasticInfo c ,如果没有打开任何东西,它将返回我:

Syntastic version: 3.5.0-72
Info for filetype: c
Mode: active
Filetype c is active
Available checkers: clang_check gcc make
Currently enabled checker: clang_check

But as soon as I open a c file and do a SyntasticInfo I get: 但是,一旦我打开一个c文件并执行SyntasticInfo我就会得到:

Syntastic version: 3.5.0-72
Info for filetype: c
Mode: active
Passive filetype: c
Filetype c is passive
Available checkers: clang_check gcc make
Currently enabled checker: clang_check

As a result nothing is checked. 结果,没有任何检查。

Here is what is in my vimrc : 这是我的vimrc中的内容:

let g:syntastic_check_on_open = 1
let g:syntastic_c_checkers = ['clang_check']
let g:syntastic_c_clang_post_args = ""
let g:syntastic_mode_map={"mode":"active", "active_filetypes": [], "passive_filetypes": []}

[Edit] Having tried to put 'c' for active_filetypes , it doesn't change anything. [编辑]尝试将'c'active_filetypes ,它没有任何改变。 Though, what is really weird, is that the active checking is not triggered if I don't do a :so ~/.vimrc and every time I open gvim. 但是,真正奇怪的是,如果我不执行:so ~/.vimrc并且每次打开gvim时,都不会触发主动检查。 It's as if this option wasn't taken into account by gvim. 好像gvim没有考虑该选项。 [/Edit] [/编辑]

Thank you in advance for any help 预先感谢您的任何帮助

You probably have Eclim installed. 您可能已安装了Eclim。 Eclim silently disables syntastic for the filetypes it can handle. Eclim默默禁用它可以处理的文件类型的合成。 Recent versions of syntastic warn you when this situation is detected. 当检测到这种情况时,最新版本的syntastic会警告您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM