Closed Coloryr closed 7 months ago
无论是传入字符串还是字符串指针都没有用
https://github.com/rime/librime/blob/6d5bbc13f8a07595b74283d3dd7de6b6f05a63e1/src/rime/lever/deployment_tasks.cc#L255-L257 这里转换出错导致source_path_没有值
https://github.com/rime/librime/blob/6d5bbc13f8a07595b74283d3dd7de6b6f05a63e1/src/rime/lever/deployment_tasks.cc#L327 这里报source_path_没有值,传入的参数是不是有问题,在小狼毫没有找到这个接口的应用
我直接传入的字符串指针也不行
似乎不是这么用的,参数类型不对,RimeDeploySchema的构建函数才接受字符串路径?别的地方调只能传TaskInitializer 类型的?不是很懂c++,只有new SchemaUpdate这种才能调到构造函数吧 如: https://github.com/rime/librime/blob/6d5bbc13f8a07595b74283d3dd7de6b6f05a63e1/src/rime/lever/deployment_tasks.cc#L215 https://github.com/rime/librime/blob/6d5bbc13f8a07595b74283d3dd7de6b6f05a63e1/src/rime/lever/deployment_tasks.cc#L462
似乎你正在自己做一个rime前端,应该不用这样单独传方案文件,可以参考小狼毫的rime和前端对接代码,librime有一个固定的启动流程,只需要传入用户目录和共享目录即可,而不是喂方案文件
有哪里可以参考的吗
這個 any_cast
出錯,我改一下你再試試。
https://github.com/rime/librime/commit/51076a8ec9ccf227d10a900c95945b50ef3a7d48
我在action找到了
I20240315 18:04:19.479589 11312 config_data.cc:72] loading config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\rime-pinyin-simp-master\\pinyin_simp.schema.yaml"'.
W20240315 18:04:19.480011 11312 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\build\\pinyin_simp.schema.yaml"'.
I20240315 18:04:19.480066 11312 deployment_tasks.cc:394] missing build info
W20240315 18:04:19.480119 11312 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\pinyin_simp.schema.yaml"'.
I20240315 18:04:19.480143 11312 auto_patch_config_plugin.cc:29] auto-patch pinyin_simp.schema:/__patch: pinyin_simp.custom:/patch?
W20240315 18:04:19.480177 11312 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\build\\pinyin_simp.schema.yaml"'.
E20240315 18:04:19.481638 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\DirectX.log"
E20240315 18:04:19.481817 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\DtcInstall.log"
E20240315 18:04:19.481930 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\LAN.log"
E20240315 18:04:19.482033 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\lsasetup.log"
E20240315 18:04:19.482136 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\PFRO.log"
E20240315 18:04:19.482241 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\setupact.log"
E20240315 18:04:19.482362 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\setuperr.log"
E20240315 18:04:19.482519 11312 deployment_tasks.cc:669] remove: 拒绝访问。: "C:\Windows\WindowsUpdate.log"
I20240315 18:04:19.482600 11312 deployment_tasks.cc:85] updating rime installation info.
I20240315 18:04:19.482637 11312 config_data.cc:72] loading config file '".\\installation.yaml"'.
I20240315 18:04:19.482732 11312 deployment_tasks.cc:103] installation info exists. installation id: ec703055-85a0-417b-94a2-66e73948a602
I20240315 18:04:19.482761 11312 deployment_tasks.cc:114] sync dir: ".\\sync"
I20240315 18:04:19.482784 11312 deployment_tasks.cc:122] previous Rime version: 1.10.0
W20240315 18:04:19.483504 11312 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\user.yaml"'.
I20240315 18:04:19.483538 11312 deployment_tasks.cc:78] modifications detected. workspace needs update.
I20240315 18:04:19.483554 11312 rime_api.cc:106] changes detected; starting maintenance.
I20240315 18:04:19.483571 11312 deployer.cc:118] starting work thread for 3 tasks.
I20240315 18:04:19.483602 1916 deployer.cc:79] running deployment tasks:
I20240315 18:04:19.486195 1916 deployment_tasks.cc:165] updating workspace.
W20240315 18:04:19.486255 1916 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\build\\default.yaml"'.
I20240315 18:04:19.486283 1916 deployment_tasks.cc:394] missing build info
W20240315 18:04:19.486342 1916 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\default.yaml"'.
I20240315 18:04:19.486363 1916 auto_patch_config_plugin.cc:29] auto-patch default:/__patch: default.custom:/patch?
W20240315 18:04:19.486432 1916 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\build\\default.yaml"'.
W20240315 18:04:19.486467 1916 deployment_tasks.cc:184] schema list not defined.
I20240315 18:04:19.486488 1916 deployment_tasks.cc:583] clean up trash.
I20240315 18:04:19.486560 1916 deployer.cc:96] 3 tasks ran: 2 success, 1 failure.
可以了
解決了就關閉工單吧。
不对,还是没法加载
I20240318 09:20:02.940923 40524 deployment_tasks.cc:85] updating rime installation info.
I20240318 09:20:02.940933 40524 config_data.cc:72] loading config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\installation.yaml"'.
I20240318 09:20:02.941045 40524 deployment_tasks.cc:103] installation info exists. installation id: ec703055-85a0-417b-94a2-66e73948a602
I20240318 09:20:02.941049 40524 deployment_tasks.cc:114] sync dir: "E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\sync"
I20240318 09:20:02.941053 40524 deployment_tasks.cc:122] previous Rime version: 1.10.0
I20240318 09:20:02.941062 40524 deployer.cc:118] starting work thread for 3 tasks.
I20240318 09:20:02.941078 24560 deployer.cc:79] running deployment tasks:
I20240318 09:20:02.942674 24560 deployment_tasks.cc:165] updating workspace.
W20240318 09:20:02.942707 24560 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\default.yaml"'.
I20240318 09:20:02.942855 24560 deployment_tasks.cc:394] missing build info
W20240318 09:20:02.942946 24560 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\default.yaml"'.
I20240318 09:20:02.942952 24560 auto_patch_config_plugin.cc:29] auto-patch default:/__patch: default.custom:/patch?
W20240318 09:20:02.943006 24560 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\default.yaml"'.
W20240318 09:20:02.943011 24560 deployment_tasks.cc:184] schema list not defined.
I20240318 09:20:02.943017 24560 deployment_tasks.cc:583] clean up trash.
I20240318 09:20:02.943081 24560 deployer.cc:96] 3 tasks ran: 2 success, 1 failure.
I20240318 09:20:02.943223 40524 config_data.cc:72] loading config file '"E:/code/RimeSharp/RimeSharp.Test/bin/Debug/net8.0/rime-pinyin-simp-master/pinyin_simp.schema.yaml"'.
W20240318 09:20:02.943581 40524 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\pinyin_simp.schema.yaml"'.
I20240318 09:20:02.943610 40524 deployment_tasks.cc:394] missing build info
W20240318 09:20:02.943670 40524 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\pinyin_simp.schema.yaml"'.
I20240318 09:20:02.943674 40524 auto_patch_config_plugin.cc:29] auto-patch pinyin_simp.schema:/__patch: pinyin_simp.custom:/patch?
W20240318 09:20:02.943689 40524 config_data.cc:69] nonexistent config file '"E:\\code\\RimeSharp\\RimeSharp.Test\\bin\\Debug\\net8.0\\pinyin_simp.schema.yaml"'.
设置问题,解决了
Describe the bug 这是我的代码
To Reproduce
Expected behavior 这是日志输出,它一直找不到文件
Log If applicable, add crash log to quick focus your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Flavor(please complete the following information): Select your flavor:
Package:
Additional context 另外只有Clang编译出来的可以加载,msvc和mingw编译出来的没法加载