Migrate core plugins to C?
评估
调研方向
首先检查链接的 C 重写版本,以及所报告的影响 Text Size、Join Lines 和 Open URI 的 libpeas Python 加载器故障。当受影响的核心插件迁移到 C,并且无需依赖损坏的 Python 插件加载器即可加载,同时保留其现有功能时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C
- 星标
- 555
- 派生
- 118
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
linuxmint/xed 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
Allow pkexec xed未关闭FEATURE REQUEST
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 38/100
-
xed 3.8.9 hangs at startup when GTK4 is installed: Python plugins load Gtk-4.0 typelib into a GTK3 process可能已有人在做 @ronitgupta138 于 11 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 48/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
libsdl-org/SDL#16464 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
backend
难度 2/5 1-3 小时 新手友好度 68/100
BasedHardware/omi#20940 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复