我自己做的rime配置文件中包含了五笔和拼音输入法。一直在linux和windows下稳定运行。直到有一天我发现拼音输入法无法使用了。
查日志
结束掉现有的进行
bash
pkill -f fcitx5
以前台模式启动并开启冗余日志:
bash
fcitx5 -d
当我切到拼音输入法后,报错日志如下:
bash
E20260408 17:34:49.505192 140386822187648 lua_gears.cc:83] Lua Compoment of autoload error:( module: *search name_space: radical_pinyin status: 2 ): error loading module 'search' from file '/home/itkey/.local/share/fcitx5/rime/lua/search.lua':
/home/itkey/.local/share/fcitx5/rime/lua/search.lua:24: attempt to assign to const variable 'i'
E20260408 17:34:49.505210 140386822187648 lua_gears.cc:131] Lua Compoment of initialize error:( module: *search name_space: radical_pinyin func type: string ): func type error expect function
E20260408 17:35:07.826288 140386822187648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f')
E20260408 17:35:0
通过日志可以定位到rime/lua/search.lua 文件出问题了。
我这个文件当时取自https://github.com/iDvel/rime-ice这个项目,然后我到这个项目中取一个最新的文件,发现问题解决了。