Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets support python error #546

Open
jxu opened this issue Nov 8, 2017 · 0 comments
Open

Snippets support python error #546

jxu opened this issue Nov 8, 2017 · 0 comments

Comments

@jxu
Copy link

jxu commented Nov 8, 2017

Using let g:clang_snippets=1 in my vimrc, I get the following error when opening a c file:

Error detected while processing function <SNR>14_ClangCompleteInit:                                                                                                    
line  150:                                                                                                                                                             
Traceback (most recent call last):                                                                                                                                     
  File "<string>", line 1, in <module>                                                                                                                                 
  File "/[user]/.vim/plugin/snippets/clang_complete.py", line 6, in snippetsInit                                                              
    vim.command("noremap <silent> <buffer> <tab> :{} updateSnips()<CR>".format(python_cmd))                                                                            
ValueError: zero length field name in format                                                                                                                           
Press ENTER or type command to continue   

Output of :version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 11:14:07)                                                                                                     
Included patches: 1-207, 209-629                                                                                                                                       
Modified by <[email protected]>                                                                                                                                      
Compiled by <[email protected]>                                                                                                                                      
Huge version without GUI.  Features included (+) or not (-):                                                                                                           
+acl             +comments        +ex_extra        +jumplist        -mouseshape      +path_extra      +signs           +textobjects     +writebackup                   
+arabic          +conceal         +extra_search    +keymap          +mouse_dec       +perl            +smartindent     +title           -X11                           
+autocmd         +cryptv          +farsi           +langmap         +mouse_gpm       +persistent_undo -sniff           -toolbar         -xfontset                      
-balloon_eval    +cscope          +file_in_path    +libcall         -mouse_jsbterm   +postscript      +startuptime     +user_commands   -xim                           
-browse          +cursorbind      +find_in_path    +linebreak       +mouse_netterm   +printer         +statusline      +vertsplit       -xsmp                          
++builtin_terms  +cursorshape     +float           +lispindent      +mouse_sgr       +profile         -sun_workshop    +virtualedit     -xterm_clipboard               
+byte_offset     +dialog_con      +folding         +listcmds        -mouse_sysmouse  +python/dyn      +syntax          +visual          -xterm_save                    
+cindent         +diff            -footer          +localmap        +mouse_urxvt     -python3         +tag_binary      +visualextra     -xpm                           
-clientserver    +digraphs        +fork()          -lua             +mouse_xterm     +quickfix        +tag_old_static  +viminfo                                        
-clipboard       -dnd             +gettext         +menu            +multi_byte      +reltime         -tag_any_white   +vreplace                                       
+cmdline_compl   -ebcdic          -hangul_input    +mksession       +multi_lang      +rightleft       -tcl             +wildignore                                     
+cmdline_hist    +emacs_tags      +iconv           +modify_fname    -mzscheme        -ruby            +terminfo        +wildmenu                                       
+cmdline_info    +eval            +insert_expand   +mouse           +netbeans_intg   +scrollbind      +termresponse    +windows                                        
   system vimrc file: "/etc/vimrc"                                                                                                                                     
     user vimrc file: "$HOME/.vimrc"                                                                                                                                   
 2nd user vimrc file: "~/.vim/vimrc"                                                                                                                                   
      user exrc file: "$HOME/.exrc"                                                                                                                                    
  fall-back for $VIM: "/etc"                                                                                                                                           
 f-b for $VIMRUNTIME: "/usr/share/vim/vim74"                                                                                                                           
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FI
LE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1                                                                                                                
Linking: gcc   -Wl,-E -Wl,-rpath,/usr/lib64/perl5/CORE   -L/usr/local/lib -Wl,--as-needed -o vim        -lm -lnsl  -lselinux  -ltinfo -lacl -lattr -lgpm   -Wl,-E -Wl,-
rpath,/usr/lib64/perl5/CORE  -fstack-protector  -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant