Skip to content
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

error creating processor: 'lua_processor' lua插件不生效 #853

Closed
jcleng opened this issue Aug 27, 2023 · 1 comment
Closed

error creating processor: 'lua_processor' lua插件不生效 #853

jcleng opened this issue Aug 27, 2023 · 1 comment

Comments

@jcleng
Copy link

jcleng commented Aug 27, 2023

Describe the bug
lua插件不生效

I2023-08-27 17:08:54.267014 addonmanager.cpp:191] Loaded addon rime
E0827 17:08:55.560087     2 engine.cc:312] error creating processor: 'lua_processor'
E0827 17:08:55.569268     2 engine.cc:346] error creating translator: 'lua_translator'
E0827 17:08:55.580897     2 engine.cc:346] error creating translator: 'lua_translator'
E0827 17:08:55.580912     2 engine.cc:346] error creating translator: 'lua_translator'
E0827 17:08:55.580965     2 engine.cc:363] error creating filter: 'lua_filter'
E0827 17:08:55.580968     2 engine.cc:363] error creating filter: 'lua_filter'
E0827 17:08:55.580971     2 engine.cc:363] error creating filter: 'lua_filter'
E0827 17:09:35.692606     2 engine.cc:312] error creating processor: 'lua_processor'

To Reproduce
Steps to reproduce the behavior:

# 方式1: nixos
  i18n.inputMethod.enabled="fcitx5";
  i18n.inputMethod.fcitx5.addons=[
    pkgs.fcitx5-rime
    pkgs.fcitx5-lua
    pkgs.libsForQt5.fcitx5-qt
    pkgs.fcitx5-gtk
  ];

# 方式2 flatpak
flatpak install flathub  org.fcitx.Fcitx5 -y
flatpak install flathub  org.fcitx.Fcitx5.Addon.Rime -y

Expected behavior
lua 模块相关的都无法使用
iDvel/rime-ice#204
iDvel/rime-ice#178

Desktop (please complete the following information):

  • Desktop: KDE
  • Display server type: X11
  • The output of fcitx5-diagnose if possible.
fcitx5-diagnose
# System Info:
1.  `uname -a`:

        Linux nixos 6.4.12 #1-NixOS SMP PREEMPT_DYNAMIC Wed Aug 23 15:32:56 UTC 2023 x86_64 GNU/Linux

2.  `lsb_release`:

    `lsb_release` not found.

3.  `/etc/lsb-release`:

        DISTRIB_CODENAME=tapir
        DISTRIB_DESCRIPTION="NixOS 23.11 (Tapir)"
        DISTRIB_ID=nixos
        DISTRIB_RELEASE="23.11"
        LSB_VERSION="23.11 (Tapir)"

4.  `/etc/os-release`:

        BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
        BUILD_ID="23.11pre518195.18324978d632"
        DOCUMENTATION_URL="https://nixos.org/learn.html"
        HOME_URL="https://nixos.org/"
        ID=nixos
        LOGO="nix-snowflake"
        NAME=NixOS
        PRETTY_NAME="NixOS 23.11 (Tapir)"
        SUPPORT_URL="https://nixos.org/community.html"
        VERSION="23.11 (Tapir)"
        VERSION_CODENAME=tapir
        VERSION_ID="23.11"

5.  Desktop Environment:

    Desktop environment is `kde`.

6.  XDG SESSION TYPE:

        XDG_SESSION_TYPE='x11'

7.  Bash Version:

        BASH_VERSION='5.2.15(1)-release'

# Environment:
1.  DISPLAY:

        DISPLAY=':0'


        WAYLAND_DISPLAY=''

2.  Keyboard Layout:

    1.  `setxkbmap`:

            xkb_keymap {
                xkb_keycodes  { include "evdev+aliases(qwerty)" };
                xkb_types     { include "complete"      };
                xkb_compat    { include "complete"      };
                xkb_symbols   { include "pc+cn+inet(evdev)+terminate(ctrl_alt_bksp)"    };
                xkb_geometry  { include "pc(pc104)"     };
            };

    2.  `xprop`:

            _XKB_RULES_NAMES(STRING) = "evdev", "pc104", "cn", "", "terminate:ctrl_alt_bksp"

