YouCompleteme仅适用于stdlib模块

时间:2016-06-13 17:31:02

标签: python vim youcompleteme

我遇到了与YouCompleteMe和Python有关的问题。当我尝试自动填充像os.*这样的标准库包时,一切正常。当我尝试使用pip安装的软件包时,就像烧瓶一样。

我发现了同样的问题,但没有回答here

vim --version print:

  

VIM - Vi IMproved 7.4(2013年8月10日,2016年6月9日编译09:35:16)       包含的补丁:1-1910       由Arch Linux编译       没有GUI的巨大版本。功能包括(+)或不( - ):       + acl + farsi + mouse_netterm + tag_binary       + arabic + file_in_path + mouse_sgr + tag_old_static       + autocmd + find_in_path -mouse_sysmouse -tag_any_white       -balloon_eval + float + mouse_urxvt + tcl / dyn       -browse + folding + mouse_xterm + termguicolors       ++ builtin_terms -footer + multi_byte + terminfo       + byte_offset + fork()+ multi_lang + termresponse       + channel + gettext -mzscheme + textobjects       + cindent -hangul_input + netbeans_intg + timers       -clientserver + iconv + packages + title       -clipboard + insert_expand + path_extra -toolbar       + cmdline_compl + job + perl / dyn + user_commands       + cmdline_hist + jumplist + persistent_undo + vertsplit       + cmdline_info + keymap + postscript + virtualedit       +评论+ langmap +打印机+视觉       +隐藏+ libcall +个人资料+ visualextra       + cryptv + linebreak + python / dyn + viminfo       + cscope + lispindent + python3 / dyn + vreplace       + cursorbind + listcmds + quickfix + wildignore       + cursorshape + localmap + reltime + wildmenu       + dialog_con + lua / dyn + rightleft + windows       + diff + menu + ruby​​ / dyn + writebackup       + digraphs + mksession + scrollbind -X11       -dnd + modify_fname + signs -xfontset       -ebcdic + mouse + smartindent -xim       + emacs_tags -mouseshape + startuptime -xsmp       + eval + mouse_dec + statusline -xterm_clipboard       + ex_extra + mouse_gpm -sun_workshop -xterm_save       + extra_search -mouse_jsbterm + syntax -xpm          系统vimrc文件:“/ etc / vimrc”            用户vimrc文件:“$ HOME / .vimrc”        第二个用户vimrc文件:“〜/ .vim / vimrc”             用户exrc文件:“$ HOME / .exrc”         $ VIM的后退:“/ usr / share / vim”       编译:gcc -c -I。 -Iproto -DHAVE_CONFIG_H -D_FORTIFY_SOURCE = 2 -march = x86-64 -mtune = generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE = 1
      链接:gcc -L。 -Wl,-O1, - sort-common, - as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/ usr / lib / perl5 / core_perl / CORE -Wl,-O1, - sort-common, - as-needed,-z,relro -L / usr / local / lib -Wl, - as-needed -o vim -lm - lncurses -lelf -lnsl -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/ usr / lib / perl5 / core_perl / CORE -Wl,-O1, - sort-common, - as-需要,-z,relro -fstack-protector-strong -L / usr / local / lib -L ​​/ usr / lib / perl5 / core_perl / CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -L / usr / lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm

1 个答案:

答案 0 :(得分:1)

添加 让g:ycm_global_ycm_extra_conf ='〜/ .vim / .ycm_extra_conf.py' 到你的.vimrc

https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py复制.ycm_extra_conf.py 并将其移至〜/ .vim /