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 756250 - Bad interaction between "code snippets" and "autocompletion plugin" in gedit
Bad interaction between "code snippets" and "autocompletion plugin" in gedit
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.10.x
Other Linux
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-08 15:57 UTC by Marc B
Modified: 2019-03-23 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marc B 2015-10-08 15:57:10 UTC
Distribution: 
   plain ubuntu 14.04 64bits (did not occur in 12.04)
packages versions: 
   gedit 3.10.4-0ubuntu4
   gedit-plugins 3.10.1-1ubuntu2

I have activated the completion plugin provided in the
'Edit>Preference>Plugins' menu.
When using a code snippet that uses variables to put the same text at various places, autocompleting this text causes a mess in the snippet.

Example: with the following test snippet

    begin($1) ... end($1)

suppose I start typing 'wh...' in place of $1 and 'while' is proposed by the autocompletion plugin, then if I press enter, I get something like

   begin(whwhilewhwhile)

instead of

   begin(while) ... end(while)

Moreover pressing ctrl+z to cancel yiels even messier results.
Comment 1 Sébastien Wilmet 2015-10-08 18:32:05 UTC
Works fine with gedit 3.18.
gedit 3.10 is no longer supported, at least not upstream.
When filing bugs upstream, it is recommended to use a recent version…
See: https://wiki.gnome.org/Apps/Gedit/ReportingBugs
Comment 2 Marc B 2015-10-09 13:26:57 UTC
I was suggested to report the bug upstream by Launchpad people (I originally posted the bug there). sorry about that.