简体   繁体   English

Vim上Syntastic的令人讨厌的python窗口

[英]Obstrusive window on syntastic from vim for python

Syntastic is raising an error each ":w" refered to Python3 class defintion. Syntastic在引用Python3类定义的每个“:w”时都会引发错误。 I also tryed to disabled messages window without sucess using 我也尝试禁用消息窗口而没有成功使用

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0

The class definition raising the error is something like 引发错误的类定义类似于

class SomeClass(metaclass=PoolMeta):
    pass

The question is how coudl I disable that window in order to prevent raising that wrong alerts? 问题是如何禁用该窗口以防止引发错误警报?

Image attached 附图片

在此处输入图片说明

You probably want to set syntastic_auto_loc_list to 0 or 2. 您可能要将syntastic_auto_loc_list设置为0或2。

syntastic_auto_loc_list syntastic_auto_loc_list

Type: integer 类型:整数

Default: 2 默认值:2

Use this option to tell syntastic to automatically open and/or close the location-list (see syntastic-error-window). 使用此选项告诉syntastic自动打开和/或关闭位置列表(请参见syntastic-error-window)。

When set to 0 the error window will be neither opened nor closed automatically. 设置为0时,错误窗口将不会自动打开或关闭。

let g:syntastic_auto_loc_list = 0 让g:syntastic_auto_loc_list = 0

When set to 1 the error window will be automatically opened when errors are detected, and closed when none are detected. 设置为1时,错误窗口将在检测到错误时自动打开,并在未检测到错误时关闭。

let g:syntastic_auto_loc_list = 1 让g:syntastic_auto_loc_list = 1

When set to 2 the error window will be automatically closed when no errors are detected, but not opened automatically. 设置为2时,如果未检测到错误,则错误窗口将自动关闭,但不会自动打开。

let g:syntastic_auto_loc_list = 2 让g:syntastic_auto_loc_list = 2

When set to 3 the error window will be automatically opened when errors are detected, but not closed automatically. 设置为3时,检测到错误时将自动打开错误窗口,但不会自动关闭。

let g:syntastic_auto_loc_list = 3 让g:syntastic_auto_loc_list = 3

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

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