RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1235572 - Not all plugins in the gedit core are packaged
Summary: Not all plugins in the gedit core are packaged
Keywords:
Status: CLOSED DUPLICATE of bug 1210553
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gedit
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: desktop-rebase
TreeView+ depends on / blocked
 
Reported: 2015-06-25 08:32 UTC by Matěj Cepl
Modified: 2015-07-23 15:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-25 12:21:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
suggested patch (13.59 KB, patch)
2015-06-25 10:04 UTC, Matěj Cepl
no flags Details | Diff

Description Matěj Cepl 2015-06-25 08:32:06 UTC
Description of problem:
matej@mitmanek: ~$ rpm -q gedit
gedit-3.14.3-1.el7.x86_64
matej@mitmanek: ~$ rpm -ql gedit|grep lib64/.*/plugins
/usr/lib64/gedit/plugins
/usr/lib64/gedit/plugins/docinfo.plugin
/usr/lib64/gedit/plugins/filebrowser.plugin
/usr/lib64/gedit/plugins/libdocinfo.so
/usr/lib64/gedit/plugins/libfilebrowser.so
/usr/lib64/gedit/plugins/libmodelines.so
/usr/lib64/gedit/plugins/libsort.so
/usr/lib64/gedit/plugins/libspell.so
/usr/lib64/gedit/plugins/libtime.so
/usr/lib64/gedit/plugins/modelines.plugin
/usr/lib64/gedit/plugins/sort.plugin
/usr/lib64/gedit/plugins/spell.plugin
/usr/lib64/gedit/plugins/time.plugin
matej@mitmanek: ~$ rpm -ql gedit|grep lib64/.*/plugins|wc -l
13
matej@mitmanek: ~$ 

But when I build the package locally (I guess the point is that gedit-3.14.3-1 was build when libpeas was still not present or something?) I get

matej@mitmanek: gedit (rhel-7.2 %)$ rpm -qlp x86_64/gedit-3.14.3-1.el7.x86_64.rpm |grep lib64/.*/plugins|wc -l
123
matej@mitmanek: gedit (rhel-7.2 %)$ 

(missing plugins include External Tools, Snippets, QuickOpen, which are quite useful).

Unfortunately python plugins need some more patching:

matej@mitmanek: scratch-build (rhel-7.2 %)$ gedit
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/devhelp.py", line 49, in do_activate
    self._insert_menu()
  File "/usr/lib64/gedit/plugins/devhelp.py", line 62, in _insert_menu
    manager = self.window.get_ui_manager()
AttributeError: 'Window' object has no attribute 'get_ui_manager'
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/externaltools/appactivatable.py", line 84, in do_activate
    self._library.set_locations(os.path.join(self.plugin_info.get_data_dir(), 'tools'))
  File "/usr/lib64/gedit/plugins/externaltools/library.py", line 67, in set_locations
    self.tree = ToolDirectory(self, '')
  File "/usr/lib64/gedit/plugins/externaltools/library.py", line 154, in __init__
    self._load()
  File "/usr/lib64/gedit/plugins/externaltools/library.py", line 174, in _load
    self.tools.append(Tool(self, p))
  File "/usr/lib64/gedit/plugins/externaltools/library.py", line 224, in __init__
    self._load()
  File "/usr/lib64/gedit/plugins/externaltools/library.py", line 249, in _load
    fp = open(filename, 'r', 1, encoding='utf-8')
TypeError: file() takes at most 3 arguments (4 given)
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/externaltools/windowactivatable.py", line 115, in do_activate
    self.actions = ToolActions(self._library, self.window, self._output_buffer)
  File "/usr/lib64/gedit/plugins/externaltools/windowactivatable.py", line 36, in __init__
    self.update()
  File "/usr/lib64/gedit/plugins/externaltools/windowactivatable.py", line 57, in update
    self._insert_directory(self._library.tree)
AttributeError: 'ToolLibrary' object has no attribute 'tree'
/usr/lib64/python2.7/site-packages/gi/types.py:282: RuntimeWarning: Mixin class snippets.signals.Signals is an old style class, please update this to derive from "object".
  RuntimeWarning)
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/snippets/windowactivatable.py", line 52, in do_activate
    self.accel_group = Library().get_accel_group(None)
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 874, in get_accel_group
    self.ensure(language)
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 908, in ensure
    self.ensure_files()
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 926, in ensure_files
    self.add_user_library)
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 850, in find_libraries
    addcb(f)
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 830, in add_user_library
    return self.add_library(library)
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 790, in add_library
    library.ensure_language()
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 519, in ensure_language
    for element in self.parse_xml(256):
  File "/usr/lib64/gedit/plugins/snippets/library.py", line 456, in parse_xml
    f = open(self.path, "r", encoding='utf-8')
TypeError: 'encoding' is an invalid keyword argument for this function
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/snippets/windowactivatable.py", line 66, in do_deactivate
    if self.accel_group:
AttributeError: 'WindowActivatable' object has no attribute 'accel_group'
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/externaltools/windowactivatable.py", line 125, in do_deactivate
    self.actions.deactivate()
AttributeError: 'NoneType' object has no attribute 'deactivate'
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/devhelp.py", line 52, in do_deactivate
    self._remove_menu()
  File "/usr/lib64/gedit/plugins/devhelp.py", line 55, in _remove_menu
    manager = self.window.get_ui_manager()
AttributeError: 'Window' object has no attribute 'get_ui_manager'
Traceback (most recent call last):
  File "/usr/lib64/gedit/plugins/externaltools/appactivatable.py", line 139, in do_deactivate
    self.menu.deactivate()
AttributeError: 'NoneType' object has no attribute 'deactivate'
matej@mitmanek: scratch-build (rhel-7.2 %)$ 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Matěj Cepl 2015-06-25 10:04:53 UTC
Created attachment 1043033 [details]
suggested patch

Comment 2 Matěj Cepl 2015-06-25 10:06:13 UTC
Builds in BREW http://brewweb.devel.redhat.com/brew/taskinfo?taskID=9420573

Comment 3 Matěj Cepl 2015-06-25 12:21:13 UTC

*** This bug has been marked as a duplicate of bug 1210553 ***


Note You need to log in before you can comment on or make changes to this bug.