Closed jmui114 closed 1 month ago
你是执行完脚本之后,几个配置共存的吗
无法输入中文应该是报错了 你看看Log里面的报错
你是执行完脚本之后,几个配置共存的吗
清空安装目录的“data”文件夹内容后重新拉取+指定新的空白用户文件夹,重新部署之后也是无法输入中文
你是执行完脚本之后,几个配置共存的吗
几个配置共存的话: 清空配置文件夹》拉取白霜配置》重新部署 ➡️ 无法输入中文 在上面基础上》拉取雾凇配置覆盖》重新部署 ➡️ 唯独白霜方案不能输入中文,其他几个方案都能输入中文
无法输入中文应该是报错了 你看看Log里面的报错
Log file created at: 2024/09/25 14:40:20 Running on machine: LKL-5600G Running duration (h:mm:ss): 0:00:04 Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg E20240925 14:40:20.018862 19768 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:40:20.019745 19768 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:40:20.020486 19768 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:40:20.793132 16968 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:40:20.793240 16968 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:40:20.793716 16968 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:40:24.532182 21980 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:40:24.532293 21980 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:40:24.532740 21980 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:40:26.614042 21980 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier') E20240925 14:40:56.888386 19768 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier') E20240925 14:41:07.011800 19768 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:41:07.011863 19768 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:41:07.012343 19768 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:41:08.161962 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:08.174553 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:08.245062 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:08.245351 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:08.364260 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:08.364509 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:08.634662 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:08.635015 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:08.859138 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:08.859483 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:10.419511 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:10.419835 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:10.614056 19768 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:41:10.614344 19768 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:41:14.895932 20532 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:41:14.895977 20532 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:41:14.896442 20532 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:41:15.919196 20532 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier') E20240925 14:42:12.809474 15204 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier') E20240925 14:42:12.810682 15204 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier') E20240925 14:43:51.957490 20648 lua_gears.cc:83] Lua Compoment of autoload error:( module: *force_gc name_space: *force_gc status: 2 ): module 'force_gc' not found: no field package.preload['force_gc'] no file 'D:\Run_Portable\Rime_data\lua\force_gc.lua' no file 'D:\Run_Portable\Rime_data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\data\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\lua\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\..\share\lua\5.4\force_gc\init.lua' no file '.\force_gc.lua' no file '.\force_gc\init.lua' no file 'D:\Program Files\Rime\weasel-0.16.1\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\..\lib\lua\5.4\force_gc.dll' no file 'D:\Program Files\Rime\weasel-0.16.1\loadall.dll' no file '.\force_gc.dll' E20240925 14:43:51.957533 20648 lua_gears.cc:131] Lua Compoment of initialize error:( module: *force_gc name_space: *force_gc func type: string ): func type error expect function E20240925 14:43:51.958996 20648 lua_gears.cc:104] Lua Compoment of initialize error:( module: *aux_code name_space: *aux_code status: 2 ): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:76: Unable to open auxiliary code file. E20240925 14:43:53.412373 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:53.424606 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:53.487301 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:53.487697 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:53.584254 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:53.584865 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:53.719260 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:53.719674 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:53.914291 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:53.914718 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:55.310367 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:55.310785 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:43:55.497182 20648 lua_gears.cc:17] LuaTranslation::Next error(2): [string "table.unpack = table.unpack or unpack..."]:4: attempt to call a string value (upvalue 'f') E20240925 14:43:55.497576 20648 lua_gears.cc:17] LuaTranslation::Next error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:196: bad argument #2 to 'find' (string expected, got nil) E20240925 14:44:02.679769 20648 lua_gears.cc:159] LuaFilter::~LuaFilter of *aux_code error(2): D:\Program Files\Rime\weasel-0.16.1\data\lua\aux_code.lua:266: attempt to index a nil value (field 'notifier')
这个就是使用白霜方案时的报错log
看上去好像是因为aux_code.lua引起的。 里面的代码有:
----------------
-- 閱讀輔碼文件 --
----------------
function AuxFilter.readAuxTxt(txtpath)
-- log.info("** AuxCode filter", 'read Aux code txt:', txtpath)
local defaultFile = 'moqi_aux_code.txt'
local userPath = rime_api.get_user_data_dir() .. "/lua/aux_code/"
local fileAbsolutePath = userPath .. txtpath .. ".txt"
你看下,你的这个路径有文件吗
我好像有点明白了 你没有使用“用户文件夹”
而是使用的“程序文件夹” D:\Program Files\Rime\weasel-0.16.1\data
你应该用“用户文件夹”的
在右下角小狼毫输入法右键 打开“用户文件夹”
应该把配置放那里
我好像有点明白了 你没有使用“用户文件夹” 而是使用的“程序文件夹”
D:\Program Files\Rime\weasel-0.16.1\data
你应该用“用户文件夹”的 在右下角小狼毫输入法右键 打开“用户文件夹” 应该把配置放那里
破案了,感谢指导,配置放在“用户文件夹”根目录后重新部署,就可以正常初步使用了。
但这会引发新的问题,配置放在“用户文件夹”根目录,会把其他方案重名的补丁配置覆盖掉,比如“installation.yaml“是跨设备云同步个人词库的补丁。
像雾凇拼音输入方案对这一块采用的是“干湿分离”,补丁配置使用“用户文件夹”,方案配置使用的是“程序文件夹”,方案配置可以经常拉取覆盖更新,而补丁配置是基本不会动到。
我这里面就没有“installation.yaml” "像雾凇拼音输入方案对这一块采用的是“干湿分离”" 没有这种说法吧,所有的方案 包括雾凇,都应该放到用户文件夹 程序文件夹 用户不应该去修改它
补丁配置都是custom.yaml,我的方案并不包含custom.yaml
我这里面就没有“installation.yaml” "像雾凇拼音输入方案对这一块采用的是“干湿分离”" 没有这种说法吧,所有的方案 包括雾凇,都应该放到用户文件夹 程序文件夹 用户不应该去修改它
好的,感谢指点,是我之前的散装配置走偏了,晚上我再倒腾一下
这是以前写的脚本,克隆地址切换为白霜运行一遍之后,就会出现无法输入中文,表现为无选项框。
我用户文件夹里面的配置内容如下: 不知道是不是受用户文件夹这上面的配置污染导致出现无法输入中文。下面的4个方案中,切换成雾凇拼音之后可以正常输入中文,剩下的三个都没法唤出输入法选词界面。