我无法让航空公司与合成伙伴一起正常工作。我有一个干净的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