Migrate core plugins to C?
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the linked C rewrite and the reported libpeas Python loader failure affecting Text Size, Join Lines, and Open URI. The work is done when the affected core plugins are migrated to C and load without depending on the broken Python plugin loader while retaining their existing functionality.
Written by the indexing model from the issue text.
Description
As the title says, it might be a good idea to migrate core plugins to C. In recent months, most rolling release systems, like Arch Linux, have broken Xed plugins because:
As a consequence, core Xed plugins written in Python don’t load because the plugin loader fails:
(xed:19216): libpeas-WARNING **: 12:31:31.714: Failed to load module 'python3loader': /usr/lib/libpeas-1.0/loaders/libpython3loader.so: cannot open shared object file: No such file or directory
(xed:19216): libpeas-WARNING **: 12:31:31.714: Could not load plugin loader 'python3'
** (xed:19216): WARNING **: 12:31:31.714: Failed to load builtin plugin: Text Size
** (xed:19216): WARNING **: 12:31:31.714: Failed to load builtin plugin: Join Lines
** (xed:19216): WARNING **: 12:31:31.714: Failed to load builtin plugin: Open URI
This has happened multiple times already, so I propose migrating these plugins to C, as some plugins, like Text Size, are fundamental features.
Plugins written in C don’t have this problem. I’m currently rewriting these plugins in C but I’m not sure if there are any considerations I should keep in mind during the process.
- Dominant language
- C
- Stars
- 555
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/xed
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Allow pkexec xedOpenFEATURE REQUEST
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
xed 3.8.9 hangs at startup when GTK4 is installed: Python plugins load Gtk-4.0 typelib into a GTK3 processPossibly taken @ronitgupta138 claimed this 9 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#171 · 1 comment ·
Maintainers usually reply within 1 day
-
[P2] Workspace updates silently ignore forbidden assignments while staging the rowPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
Maintainers usually reply within 4 days
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/vcpkg#54338 · 1 comment ·
Maintainers usually reply within 2 days
-
area:http-gateway good first issue priority:low type:docs
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crazy-goat/php-fpm-ng#828 ·
Maintainers usually reply within 1 day