Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin API: Can't insert button to editor #165

Closed
marcosdsanchez opened this issue Sep 9, 2015 · 3 comments
Closed

Plugin API: Can't insert button to editor #165

marcosdsanchez opened this issue Sep 9, 2015 · 3 comments
Labels
bug duplicate reproducible-in-git Issues that affect the current dev version

Comments

@marcosdsanchez
Copy link

I've just started using gtg yesterday and it worked great.

Today I open the program after doing my regular updates in my archlinux machine and noticed that tasks where not correctly added.

Exception trace:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/GTG/gtk/browser/browser.py", line 906, in on_add_task
    self.vmanager.open_task(uid, thisisnew=True)
  File "/usr/lib/python3.4/site-packages/GTG/gtk/manager.py", line 180, in open_task
    clipboard=self.clipboard)
  File "/usr/lib/python3.4/site-packages/GTG/gtk/editor/editor.py", line 189, in __init__
    self.pengine.onTaskLoad(self.plugin_api)
  File "/usr/lib/python3.4/site-packages/GTG/core/plugins/engine.py", line 260, in onTaskLoad
    plugin.instance.onTaskOpened(plugin_api)
  File "/usr/lib/python3.4/site-packages/GTG/plugins/send_email/sendEmail.py", line 48, in onTaskOpened
    plugin_api.add_toolbar_item(self.tb_Taskbutton)
  File "/usr/lib/python3.4/site-packages/GTG/core/plugins/api.py", line 169, in add_toolbar_item
    self.__toolbar.insert(widget, -1)
AttributeError: 'NoneType' object has no attribute 'insert'

Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/GTG/gtk/crashhandler.py", line 122, in _replacement_excepthook
    res = show_error_window(tb, add_apport_button=add_apport_button)
  File "/usr/lib/python3.4/site-packages/GTG/gtk/crashhandler.py", line 219, in show_error_window
    expander = Gtk.expander_new_with_mnemonic(_("_Details"))
  File "/usr/lib/python3.4/site-packages/gi/overrides/__init__.py", line 38, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3.4/site-packages/gi/module.py", line 137, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'expander_new_with_mnemonic'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/GTG/gtk/browser/browser.py", line 906, in on_add_task
    self.vmanager.open_task(uid, thisisnew=True)
  File "/usr/lib/python3.4/site-packages/GTG/gtk/manager.py", line 180, in open_task
    clipboard=self.clipboard)
  File "/usr/lib/python3.4/site-packages/GTG/gtk/editor/editor.py", line 189, in __init__
    self.pengine.onTaskLoad(self.plugin_api)
  File "/usr/lib/python3.4/site-packages/GTG/core/plugins/engine.py", line 260, in onTaskLoad
    plugin.instance.onTaskOpened(plugin_api)
  File "/usr/lib/python3.4/site-packages/GTG/plugins/send_email/sendEmail.py", line 48, in onTaskOpened
    plugin_api.add_toolbar_item(self.tb_Taskbutton)
  File "/usr/lib/python3.4/site-packages/GTG/core/plugins/api.py", line 169, in add_toolbar_item
    self.__toolbar.insert(widget, -1)
AttributeError: 'NoneType' object has no attribute 'insert'
@izidormatusov
Copy link
Contributor

I think this was caused by UI redesign by @jakubbrindza. We need to fix plugin APIs

As short term solution: you might want to disable plugins

@izidormatusov izidormatusov changed the title Exception thrown when creating new task Plugin API: Can't insert button to editor Sep 13, 2015
@izidormatusov izidormatusov added this to the 0.4 milestone Sep 13, 2015
@marcosdsanchez
Copy link
Author

Disabling plugins worked. Thanks @izidormatusov

@nekohayo nekohayo added duplicate reproducible-in-git Issues that affect the current dev version labels Dec 12, 2019
@nekohayo
Copy link
Member

Let's just consider this is going to be nuked as part of #222 eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug duplicate reproducible-in-git Issues that affect the current dev version
Projects
None yet
Development

No branches or pull requests

3 participants