After updating VS Code on Fedora 42, Chinese input methods (fcitx5) are no longer functional within the editor

Hello everyone, after updating VSCode on Fedora 42, I can no longer use Chinese input methods. Here are the details of my system: I ran the Fcitx diagnostic tool and obtained the output, but I couldn’t identify what might be wrong. Could someone please help me interpret the results and suggest a solution?

For clarity, I’m including the diagnostic output below, along with relevant system information (desktop environment, Fcitx version, etc.) to help narrow down the issue.
➜ ~ code --version
1.103.0
e3550cfac4b63ca4eafca7b601f0d2885817fd1f
x64


. Qt IM module files:

Found fcitx5 im module for qt5: `/lib64/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Found unknown fcitx qt module: `/lib64/qt6/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so`.
Found fcitx5 im module for qt6: `/lib64/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`.
Found fcitx5 qt6 module: `/lib64/fcitx5/qt6/libfcitx-quickphrase-editor5.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.**

Gtk:

  1. gtk - ${GTK_IM_MODULE}:

    Please set environment variable GTK_IM_MODULE to “fcitx” using the tool your distribution provides or add export GTK_IM_MODULE=fcitx to your ~/.xprofile. See Input Method Related Environment Variables: GTK_IM_MODULE.

    It is OK to use gtk built-in Wayland im module if your compositor fully supports text-input protocol used by gtk.

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

    GTK_IM_MODULE=ibus
    

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

    GTK_IM_MODULE=wayland
    

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

    GTK_IM_MODULE=wayland
    
  2. gtk-query-immodules:

    1. gtk 2:

      Found gtk-query-immodules for gtk 2.24.33 at /usr/bin/gtk-query-immodules-2.0-64.
      Version Line:

      # Created by /usr/bin/gtk-query-immodules-2.0-64 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib64/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.49 at /usr/bin/gtk-query-immodules-3.0-64.
      Version Line:

      # Created by /usr/bin/gtk-query-immodules-3.0-64 from gtk+-3.24.49
      

      Found fcitx5 im modules for gtk 3.24.49.

      "/usr/lib64/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:*" 
      
  3. Gtk IM module cache:

    1. gtk 2:

      Found immodules cache for gtk 2.24.33 at /lib64/gtk-2.0/2.10.0/immodules.cache.
      Version Line:

      # Created by gtk-query-immodules-2.0-64 from gtk+-2.24.33
      

      Found fcitx5 im modules for gtk 2.24.33.

      "/usr/lib64/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.49 at /lib64/gtk-3.0/3.0.0/immodules.cache.
      Version Line:

      # Created by gtk-query-immodules-3.0-64 from gtk+-3.24.49
      

      Found fcitx5 im modules for gtk 3.24.49.

      "/usr/lib64/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:*" 
      
  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 30 enabled addons:

      Simplified and Traditional Chinese Translation 5.1.9
      Classic User Interface 5.1.13
      Clipboard 5.1.13
      Cloud Pinyin 5.1.9
      DBus 5.1.13
      DBus Frontend 5.1.13
      Emoji 5.1.13
      Fcitx4 Frontend 5.1.13
      Full width character 5.1.9
      IBus Frontend 5.1.13
      Lua IME API 5.0.15
      Input method selector 5.1.13
      Keyboard 5.1.13
      KDE Input Method Panel 5.1.13
      Lua Addon Loader 5.0.15
      Status Notifier 5.1.13
      Notification 5.1.13
      Pinyin 5.1.9
      Extra Pinyin functionality 5.1.9
      Punctuation 5.1.9
      Quick Phrase 5.1.13
      Rime 5.1.11
      Spell 5.1.13
      Table 5.1.9
      Unicode 5.1.13
      DBus Virtual Keyboard 5.1.13
      Wayland 5.1.13
      Wayland Input method frontend 5.1.13
      XCB 5.1.13
      X Input Method Frontend 5.1.13
      
    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/zibuyu/.config/fcitx5/profile:

    [Groups/0]
    # Group Name
    Name=默认
    # 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=
    
    [GroupOrder]
    0=默认
    

Log:

  1. date:

    Tue Aug 12 10:10:54 CST 2025
    
  2. /home/zibuyu/.config/fcitx5/crash.log:

    /home/zibuyu/.config/fcitx5/crash.log not found.

I’ve already checked common configuration issues and ensured that Fcitx is properly set up in environment variables. Any insights would be greatly appreciated.

Supplement: I’ve been using VSCode on Fedora 42 for over a year, and the Chinese input method worked fine. I don’t know why it suddenly stopped working.

Try starting VSCode with ELECTRON_OZONE_PLATFORM_HINT=auto code ... to see if you can get Chinese IME working?

1 Like

Dude, you save my day!

I have found the reason. I used xlsclients -l and discovered that VS Code is running on X11 instead of Wayland. I need to add some configuration options to force it to run under Wayland.And it works