我已经和 Jedi 一起在 vim 中安装了 youcompleteme。从当前文件中的模块名称空间或名称/变量开始声明时,我能够使完成工作。问题是,一旦我“点”一个不是模块的“本地”名称,我就得不到任何建议。
在以下几行中,第一个显示点之后的完成。但是第二行在点之后没有提供任何东西。我假设是因为 YCM 不完全知道名称“main_grid”,因为没有“处理”上面的行以了解 main_grid 是什么类型的对象。
main_grid = QtGui.QGridLayout()
main_grid.setColumnStretch(0, 3)
理想情况下,在第二行中,我将在键入“main_grid”后获得所有可用的 QtGui.QGridLayout 方法。
这可能吗?
更新一些 vim 输出:
:设置全功能
omnifunc=youcompleteme#OmniComplete
:mes有很多:
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
AttributeError: 'MergedNamesDict' object has no attribute 'get'
:版本
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 23 2015 11:27:15)
Included patches: 1-712
Compiled by Arch Linux
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +cscope +folding +menu +netbeans_intg -sniff +virtualedit
+arabic +cursorbind -footer +mksession +path_extra +startuptime +visual
+autocmd +cursorshape +fork() +modify_fname +perl +statusline +visualextra
+balloon_eval +dialog_con_gui +gettext +mouse +persistent_undo -sun_workshop +viminfo
+browse +diff -hangul_input +mouseshape +postscript +syntax +vreplace
++builtin_terms +digraphs +iconv +mouse_dec +printer +tag_binary +wildignore
+byte_offset +dnd +insert_expand +mouse_gpm +profile +tag_old_static +wildmenu
+cindent -ebcdic +jumplist -mouse_jsbterm +python -tag_any_white +windows
+clientserver +emacs_tags +keymap +mouse_netterm -python3 -tcl +writebackup
+clipboard +eval +langmap +mouse_sgr +quickfix +terminfo +X11
+cmdline_compl +ex_extra +libcall -mouse_sysmouse +reltime +termresponse -xfontset
+cmdline_hist +extra_search +linebreak +mouse_urxvt +rightleft +textobjects +xim
+cmdline_info +farsi +lispindent +mouse_xterm +ruby +title +xsmp_interact
+comments +file_in_path +listcmds +multi_byte +scrollbind +toolbar +xterm_clipboard
+conceal +find_in_path +localmap +multi_lang +signs +user_commands -xterm_save
+cryptv +float +lua -mzscheme +smartindent +vertsplit -xpm
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "/etc/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/inclu
de -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I
/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0
/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/includ
e/libpng16 -I/usr/include/harfbuzz -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
--param=ssp-buffer-size=4 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: 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 vi
m -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0
-lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl
-lacl -lattr -lgpm -ldl -L/usr/lib -llua -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-ne
eded,-z,relro -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/core_perl/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -
lpthread -lc -L/usr/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -lruby -lpthre
ad -lgmp -ldl -lcrypt -lm -L/usr/lib