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

unable to input chinese character #96041

Open
calidion opened this issue Apr 24, 2020 · 48 comments · Fixed by #100480
Open

unable to input chinese character #96041

calidion opened this issue Apr 24, 2020 · 48 comments · Fixed by #100480
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member editor-input-IME Editor input of characters not on keyboard help wanted Issues identified as good community contribution opportunities linux Issues with VS Code on Linux snap Issues related to the snap package
Milestone

Comments

@calidion
Copy link

Issue Type: Bug

open it
and switch to chinese input

VS Code version: Code 1.44.2 (ff91584, 2020-04-16T17:50:03.709Z)
OS version: Linux x64 5.3.0-46-generic snap

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4200U CPU @ 1.60GHz (4 x 2438)
GPU Status 2d_canvas: unavailable_software
flash_3d: disabled_software
flash_stage3d: disabled_software
flash_stage3d_baseline: disabled_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: disabled_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: disabled_software
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: unavailable_software
webgl2: unavailable_software
Load (avg) 2, 3, 4
Memory (System) 7.69GB (2.09GB free)
Process Argv --force-user-env --no-sandbox --unity-launch --no-sandbox
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.35.0
prettier-vscode esb 4.5.0
marp-vscode mar 0.13.0
vscode-docker ms- 1.1.0
vscode-language-pack-zh-hans MS- 1.44.2
python ms- 2020.4.74986
cpptools ms- 0.27.0
vscode-typescript-tslint-plugin ms- 1.2.3
debugger-for-chrome msj 4.12.6
vetur oct 0.24.0
prisma Pri 0.0.32
java red 0.60.0
rust rus 0.7.3
vscodeintellicode Vis 1.2.6
vscode-java-debug vsc 0.25.1
vscode-java-dependency vsc 0.9.0
vscode-java-pack vsc 0.9.0
vscode-java-test vsc 0.22.3
vscode-maven vsc 0.21.2
vscode-icons vsc 10.1.1
markdown-all-in-one yzh 2.8.0

(1 theme extensions excluded)

@vscodebot
Copy link

vscodebot bot commented Apr 24, 2020

@sunsetsonwheels
Copy link

This bug is still present on the code snap package (version: 5763d90, revision: 33) running on Ubuntu Desktop 20.04. I'm using ibus-unikey as my Vietnamese IME, Vietnamese characters aren't being inserted.

@exprosic
Copy link

exprosic commented Jun 12, 2020

can confirm this on snap code 1.46.0 (commit a5d1cc2)

champignoom added a commit to champignoom/vscode-1 that referenced this issue Jun 18, 2020
@joaomoreno joaomoreno assigned joaomoreno and unassigned rebornix Jun 21, 2020
@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug linux Issues with VS Code on Linux snap Issues related to the snap package labels Jun 21, 2020
@joaomoreno joaomoreno added this to the Backlog milestone Jun 21, 2020
joaomoreno pushed a commit that referenced this issue Jun 21, 2020
@joaomoreno joaomoreno added the author-verification-requested Issues potentially verifiable by issue author label Jun 21, 2020
@joaomoreno joaomoreno modified the milestones: Backlog, June 2020 Jun 21, 2020
@brlin-tw
Copy link

Note that this is a duplicate of #77382. I can test if the patch works.

@joaomoreno
Copy link
Member

@Lin-Buo-Ren Thanks! Please do let me know if it works in today's Insiders, should come out soon.

@brlin-tw
Copy link

brlin-tw commented Jun 22, 2020

@joaomoreno I've installed the insiders snap(269f0fdd) but unfortunately I can still reproduce this issue under GNOME/Wayland, GNOME/X11, and KDE/X11 sessions (Ubuntu 20.04).

@joaomoreno joaomoreno reopened this Jun 23, 2020
@joaomoreno joaomoreno removed author-verification-requested Issues potentially verifiable by issue author insiders-released Patch has been released in VS Code Insiders labels Jun 23, 2020
@joaomoreno joaomoreno modified the milestones: June 2020, Backlog Jun 23, 2020
@joaomoreno joaomoreno added the help wanted Issues identified as good community contribution opportunities label Jun 23, 2020
@alexdima alexdima added the editor-input-IME Editor input of characters not on keyboard label Oct 24, 2022
@ddio
Copy link

ddio commented Nov 22, 2022

Test under Ubuntu 22.04 / ibus:

  1. snap version -> not work
  2. .deb from official download page: not work
  3. .tar.gz from official download page: it's working!

lemanschik pushed a commit to code-oss-dev/code that referenced this issue Nov 25, 2022
@Tyriar Tyriar assigned rzhao271 and unassigned Tyriar Dec 7, 2022
@CroMarmot
Copy link

CroMarmot commented Dec 14, 2022

same issue

Ubuntu 22.04.1 LTS
Kernel 5.15.0-56-generic
GNOME 42.5
code --version
1.74.0
5235c6bb189b60b01b1f49062f4ffa42384f8c91
x64
fcitx --version
fcitx version: 4.2.9.8
snap list
code                                  5235c6bb                    114    latest/stable    vscode✓        classic
node -v
v16.13.0

the solution is same as what @scaomath said, use fcitx5 and vscode.deb version instead of snap version

@hikaen2
Copy link

hikaen2 commented Dec 23, 2022

