Closed shewer closed 1 month ago
@hchunhui 请问能在有空的时候,review 下这个 PR 是否合适吗
看起来没问题。要是验证过可以解决原始问题的话我就合并了。@mirtlebot
在 api_console 里面测试没问题,已经修复:
local F = {}
function F.init( env )
env.foo = Memory( env.engine, env.engine.schema)
end
function F.func( input, env )
for cand in input:iter() do
cand.comment = '*' -- test this lua being called
yield( cand )
end
end
function F.fini(env)
if env.foo.disconnect then
print('disconnecting')
env.foo:disconnect()
else
print('manual gc')
env.foo = nil
collectgarbage( 'collect' )
end
end
return F
@sci-42ver 你提的 bug 解决了,可以直接往里面写词汇了,可以将就着用了。
@sci-42ver 你提的 bug 解决了,可以直接往里面写词汇了,可以将就着用了。
感谢提醒。Arch Linux librime作相应更新后,我试一下。
解決 librime Session clear() 時 ,掛在 env 的 component 還未清理 如 #335