hchunhui / librime-lua

Extending RIME with Lua scripts
BSD 3-Clause "New" or "Revised" License
359 stars 43 forks source link

rime_api_console 下,log.info 失效,鼠须管、小狼毫复现(1.11.2) #347

Closed mirtlebot closed 4 months ago

mirtlebot commented 6 months ago

rime_api_console 下,log.info 失效

local function test_log(input)
    print('test_log') 
    log.info('test_log') --> not work
    log.warning('test_log') --> work
    log.error('test_log') --> work
    for _ in input:iter() do
        _.comment = '*'
        yield(_)
    end
end
return test_log

@shewer

Originally posted by @mirtlebot in https://github.com/hchunhui/librime-lua/issues/340#issuecomment-2121584375

mirtlecn commented 4 months ago

这个是什么原因呢?有没有机会修复一下,没了这个插件一些有用信息不好打出来,只能在终端里面 print 测试了。

shewer commented 4 months ago

很久以前就是這樣, release mode 只有 error 會顯示在 console 上 如果要全顯示 可以用 debug mode 編譯

這是 librime 編譯環境設定有關 ,和librime-lua 接口無關

mirtlebot commented 4 months ago

ok~