`:EnableChanges` throws E155 #7

Closed
mpfusion opened this Issue May 22, 2013 · 6 comments

Comments

Projects
None yet
2 participants

Executing :DisableChanges followed by :EnableChanges results in

Error detected while processing function changes#GetDiff..<SNR>18_PlaceSigns:
line   10:
E155: Unknown sign: add

chrisbra added a commit that referenced this issue May 22, 2013

Fix issue #7
plugin complains about undefined variable when using :DisableChanges.
Make sure, variables exists.

(Reported by mpfusion, thanks!)
Owner

chrisbra commented May 22, 2013

Hi mpfusion!

On Mi, 22 Mai 2013, mpfusion wrote:

Executing :DisableChanges followed by :EnableChanges results in

Error detected while processing function changes#GetDiff..<SNR>18_PlaceSigns:
line   10:
E155: Unknown sign: add

Thanks for the feedback.

I don't see this with the latest commit. Can you please try HEAD and
check if this error still persists? Thanks!

regards,

Christian

Anwender1: Mein Windows ist in 6 Monaten noch NIE abgestürzt.
Anwender2: Ein halbes Jahr ohne Strom - das ist hart!

@chrisbra chrisbra closed this May 22, 2013

The problem still persists. I used a clean .vimrc with no other plugins. Let me know if you can't reproduce, then I'll post my exact configuration.

Owner

chrisbra commented May 22, 2013

Hi mpfusion!

On Mi, 22 Mai 2013, mpfusion wrote:

The problem still persists. I used a clean .vimrc with no other plugins. Let me know if you can't reproduce, then I'll post my exact configuration.

Yes please do. I can't reproduct this.

regards,

Christian

Wie man sein Kind nicht nennen sollte:
Manni Küre

git clone git://github.com/chrisbra/changesPlugin.git ~/.vim
cat > ~/.vimrc << EOF
set nocompatible
filetype off
let g:changes_autocmd=1
let g:changes_vcs_check=1
filetype plugin indent on
EOF
git init somedir; cd somedir
touch foo; git add foo;
echo 'foo'>foo; git commit -m 'init'
vi -c DisableChanges foo

Then in vim:

:EnableChanges

Error detected while processing function changes#GetDiff..<SNR>9_PlaceSigns:
line   10:
E155: Unknown sign: add

My vim:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 11 2013 10:57:57)
Included patches: 1-806
Compiled by marco@homerow
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff 
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi 
+file_in_path +find_in_path +float +folding -footer +fork() +gettext 
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall 
+linebreak +lispindent +listcmds +localmap +lua +menu +mksession +modify_fname 
+mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm 
+mouse_sgr -mouse_sysmouse +mouse_urxvt +mouse_xterm +multi_byte +multi_lang 
-mzscheme +netbeans_intg +path_extra +perl +persistent_undo +postscript 
+printer +profile +python -python3 +quickfix +reltime +rightleft +ruby 
+scrollbind +signs +smartindent -sniff +startuptime +statusline -sun_workshop 
+syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
 +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual 
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup 
+X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save 

I just checked against Debian stock vim:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May  6 2013 03:22:52)
Included patches: 1-923
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by jamessan@debian.org

But it's the same error.

chrisbra added a commit that referenced this issue May 22, 2013

Fixes issue #7
Make sure signs exist, before using them.
Owner

chrisbra commented May 22, 2013

Hi mpfusion!

On Mi, 22 Mai 2013, mpfusion wrote:

git clone git://github.com/chrisbra/changesPlugin.git ~/.vim
cat > ~/.vimrc << EOF
set nocompatible
filetype off
let g:changes_autocmd=1
let g:changes_vcs_check=1
filetype plugin indent on
EOF
git init somedir; cd somedir
touch foo; git add foo;
echo 'foo'>foo; git commit -m 'init'
vi -c DisableChanges foo

Then in vim:

:EnableChanges

Error detected while processing function changes#GetDiff..<SNR>9_PlaceSigns:
line   10:
E155: Unknown sign: add

Thanks. That was fast. I see the error and have already pushed an
update. Please check with current HEAD, the issue should now be solved.
Thanks for the feedback.

regards,

Christian

Kein Mensch kann ein reiner Spezialist sein, ohne im buchstäblichen
Sinn ein Idiot zu sein.
-- George Bernard Shaw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment