GNOME Bugzilla – Bug 619475
Word completion warnings 'Could not find word to remove in buffer'
Last modified: 2013-06-08 18:21:19 UTC
In gedit, I had a file with hard tab indenting. I used find-and-replace to replace each hard tab with four spaces. While it performed the replacement, these warnings and many similar, with various items in the parentheses, were printed to the terminal: (gedit:8666): GtkSourceView-WARNING **: Could not find word to remove in buffer (window), this should not happen! (gedit:8666): GtkSourceView-WARNING **: Could not find word to remove in buffer (plugin), this should not happen! (gedit:8666): GtkSourceView-WARNING **: Could not find word to remove in buffer (self), this should not happen! (gedit:8666): GtkSourceView-WARNING **: Could not find word to remove in buffer (__init__), this should not happen! (gedit:8666): GtkSourceView-WARNING **: Could not find word to remove in buffer (def), this should not happen! I found that this only happens with the Word Completion plugin active, and it happens with all other plugins deactivated. I found that the warning message is in the code here: http://osdir.com/ml/general/2010-02/msg37447.html
Yes we know about this bug. It's not really a big problem, but definitely a bug.
The commits at https://git.gnome.org/browse/gtksourceview/log/?h=wip/fix-completion-words normally fix this bug.
Pushed to the master branch. Unit tests will maybe be written, but some code refactoring would be needed to do that.