3.  Locale:

    1.  All locales:

            C
            C.utf8
            en_US.utf8
            POSIX
            zh_CN.utf8

    2.  Current locale:

            LANG=zh_CN.UTF-8
            LC_CTYPE=zh_CN.UTF-8
            LC_NUMERIC=zh_CN.UTF-8
            LC_TIME=zh_CN.UTF-8
            LC_COLLATE="zh_CN.UTF-8"
            LC_MONETARY=zh_CN.UTF-8
            LC_MESSAGES="zh_CN.UTF-8"
            LC_PAPER=zh_CN.UTF-8
            LC_NAME=zh_CN.UTF-8
            LC_ADDRESS=zh_CN.UTF-8
            LC_TELEPHONE=zh_CN.UTF-8
            LC_MEASUREMENT=zh_CN.UTF-8
            LC_IDENTIFICATION=zh_CN.UTF-8
            LC_ALL=

4.  Directories:

    1.  Home:

            /home/jcleng

    2.  `${XDG_CONFIG_HOME}`:

        Environment variable `XDG_CONFIG_HOME` is set to `/home/jcleng/.config`.

        Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/jcleng/.config`).

    3.  Fcitx5 Settings Directory:

        Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/jcleng/.config/fcitx5`).

5.  Current user:

    The script is run as jcleng (1000).

# Fcitx State:
1.  executable:

    Found fcitx5 at `/run/current-system/sw/bin/fcitx5`.

2.  version:

    Fcitx version: `5.1.0`

3.  process:

    Found 4 fcitx5 processes:

         191960 fcitx5-bin
         191965 fcitx5-plasma-t
         192042 fcitx5-config-q
         192411 fcitx5-diagnose

4.  `fcitx5-remote`:

    `fcitx5-remote` works properly.

5.  DBus interface:

    Using `dbus-send` to check dbus.

    Owner of DBus name `org.fcitx.Fcitx5` is `:1.576`.

    PID of DBus name `org.fcitx.Fcitx5` owner is `191960`.

    Debug information from dbus:

           Group [x11::0] has 15 InputContext(s)
          IC [1cd04c51664f4efbb0d373712b7b23dc] program:fcitx5-config-qt frontend:dbus cap:6000800072 focus:0
          IC [6c1e7f872ec34354b4ad3a2fbf3c3b47] program:.plasmashell-wrapped frontend:dbus cap:16000800072 focus:0
          IC [9e9b56d9f51f4de38ce68d35548ff720] program:firefox frontend:dbus cap:6000000072 focus:0
          IC [4b97ee55c4a445419b551d39cb023bf7] program:firefox frontend:dbus cap:6000000032 focus:0
          IC [870eec61c163487d9722c91e9b4b08ce] program:.plasmashell-wrapped frontend:dbus cap:16000800072 focus:0
          IC [acb8a81a5f6248549d654981d1bb7b3e] program:code frontend:dbus cap:6000000032 focus:0
          IC [1c8562d558614cc18fc690ac20a03101] program:firefox frontend:dbus cap:6000000032 focus:0
          IC [d32e1a359429463e8b4e9a8267c47edc] program:.dolphin-wrapped frontend:dbus cap:16000800072 focus:0
          IC [3292496112aa43c78f84882854005dbd] program:.plasmashell-wrapped frontend:dbus cap:6000820072 focus:0
          IC [9c09fb78988148c98dd6ea1317896606] program:.kwin_x11-wrapped frontend:dbus cap:16000800072 focus:0
          IC [46fd74e4b29a449c93cdd27cae73fdad] program:firefox frontend:dbus cap:6000000032 focus:0
          IC [aeb876f371594e9aa8c03e02bcb97944] program:.plasmashell-wrapped frontend:dbus cap:16000800072 focus:0
          IC [aab2df9ea9654124b1a4711e31727a28] program:.konsole-wrapped frontend:dbus cap:6000820872 focus:1
          IC [b44e36574bed4f1cbd88fe192d747e15] program:.konsole-wrapped frontend:dbus cap:6000800072 focus:0
          IC [a31ae5b41a434c4cb2cb1d66f545af77] program:.plasmashell-wrapped frontend:dbus cap:6000820072 focus:0
        Input Context without group

# Fcitx Configure UI:
1.  Config Tool Wrapper:

    Found fcitx5-configtool at `/run/current-system/sw/bin/fcitx5-configtool`.

2.  Config GUI for qt:

    Found `fcitx5-config-qt` at `/run/current-system/sw/bin/fcitx5-config-qt`.

3.  Config GUI for kde:

    Found fcitx5 kcm module.

        kcm_fcitx5                     - 配置输入法
# Frontends setup:
The environment variable checked by this script only shows the environment under current shell. It is still possible that you did not set the environment to the whole graphic desktop session. You may inspect the actual environment variable of a certain process by using `xargs -0 -L1 /proc/$PID/environ` for a certain process that you find not working.

