我无法让航空公司与 syntastic 一起正常工作。我干净安装了 Python (3.5.3)、Vim(只有通过 Vundle 安装的 Syntastic 和 Airline)和 Flake8。
当我在 Vim 中打开 python 代码时,我收到以下消息:
Error detected while processing function
<SNR>20_on_window_changed[13]..airline#update_statusline[18]..
<SNR>21_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..
airline#extensions#quickfix#apply[2]..<SNR>40_get_text:
line 3:
E716: Key not present in Dictionary: quickfix && !dict[0].loclist
Press ENTER or type command to continue
Error detected while processing function
<SNR>20_on_window_changed[13]..airline#update_statusline[18].
<SNR>21_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..
airline#extensions#quickfix#apply[2]..<SNR>40_get_text:
line 3:
E15: Invalid expression: len(dict) > 0 && dict[0].quickfix &&
!dict[0].loclist
这可能意味着什么?
这是我的 vimrc 的样子:
set nocompatible " be iMproved, required
filetype off " required
"=====================================================
" Vundle settings
"=====================================================
" set the runtime path to include Vundle and initialize
set rtp+=C:/Users/Ray/.vim/bundle/Vundle.vim/
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype on
filetype plugin on
filetype plugin indent on
"let g:airline#extensions#tabline#enabled = 1
set laststatus=2
"let g:airline_powerline_fonts = 1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0