Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Migrate core plugins to C?

未关闭
#692 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

@ItsZariep 已经在做这个了。

开始于 2025年9月10日。

  • #694 来自 @ItsZariep —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, python
领域
desktop

调研方向

首先检查链接的 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:

Remove python3 loader
The loader is nonfunctional as of pygobject 3.52 because the latter was ported to libgirepository-2.0, which cannot be loaded together with libgirepository-1.0, which libpeas still depends on.

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

linuxmint/xed 的其他 Issue

查看 linuxmint/xed 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。