same here:

simplescreenrecorder-2022-12-23_19.27.42.mp4

Ubuntu 22.04 LTS
IBus 1.5.26
code e8a3071 (via snap)

@loziaki
Copy link

loziaki commented Mar 16, 2023

bug has been fixed in 1.74.2,but the snap version of vscode is still 1.74.1

@vivostar
Copy link

@scaomath , thanks very much

@rzhao271 rzhao271 added the confirmed Issue has been confirmed by VS Code Team member label Mar 24, 2023
@joaomoreno joaomoreno assigned deepak1556 and unassigned joaomoreno Mar 28, 2023
@yuancf1024
Copy link

yuancf1024 commented Jul 20, 2023 via email

@taro-ball
Copy link

bug has been fixed in 1.74.2,but the snap version of vscode is still 1.74.1

No, it haven't been fixed
VSCode 1.80.1 on Ubuntu 22.04 - same issue, standard iBus Chinese pinyin is not working only in VScode.

Version: 1.80.1
Commit: 74f6148eb9ea00507ec113ec51c489d6ffb4b771
Date: 2023-07-12T17:22:25.257Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 5.19.0-46-generic snap

image

@Halimao
Copy link

Halimao commented Nov 10, 2023

Still haven't been fixed.

版本: 1.84.2
提交: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
日期: 2023-11-09T10:50:47.800Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.2.0-36-generic snap

@szcf-weiya
Copy link

szcf-weiya commented Nov 30, 2023

still haven't been fixed for the snap version

Version: 1.84.2
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:50:47.800Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Linux x64 6.1.0-1026-oem snap

but it works well for the .deb version.

@mendax1234
Copy link

So, now the solution is to use deb or flatpak version instead of snap version right?

@Jeffrey04
Copy link

alternatively if you are on Ubuntu you can use Ubuntu Make to install vscode

@Halimao
Copy link

Halimao commented Dec 6, 2023

Installing with .deb works well😀

@knakamura8
Copy link

Is there some flag that needs to be set to enable fcitx for the snap build? I use fcitx fine with other snaps, but for some reason my fcitx input does not work with VS code.

@knakamura8
Copy link

knakamura8 commented Jan 26, 2024

same here still cannot make ibus to work: Version: 1.71.2 Commit: 74b1f97 Date: 2022-09-14T21:12:14.256Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Linux x64 5.15.0-46-generic snap Sandboxed: No

Please refer to snapcraft.io/docs/desktop-interfaces

The chrome can connect to ibus without any problem. They did exactly as the document suggested:

apps:
  chromedriver:
    command: usr/lib/chromium-browser/chromedriver
    plugs:
    - desktop
    - desktop-legacy

why can't the code do the same?

@braindevices Was there a reason why this is/was not implemented? fcitx does not work for me, though it works fine in other snaps, presumably because of this. Did you test adding desktop-legacy manually to the snap and repacking it?

@rzhao271 Sorry, my comment was intended to be addressed to braindevices, I was wondering if he had tested this on his local build. Quote reply didn't auto-append the tag >_<;; I did notice that there are no plugs that seem to connect by default, so is that part of the design choice for security purposes or some other reason? I have not yet locally tested adding the desktop-legacy plug to verify that it allows for fcitx to work.

From the official Snapcraft documentation: https://snapcraft.io/docs/desktop-legacy-interface

If your snap is expected to receive text input from CJKV(Chinese, Japanese, Korean, Vietnamese etc.) users, you must connect to this interface, failing to do so will cause frustration to these users.

@knakamura8
Copy link

But why ? and what is the cause?

This is due to the fact that there are compatibility issues for containerized(including snap and flatpak) application's graphical toolkits to communicate with the input method framework running on the host's system (the host may use a different graphical toolkit version, which may feature an interface that is incompatible with the one used in the application).

Architectural changes may be required in the relative upstream components to improve the situation, but it is unlikely something that a downstream project (VSCode) can tackle.

Refer Compatibility with CJKV input method frameworks - doc - snapcraft.io for more info.

@brlin-tw Does this mean this issue is a wontfix now?

@lijh8
Copy link

lijh8 commented Feb 10, 2024

The .deb package from code.visualstudio.com works, but the snap version from ubuntu does not work.

Screen Shot 2024-02-10 at 21 15 33

@leimao
Copy link

leimao commented May 20, 2024

The snap version does not work.

Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:16:23.416Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.8.0-31-generic snap

@knakamura8
Copy link

knakamura8 commented May 26, 2024

@leimao It probably should be marked as wontfix, seeing as devs passively react to the posts here detailing the issue and proposed solutions, yet refuse to comment (positively or negatively), or do anything, for that matter. If you wish to build the snap yourself, you can refer to braindevices's post here.

@yankuangxindaL4
Copy link

Same problem using the deb version:

Version: 1.91.1
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:08:12.169Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.8.0-38-generic

@calidion
Copy link
Author

a quick fix is to use ibus instead of fcitx.
But you will lost some input features provided by fcitx.
maybe it is a bug of fcitx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug confirmed Issue has been confirmed by VS Code Team member editor-input-IME Editor input of characters not on keyboard help wanted Issues identified as good community contribution opportunities linux Issues with VS Code on Linux snap Issues related to the snap package
Projects
None yet
Development

Successfully merging a pull request may close this issue.