FriedSock / smeargle

Vim plugin for colouring the text background based on information mined from git
54 stars 1 forks source link

MoveWrapper..ExecuteDiff #7

Open tex opened 10 years ago

tex commented 10 years ago

When switching to insertmode and press any key (any edit) I get this:

Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col233 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col233 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col237 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col237 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col236 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col236 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col236 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col235 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col237 Press ENTER or type command to continue Chyba při zpracování function MoveWrapper..ExecuteDiff: řádek 14: E885: Not possible to change sign c1col237

tex commented 10 years ago

"Fixed" it by adding silent!

  let command = "silent! ruby changedlines '" . file1 . "', '" . file2 . "'"

to ExecuteDiff at smeargle.vim

Works for me.

FriedSock commented 10 years ago

The real question is: "Why is it not possible to change the signs?" Do you have any other helpful information like what version of Vim you are using?

tex commented 10 years ago

My vim config is quite large, but when YouCompleteMe is disabled then this error goes away.

tex commented 10 years ago

My YCM config.

  if neobundle#tap("YouCompleteMe")                                                                                                                                                                                                 
      let g:ycm_confirm_extra_conf = 0                                                                                                                                                                                              
      let g:ycm_server_keep_logfiles = 1                                                                                                                                                                                            
      let g:ycm_server_log_level = 'critical'                                                                                                                                                                                       

      " Map <leader>jd to YcmCompleter's goto definition or declaration                                                                                                                                                             
      nnoremap <leader>jd :YcmCompleter GoToDefinitionElseDeclaration<CR>                                                                                                                                                           

      let g:ycm_filetype_specific_completion_to_disable = {'unite' : 1}                                                                                                                                                             

      let g:ycm_autoclose_preview_window_after_completion = 1                                                                                                                                                                       
      let g:ycm_autoclose_preview_window_after_insertion = 1                                                                                                                                                                        

      " YCM removes all signs in the buffer when updating its signs.                                                                                                                                                                
      " Disabling YCM's signs since highlighting itself is good enough.                                                                                                                                                             
      let g:ycm_enable_diagnostic_signs = 0                                                                                                                                                                                         

      " Workaround the YCM bug. YCM should use erlang semantic completion engine,                                                                                                                                                   
      " but it uses it only from the begining of typing, then it switches to a garbage.                                                                                                                                             
      " https://github.com/Valloric/YouCompleteMe/issues/3                                                                                                                                                                          
      "let g:ycm_filetype_blacklist = {'erlang' : 1}                                                                                                                                                                                

      let g:ycm_concealing_delimiters = ['⟪', '⟫']                                                                                                                                                                                  

      let g:ycm_semantic_triggers =  {                                                                                                                                                                                              
                  \   'c' : ['->', '.'],                                                                                                                                                                                            
                  \   'objc' : ['->', '.'],                                                                                                                                                                                         
                  \   'ocaml' : ['.', '#'],                                                                                                                                                                                         
                  \   'cpp,objcpp' : ['->', '.', '::'],                                                                                                                                                                             
                  \   'perl' : ['->'],                                                                                                                                                                                              
                  \   'php' : ['->', '::'],                                                                                                                                                                                         
                  \   'cs,java,javascript,d,vim,python,perl6,scala,vb,elixir,go' : ['.'],                                                                                                                                           
                  \   'ruby' : ['.', '::'],                                                                                                                                                                                         
                  \   'lua' : ['.', ':'],                                                                                                                                                                                           
                  \   'erlang' : [':'],                                                                                                                                                                                             
                  \ }                                                                                                                                                                                                               

      let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'                                                                                                                   
  endif                                                                                                                                                                                                                             
tex commented 10 years ago

$ vim --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 19 2014 18:48:03) Použité záplaty: 1-410 přeložil Arch Linux maximální verzewith GTK2 GUI. Vlastnosti zahrnuté (+) a nezahrnuté (-): +acl +farsi +mouse_netterm +syntax +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static +balloon_eval +float +mouse_urxvt -tag_any_white +browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects +clientserver -hangul_input +netbeans_intg +title +clipboard +iconv +path_extra +toolbar +cmdline_compl +insert_expand +perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con_gui +lua +rightleft +windows +diff +menu +ruby +writebackup +digraphs +mksession +scrollbind +X11 +dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent +xim +emacs_tags +mouseshape -sniff +xsmp_interact +eval +mouse_dec +startuptime +xterm_clipboard +ex_extra +mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop -xpm systémový vimrc soubor: "/etc/vimrc" uživatelský vimrc soubor: "$HOME/.vimrc" druhý uživatelský vimrc soubor: "~/.vim/vimrc" uživatelský exrc soubor: "$HOME/.exrc" systémový gvimrc soubor: "/etc/gvimrc" uživatelský gvimrc soubor: "$HOME/.gvimrc" druhý uživatelský gvimrc soubor: "~/.vim/gvimrc" systémový soubor s menu: "$VIMRUNTIME/menu.vim" implicitní hodnota $VIM:"/usr/share/vim" Překlad: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -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/include/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
Linkuji: 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 -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-needed,-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 -lpthread -lgmp -ldl -lcrypt -lm -L/usr/lib