Closed MatthewZMD closed 2 years ago
Your installation is broken, you're missing xcb-imdkit on your system.
**Cannot find following required libraries for `xim` of addon `X`.**
libxcb-imdkit.so.1
I've reinstalled xcb-imdkit
and now the error is gone, but same problem persists
$ fcitx5-diagnose
# System Info:
1. `uname -a`:
Linux yggdrasil 5.10.79-1-MANJARO #1 SMP PREEMPT Fri Nov 12 20:26:09 UTC 2021 x86_64 GNU/Linux
2. `lsb_release -a`:
LSB Version: n/a
Distributor ID: ManjaroLinux
Description: Manjaro Linux
Release: 21.2.0
Codename: Qonos
3. `lsb_release -d`:
Description: Manjaro Linux
4. `/etc/lsb-release`:
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=21.2.0
DISTRIB_CODENAME=Qonos
DISTRIB_DESCRIPTION="Manjaro Linux"
5. `/etc/os-release`:
NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux
6. Desktop Environment:
Desktop environment is `kde`.
7. Bash Version:
BASH_VERSION='5.1.8(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+us+inet(evdev)+ctrl(nocaps)" };
xkb_geometry { include "pc(pc86)" };
};
2. `xprop`:
_XKB_RULES_NAMES(STRING) = "evdev", "pc86", "us", "", "ctrl:nocaps"
3. Locale:
1. All locale:
C
en_CA.utf8
en_US.utf8
POSIX
zh_CN.utf8
2. Current locale:
LANG=en_CA.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC=en_CA.UTF-8
LC_TIME=en_CA.UTF-8
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY=en_CA.UTF-8
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER=en_CA.UTF-8
LC_NAME=en_CA.UTF-8
LC_ADDRESS=en_CA.UTF-8
LC_TELEPHONE=en_CA.UTF-8
LC_MEASUREMENT=en_CA.UTF-8
LC_IDENTIFICATION=en_CA.UTF-8
LC_ALL=
4. Directories:
1. Home:
/home/matthewzmd
2. `${XDG_CONFIG_HOME}`:
Environment variable `XDG_CONFIG_HOME` is not set.
Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/matthewzmd/.config`).
3. Fcitx5 Settings Directory:
Current fcitx5 settings directory is `~/.config/fcitx5` (`/home/matthewzmd/.config/fcitx5`).
5. Current user:
The script is run as matthewzmd (1000).
# Fcitx State:
1. executable:
Found fcitx5 at `/usr/bin/fcitx5`.
2. version:
Fcitx version: `5.0.10`
3. process:
Found 1 fcitx5 process:
6366 fcitx5
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.2`.
PID of DBus name `org.fcitx.Fcitx5` owner is `6366`.
Debug information from dbus:
Group [x11::0] has 11 InputContext(s)
IC [7dea19b954cf41cb97036941f3931ce0] program:discord frontend:dbus cap:6000000000 focus:0
IC [2911b5c0e3db45e1b30669cbad14d004] program:yakuake frontend:dbus cap:6000800060 focus:0
IC [2acb561637be4ff4ba60ad5e4269ec36] program:plasmashell frontend:dbus cap:6000800060 focus:0
IC [b0cee43ace3c4aef8659a197f5772776] program:steamwebhelper frontend:dbus cap:e483c61000000000 focus:0
IC [b1563a20234f4cbdbf17c9c71bc773e5] program:dolphin frontend:dbus cap:6800800060 focus:0
IC [e8caaa372deb416083e71ead137d909c] program:plasmashell frontend:dbus cap:6000800060 focus:0
IC [79a4810e849a420c9f47721f920bd12a] program:google-chrome frontend:dbus cap:6000000000 focus:0
IC [67c8a9e811b94c779994241ed4e13154] program:google-chrome frontend:dbus cap:6000000000 focus:0
IC [6ea02f09bf9d4504a5e6b1e1e45ae55c] program:steam frontend:dbus cap:e6ee735400000000 focus:0
IC [f25519479e204b61a1fb2e69b6b546fb] program:kwin_x11 frontend:dbus cap:6000800060 focus:0
IC [7ddf65f632a24ecdab4c0c689fe2eedd] program:plasmashell frontend:dbus cap:6000800060 focus:0
Input Context without group
# Fcitx Configure UI:
1. Config Tool Wrapper:
Found fcitx5-configtool at `/usr/bin/fcitx5-configtool`.
2. Config GUI for qt:
Found `fcitx5-config-qt` at `/usr/bin/fcitx5-config-qt`.
3. Config GUI for kde:
Found fcitx5 kcm module.
kcm_fcitx5 - Configure Input Method
# Frontends setup:
## 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:
**Cannot find xim_server on root window.**
## Qt:
1. qt4 - `${QT4_IM_MODULE}`:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
2. qt5 - `${QT_IM_MODULE}`:
Environment variable QT_IM_MODULE is set to "fcitx" correctly.
3. Qt IM module files:
Found fcitx5 im module for qt6: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Found fcitx5 qt5 module: `/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`.
Found unknown fcitx qt module: `/usr/lib/qt/plugins/kcms/kcm_fcitx5.so`.
Found fcitx5 im module for qt: `/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Found unknown fcitx qt module: `/usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
**Cannot find fcitx5 input method module for Qt4.**
## Gtk:
1. gtk - `${GTK_IM_MODULE}`:
Environment variable GTK_IM_MODULE is set to "fcitx" correctly.
2. `gtk-query-immodules`:
1. gtk 2:
Found `gtk-query-immodules` for gtk `2.24.33` at `/usr/bin/gtk-query-immodules-2.0`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33
Found fcitx5 im modules for gtk `2.24.33`.
"/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
2. gtk 3:
Found `gtk-query-immodules` for gtk `3.24.30` at `/usr/bin/gtk-query-immodules-3.0`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.30
Found fcitx5 im modules for gtk `3.24.30`.
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
Found `gtk-query-immodules` for gtk `3.24.30` at `/usr/bin/gtk-query-immodules-3.0-32`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0-32 from gtk+-3.24.30
**Failed to find fcitx5 in the output of `/usr/bin/gtk-query-immodules-3.0-32`**
3. Gtk IM module cache:
1. gtk 2:
Found immodules cache for gtk `2.24.33` at `/usr/lib/gtk-2.0/2.10.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-2.0 from gtk+-2.24.33
Found fcitx5 im modules for gtk `2.24.33`.
"/usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
2. gtk 3:
Found immodules cache for gtk `3.24.30` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.30
Found fcitx5 im modules for gtk `3.24.30`.
"/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
"fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
"fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
Found immodules cache for gtk `3.24.30` at `/usr/lib32/gtk-3.0/3.0.0/immodules.cache`.
Version Line:
# Created by /usr/bin/gtk-query-immodules-3.0-32 from gtk+-3.24.30
**Failed to find fcitx5 in immodule cache at `/usr/lib32/gtk-3.0/3.0.0/immodules.cache`**
3. gtk 4:
**Cannot find immodules cache for gtk 4**
**Cannot find fcitx5 im module for gtk 4 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: `/usr/share/fcitx5/addon`.
2. Addon List:
1. Found 27 enabled addons:
Simplified and Traditional Chinese Translation 5.0.7
Classic User Inteface 5.0.10
Clipboard 5.0.10
Cloud Pinyin 5.0.7
DBus 5.0.10
DBus Frontend 5.0.10
Emoji 5.0.10
Fcitx4 Frontend 5.0.10
Full width character 5.0.7
IBus Frontend 5.0.10
Input method selector 5.0.10
Keyboard 5.0.10
KDE Input Method Panel 5.0.10
Mozc
Status Notifier 5.0.10
Notification 5.0.10
Pinyin 5.0.7
Extra Pinyin functionality 5.0.7
Punctuation 5.0.7
Quick Phrase 5.0.10
Spell 5.0.10
Table 5.0.7
Unicode 5.0.10
Wayland 5.0.10
Wayland Input method frontend 5.0.10
XCB 5.0.10
X Input Method Frontend 5.0.10
2. Found 0 disabled addons:
3. Addon Libraries:
All libraries for all addons are found.
4. User Interface:
Found 2 enabled user interface addons:
Classic User Inteface
KDE Input Method Panel
## Input Methods:
1. `/home/matthewzmd/.config/fcitx5/profile`:
[Groups/0]
# Group Name
Name=Default
# Layout
Default Layout=us
# Default Input Method
DefaultIM=pinyin
[Groups/0/Items/0]
# Name
Name=keyboard-us
# Layout
Layout=
[Groups/0/Items/1]
# Name
Name=pinyin
# Layout
Layout=
[Groups/0/Items/2]
# Name
Name=mozc
# Layout
Layout=
[GroupOrder]
0=Default
# Log:
1. `date`:
Wed 08 Dec 2021 03:56:05 PM EST
2. `/home/matthewzmd/.config/fcitx5/crash.log`:
`/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.**
Did you restart fcitx?
Yep
From fcitx5-diagnose I didn't see you restart fcitx (They still have the same PID and dbus unique name). You probably run the new fcitx5-diagnose before you restart fcitx.
Can you verify that
XIM_SERVERS on root window:
Cannot find xim_server on root window.
This error is now gone?
If so, try restart emacs first. If that still doesn't work. You might hit this historical bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10867 the fix of this bug I believe is not in emacs 27.
You can try to messing around the font by trying to install xorg-mkfontscale / xorg-fonts-misc to see if you have any luck) , but I think an easier way is to use this pgtk branch of emacs (since you're using manjaro): https://aur.archlinux.org/packages/emacs-pgtk-native-comp-git/
Okay so I decided to reinstall and restart the computer, everything actually works now!
This error is now gone?
Yep
If so, try restart emacs first. If that still doesn't work. You might hit this historical bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=10867 the fix of this bug I believe is not in emacs 27.
- set locale to zh_CN.UTF-8, start emacs, X input method now works.
I do have the locale set to zh_CN.UTF-8, so my problem isn't related to this bug.
xorg-fonts-misc
I also installed this.
Anyways, thanks for you help!
Describe the bug
Emacs program is not showing up in here.
To Reproduce Steps to reproduce the behavior:
emacs -nw
), typingfcitx5-remote
shows that fcitx5 is not enabled.Outside of Emacs, in a regular terminal,
fcitx5-remote
gives1
as expected.Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
I have the configurations set up and
(getenv "LC_CTYPE")
gives"zh_CN.UTF-8"
in Emacs..pam_environment
: