On Tue, Apr 17, 2012 at 07:56:57AM +0200, Christian Brabandt wrote:
> On Mon, April 16, 2012 20:37, Ali Vakilzade wrote:
> > when I want to use python-completion with Gtk3 library vim shows a bunch
> > of error messages and stops responding and I have to kill vim
> >
> > to reproduce this problem write this program:
> >
> > from gi.repository import Gtk
> > Gtk.<C-X><C-O>
> >
> > vim: 7.3.434
> >
> > error messages :
> >
> > ...
> > line 35: execute "python vimcomplete('" . cword . "', '" . a:base
> > . "')"
> > line 35: python vimcomplete('Gtk.', '')
> > Error detected while processing
> > function pythoncomplete#Complete:
> > line 35:
> > /usr/lib/python2.7/site-packages/gi/module.py:142: Warning: cannot
> > register existing type `GtkWidget'
> > Error detected while processing function pythoncomplete#Complete:
> > line 35:
> > g_type = info.get_g_type()
> > Error detected while processing function pythoncomplete#Complete:
> > line 35:
> > /usr/lib/python2.7/site-packages/gi/module.py:142: Warning: cannot add
> > class private field to invalid type '<invalid>'
> > Error detected while processing function pythoncomplete#Complete:
> > l
>
> I can reproduce the crash:
> ./vim -u NONE -U NONE -N -c "filetype plugin on |set ft=python|call
> append(0, ['from gi.repository import Gtk', 'Gtk.'])|exe \"norm
> /^Gtk\./e\<CR>a\<C-X>\<C-O>\""
> Vim: Erhielt tödliches Signal TRAP
> Vim: Sichern der Dateien...
> Vim: Beendet.
> zsh: trace trap (core dumped) ./vim -u NONE -U NONE -N -c
> gdb ./vim -u NONE -U NONE -N -c "filetype plugin on |set ft=python|call
> append(0, ['from gi.repository import Gtk', 'Gtk.'])|exe \"norm
> /^Gtk\./e\<CR>a\<C-X>\<C-O>\""
> -- Omni completion (^O^N^P) -- Searching...
> Gtk-ERROR **: GTK+ 2.x symbols
> detected. Using GTK+ 2.x and
> GTK+ 3 in the same process is
> not supportedAs the log says, you can't mix GTK+ 2.x and GTK+ 3.x libraries in the same process. Your Vim either needs to be built without the GUI or using one of the non-Gtk GUI toolkits. -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
signature.asc
Description: Digital signature
