ervandew/eclim — Issue #100: eclim with pyclewn
Author: dclaude
Created: 2011-11-03 09:57:28+00:00
State: open

Hi

I ran into trouble when I used "pyclewn vim plugin" after eclim installation.
(Pyclewn allows using vim as a frontend to gdb)

Both eclim and pyclewn plugin use "Vim NetBeans Protocol".

To reproduce the problem you can do the following sequence in vim when eclim is enabled:
:Pyclewn
:Cfile

It opens a buffer named "(clewn)_console". This buffer shows gdb output.
When this buffer appears is displayed vim enters an infinite loop where eclim keeps sending "invalid bufferEnter commands" to gdb.
The following error message is displayed in gdb output: 'Undefined command: "bufferEnter"'
(A similar problem occurs when a buffer is saved: 'Undefined command: "unmodified"').

I only started to use vim very recently so I don't know how to fix that in a clean way but to workaround this issue I added a:
'if !bufexists("(clewn)_console")'
in /.vim/eclim/autoload/eclim/vimplugin.vim
in functions:
eclim#vimplugin#BufferWritten()
and
eclim#vimplugin#BufferEnter()

If needed you can find below how I installed pyclewn:
download pyclewn-1.7.py2.tar.gz from http://pyclewn.sourceforge.net/
cd ~/tmp
tar xvfz ~/Downloads/vim/pyclewn-1.7.py2.tar.gz
cd pyclewn-1.7.py2
sudo mkdir /opt/pyclewn-1.7
sudo chown -R /opt/pyclewn-1.7
sudo chgrp -R /opt/pyclewn-1.7
vimdir=~/.vim python setup.py install --force --home=/opt/pyclewn-1.7
sudo ln -s /opt/pyclewn-1.7/bin/pyclewn /usr/local/bin/pyclewn

I would be really great if you could provide us with a fix for this one.
Thanks a lot !