-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add librime-lua plugin support. #25
Comments
You may need to remove librime package, and compile librime by yourself, since librime-lua support is not compiled in archlinux's package. The following build instructions should work:
|
failed. I will try to package into pkg, then use pacman to install a local package. uninstall librime$ sudo pacman -Rdd librime lua version:$ lua -v
Lua 5.3.5 Copyright (C) 1994-2018 Lua.org, PUC-Rio install librime & librime-lua pluginsgit clone https://github.com/rime/librime.git
cd librime
./install-plugins.sh hchunhui/librime-lua
make merged-plugins
sudo make install make install log
exec
|
According to the backtrace, the crash is caused by So either rebuild fcitx-rime, or checkout older version of librime (e.g. |
Alright. I rolled back the librime version to 1.5.3 and installed again. Clear previous version$ cd librime
$ sudo make uninstall
$ sudo pacman -Rdd librime fcitx-rime checkout version to 1.5.3$ git checkout 1.5.3
$ git log -n 1
commit 719542c9bc9fd941cd6fb977b2998557b0be5122 (HEAD, tag: 1.5.3)
Author: Chen Gong <[email protected]>
Date: Sat Jun 22 18:47:49 2019 +0800
chore(release): 1.5.3 :tada: make && make install$ make merged-plugins
$ sudo make install Reinstall fcitx-rime$ sudo pacman -Sdd fcitx-rime The bad news is that fcitx is not working. exec
|
solved. I upgraded fcitx4 to fcitx5 and it works perfectly. $ fcitx5 -v
4.99.0
However, the problems discussed above still exist in fcitx4 fcitx5 rime works fine in Librime 1.5.3(commit 719542c9bc9fd941cd6fb977b2998557b0be5122 (HEAD, tag: 1.5.3))
exec $ fcitx5
I instance.cpp:903] Override Enabled Addons: {}
I instance.cpp:904] Override Disabled Addons: {}
I addonmanager.cpp:177] Loaded addon unicode
I addonmanager.cpp:177] Loaded addon wayland
I addonmanager.cpp:177] Loaded addon quickphrase
I addonmanager.cpp:177] Loaded addon xcb
I addonmanager.cpp:177] Loaded addon waylandim
I isocodes.cpp:42] 639-3
I isocodes.cpp:42] 3166-1
I addonmanager.cpp:177] Loaded addon keyboard
I addonmanager.cpp:177] Loaded addon clipboard
I addonmanager.cpp:177] Loaded addon dbus
I addonmanager.cpp:177] Loaded addon dbusfrontend
I addonmanager.cpp:177] Loaded addon ibusfrontend
I addonmanager.cpp:177] Loaded addon xim
I inputmethodmanager.cpp:117] Found 676 input method(s) in addon keyboard
I addonmanager.cpp:177] Loaded addon kimpanel
I addonmanager.cpp:177] Loaded addon classicui
I addonmanager.cpp:177] Loaded addon notificationitem
I kimpanel.cpp:100] Kimpanel new owner
=========================
Fcitx 4.99.0 -- Get Signal No.: 11
Date: try "date -d @1577001644" if you are using GNU date ***
ProcessID: 25680
fcitx5(+0x978e)[0x55fbb2e6b78e]
/usr/lib/libc.so.6(+0x3bfb0)[0x7f2e27e22fb0]
/usr/lib/libc.so.6(+0x161727)[0x7f2e27f48727]
/usr/lib/librime.so.1(_ZN4rime12SetupLoggingEPKciS1_+0x2b)[0x7f2e2510357b]
/usr/lib/fcitx5/rime.so(+0x96ee)[0x7f2e252e46ee]
/usr/lib/fcitx5/rime.so(+0x9a30)[0x7f2e252e4a30]
/usr/lib/fcitx5/rime.so(+0xa418)[0x7f2e252e5418]
/usr/lib/fcitx5/rime.so(+0xbdec)[0x7f2e252e6dec]
/usr/lib/libFcitx5Core.so.5(+0x5c8f7)[0x7f2e2830b8f7]
/usr/lib/libFcitx5Core.so.5(+0x5f87d)[0x7f2e2830e87d]
/usr/lib/libFcitx5Core.so.5(_ZN5fcitx12AddonManager5addonERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb+0xcd)[0x7f2e2830c74d]
/usr/lib/libFcitx5Core.so.5(_ZN5fcitx8Instance19activateInputMethodERNS_17InputContextEventE+0x201)[0x7f2e282e8f81]
/usr/lib/libFcitx5Core.so.5(+0x3a6d1)[0x7f2e282e96d1]
/usr/lib/libFcitx5Core.so.5(_ZN5fcitx8Instance9postEventERNS_5EventE+0x304)[0x7f2e282e5844]
/usr/lib/libFcitx5Core.so.5(+0x44f42)[0x7f2e282f3f42]
/usr/lib/libFcitx5Core.so.5(+0x3727d)[0x7f2e282e627d]
/usr/lib/libFcitx5Core.so.5(_ZN5fcitx8Instance9postEventERNS_5EventE+0x304)[0x7f2e282e5844]
/usr/lib/fcitx5/dbusfrontend.so(+0xe68b)[0x7f2e26ec568b]
/usr/lib/libFcitx5Utils.so.1(+0x3b764)[0x7f2e2822e764]
/usr/lib/libsystemd.so.0(+0x6bed9)[0x7f2e27d38ed9]
/usr/lib/libsystemd.so.0(+0x538c0)[0x7f2e27d208c0]
/usr/lib/libsystemd.so.0(+0x53cd4)[0x7f2e27d20cd4]
/usr/lib/libsystemd.so.0(+0x3a1f7)[0x7f2e27d071f7]
/usr/lib/libsystemd.so.0(sd_event_dispatch+0x11a)[0x7f2e27d0a63a]
/usr/lib/libsystemd.so.0(sd_event_run+0x99)[0x7f2e27d0bfc9]
/usr/lib/libsystemd.so.0(sd_event_loop+0x58)[0x7f2e27d0c1e8]
/usr/lib/libFcitx5Utils.so.1(_ZN5fcitx9EventLoop4execEv+0x12)[0x7f2e282309b2]
/usr/lib/libFcitx5Core.so.5(_ZN5fcitx8Instance4execEv+0x2c)[0x7f2e282ed49c]
fcitx5(+0x805a)[0x55fbb2e6a05a]
/usr/lib/libc.so.6(__libc_start_main+0xf3)[0x7f2e27e0e153]
fcitx5(+0x87ce)[0x55fbb2e6a7ce] P.s.Installation process of librim-lua plugin with fcitx5 For Archlinux/Using pacman as a package management system
$ sudo pacman -S fcitx5-git fcitx5-gtk-git fcitx5-qt5-git fcitx5-rime-git
$ sudo pacman -Rdd librime
$ git clone https://github.com/rime/librime.git
$ cd librime
$ git checkout 1.5.3 # important(Maybe the above problems will be fixed in a future version)
$ ./install-plugins.sh hchunhui/librime-lua
$ make merged-plugins
$ sudo make install Because I have upgraded to fcitx5 and will no longer return fcitx4 in the future. So this issue has been closed |
librime on Arch have supported librime-lua at archlinux/svntogit-community@5c07624 since 1:1.5.3-10 at 2020-06-28 |
Error creating translator: 'lua_translator'
I have a problem when using lua script rime/librime#332 (comment)
I did not compile and install from source, but directly installed binary packages.
Environment:
Please help me how to add librime-lua support on the existing basis.
TKS.
The text was updated successfully, but these errors were encountered: