After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619475 - Word completion warnings 'Could not find word to remove in buffer'
Word completion warnings 'Could not find word to remove in buffer'
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
2.10.x
Other Linux
: Normal minor
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2010-05-24 02:27 UTC by Derek Veit
Modified: 2013-06-08 18:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30



Description Derek Veit 2010-05-24 02:27:24 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
Comment 1 jessevdk@gmail.com 2010-05-24 08:49:59 UTC
Yes we know about this bug. It's not really a big problem, but definitely a bug.
Comment 2 Sébastien Wilmet 2013-06-08 16:52:03 UTC
The commits at

https://git.gnome.org/browse/gtksourceview/log/?h=wip/fix-completion-words

normally fix this bug.
Comment 3 Sébastien Wilmet 2013-06-08 18:21:19 UTC
Pushed to the master branch. Unit tests will maybe be written, but some code refactoring would be needed to do that.