## Xim:
1.  `${XMODIFIERS}`:

    Environment variable XMODIFIERS is set to "@im=fcitx" correctly.
    Xim Server Name from Environment variable is fcitx.

2.  XIM_SERVERS on root window:

    Xim server name is the same with that set in the environment variable.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-qt4-immodule-probing` not found.**

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt5-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=xcb
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

3.  qt6 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

    Using fcitx5-qt6-immodule-probing to check the actual im module to be used under current environment:

        QT_QPA_PLATFORM=xcb
        QT_IM_MODULE=fcitx
        IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext

4.  Qt IM module files:

    Found unknown fcitx qt module: `./lib/fcitx5/libfcitx4frontend.so`.

    Following error may not be accurate because guessing Qt version from path depends on how your distribution packages Qt. It is not a critical error if you do not use any Qt application with certain version of Qt or you are using text-input support by Qt under Wayland.
    **Cannot find fcitx5 input method module for Qt4.**
    **Cannot find fcitx5 input method module for Qt5.**
    **Cannot find fcitx5 input method module for Qt6.**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    Environment variable GTK_IM_MODULE is set to "fcitx" correctly.

    **`fcitx5-gtk2-immodule-probing` not found.**

    Using fcitx5-gtk3-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx

    Using fcitx5-gtk4-immodule-probing to check the actual im module to be used under current environment:

        GTK_IM_MODULE=fcitx

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **Cannot find `gtk-query-immodules` for gtk 2**

        **Cannot find fcitx5 im module for gtk 2.**

    2.  gtk 3:

        **Cannot find `gtk-query-immodules` for gtk 3**

        **Cannot find fcitx5 im module for gtk 3.**

3.  Gtk IM module cache:

    1.  gtk 2:

        **Cannot find immodules cache for gtk 2**

        **Cannot find fcitx5 im module for gtk 2 in cache.**

    2.  gtk 3:

        **Cannot find immodules cache for gtk 3**

        **Cannot find fcitx5 im module for gtk 3 in cache.**

4.  Gtk IM module files:

    1.  gtk 2:

        All found Gtk 2 immodule files exist.

    2.  gtk 3:

        All found Gtk 3 immodule files exist.

    3.  gtk 4:

        All found Gtk 4 immodule files exist.

# Configuration:
## Fcitx Addons:
1.  Addon Config Dir:

    Found fcitx5 addon config directory: `/nix/store/z6mwnxshvv8kv51rz084dd0djis80zpl-fcitx5-5.1.0/share/fcitx5/addon`.

2.  Addon List:

    1.  Found 20 enabled addons:

            Classic User Interface 5.1.0
            Clipboard 5.1.0
            DBus 5.1.0
            DBus Frontend 5.1.0
            Emoji 5.1.0
            Fcitx4 Frontend 5.1.0
            IBus Frontend 5.1.0
            Input method selector 5.1.0
            Keyboard 5.1.0
            KDE Input Method Panel 5.1.0
            Status Notifier 5.1.0
            Notification 5.1.0
            Quick Phrase 5.1.0
            Spell 5.1.0
            Unicode 5.1.0
            DBus Virtual Keyboard 5.1.0
            Wayland 5.1.0
            Wayland Input method frontend 5.1.0
            XCB 5.1.0
            X Input Method Frontend 5.1.0

    2.  Found 0 disabled addons:

3.  Addon Libraries:

    All libraries for all addons are found.

4.  User Interface:

    Found 3 enabled user interface addons:

        Classic User Interface
        KDE Input Method Panel
        DBus Virtual Keyboard

## Input Methods:
1.  `/home/jcleng/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=默认        # Layout
        Default Layout=cn
        # Default Input Method
        DefaultIM=rime

        [Groups/0/Items/0]
        # Name
        Name=keyboard-cn
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=rime
        # Layout
        Layout=

        [GroupOrder]
        0=默认
# Log:
1.  `date`:

        2023年 08月 27日 星期日 17:15:48 CST

2.  `/home/jcleng/.config/fcitx5/crash.log`:

    `/home/jcleng/.config/fcitx5/crash.log` not found.

**Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.**

**Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.**

@wengxt
Copy link
Member

wengxt commented Oct 11, 2023

flatpak 目前没有打包 lua 不过这个算是在计划中我有空再看看

nix 我建议你去检查 nix 的 rime 的打包

@wengxt wengxt closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants