Gedit fails to load Plugins

Asked by Mathias Heinze on 2011-05-18

hi

yesterday i made a fresh install of ubuntu 11.04 and afterwards i replaced the unity-desktop with gnome 3. and now gedit fails to load the plugins (the shipped plugins as well as the ones provided by the gedit-plugins-package). at least some of the standard plugins are shown to be active in the preferences-dialog but are not working either.

i tried to reinstall gedit and gedit-common but still the same. this is what says the terminal when starting gedit:

(gedit:6572): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found
(gedit:6572): libpeas-WARNING **: Type not found in introspection: 'GeditAppActivatable' `menu_proxy_module_load': gedit: undefined symbol: menu_proxy_module_load
(gedit:6572): Gtk-WARNING **: Failed to load type module: (null)
...
(gedit:6572): libpeas-CRITICAL **: implement_interface_methods: assertion `iface_info != NULL' failed
(gedit:6572): libpeas-WARNING **: Type not found in introspection: 'GeditWindowActivatable'
(gedit:6572): libpeas-WARNING **: Type not found in introspection: 'GeditViewActivatable'
ERROR:root:Could not find any typelib for Gedit
...
from gi.repository import GObject, Gtk, Gedit
ImportError: cannot import name Gedit

any suggestions?

mat

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Curtis Hovey
Solved:
2011-05-18
Last query:
2011-05-18
Last reply:
2011-05-18
Best Curtis Hovey (sinzui) said : #1

You have two choices:
A. I think you need to go back to Unity/gnome2 desktop
B. Update all scriptable/extendable/plugable apps to gnome3/

Gnome3 uses GObject Introspection exclusively to expose an app's API to other tools. The members of the Gedit project contributed to libpeas which is a new plugin/extension system to manage the integration of plugins. It is used by several apps. The gedit team then introduced a plugin API to gedit that simplifies the libpeas API for plugins. The errors you are seeing are because the plugin does not provide the correct methods (GeditAppActivatable, GeditWindowActivatable, GeditViewActivatable) to run with gedit.

All gedit plugin must be rewritten to the new API. Gedit default plugins are already updated, but you need to install the correct version (3.x). Very few plugins work with Gedit 3 at this moment.

Thanks for the detailed info! I guess it's wait and see then...

mat

Thanks Curtis Hovey, that solved my question.

Jiajia Wang (wangj16) said : #4

Hi, I'm a newbie to Ubuntu. In simple terms, how do I get the latex gedit plugin working? It shows its installed but doesn't show up in gedit. Thanks!

Jiajia Wang (wangj16) said : #5

Hi, I'm a newbie to Ubuntu. In simple terms, how do I get the latex gedit plugin working? It shows its installed but doesn't show up in gedit. Thanks!

maurizio de santis (izietto) said : #6

Is it not possible to restore the compatibility with gnome2 plugins? I think that if I wait for people to update their plugins, I will use Gnome2 for the rest of my life :-)