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

characters chaos when inputting chinese characters after updated newest vscode #425

Closed
shoutrain opened this issue Sep 17, 2020 · 5 comments

Comments

@shoutrain
Copy link

shoutrain commented Sep 17, 2020

after I updated the newest vscode, i found following issue:

when I want to instert chinese characters ("中文") in following sentence (after ":"):

console.log('input chinese:');

I got the following result:

console.log('input chinesez中文');

The correct result should be:

console.log('input chinese:中文');

My vscode version info:

Version: 1.49.0 (system setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363
@shoutrain shoutrain changed the title when inputing chinese character characters chaos when inputing chinese character Sep 17, 2020
@shoutrain shoutrain changed the title characters chaos when inputing chinese character characters chaos when inputing chinese characters Sep 17, 2020
@shoutrain shoutrain changed the title characters chaos when inputing chinese characters characters chaos when inputting chinese characters after updated newest vscode Sep 17, 2020
@whitphx
Copy link
Owner

whitphx commented Sep 17, 2020

It looks like the issue #115 .
Please try to set emacs-mcx.disableOverridingTypeCommand config to true (See: https://github.com/tuttieee/vscode-emacs-mcx#emacs-mcxdisableoverridingtypecommand ).

However it also may be a different problem since you said this issue appeared after you updated VSCode to 1.49.0.
Can you tell me the following information if possible?

  • The previous version of VSCode
  • The current and previous version of Awesome Emacs Keymap

Also, please let me know the keystroke to type the Chinese string "中文" with IME.

@shoutrain
Copy link
Author

shoutrain commented Sep 18, 2020

@tuttieee

  1. setting emacs-mcx.disableOverridingTypeCommand config to true makes no sense to this issue. but i think it's the similar issue of Overwrite previous character in Japanese IME #115, my pc is not poor (i7 8550u/16G, Overwrite previous character in Japanese IME #115 occurs on poor machine)

  2. sorry, i am not sure previous version of vscode and Awesome Emacs Keymap, i update these two every time when I get notice they can be updated (from left bottom manageicon in vscode).

current version of Awesome Emacs Keymap is v0.20.4:
bug03

  1. yes, i found more dedails about this issues, hope helps:
original string input chinese characters corresponding keystoke actual result string expected destine string
chinese 中文 zhongwen chinesz中文 chinese世界
hello 世界 shijie hells世界 hello世界
中文 你好 nihao 中n你好 中文你好

looks the first keystoke character replaces the previous last character.

bug01
bug02

@whitphx
Copy link
Owner

whitphx commented Sep 18, 2020

Thank you.
It seems similar to #115 according to the details you provided, but I don't know why it is still there...
One thing, did you reload VSCode after you changed emacs-mcx.disableOverridingTypeCommand config? If not, please try it and check whether the issue still occurs. I forget to tell it, sorry.

If the problem will still be not solved, can you tell me the IME you are using? I will try to reproduce the bug.

@whitphx
Copy link
Owner

whitphx commented Sep 18, 2020

Another possible workaround is to use an older version of VSCode and this extension, as this issue appeared when you upgraded VSCode and the extension.
You can download older versions of VSCode here: https://code.visualstudio.com/updates/v1_48
and install older versions of this extension from the menu of extension browser (See "Install Another Version" is there below).
スクリーンショット 2020-09-18 23 49 27

@shoutrain
Copy link
Author

Thank you.
It seems similar to #115 according to the details you provided, but I don't know why it is still there...
One thing, did you reload VSCode after you changed emacs-mcx.disableOverridingTypeCommand config? If not, please try it and check whether the issue still occurs. I forget to tell it, sorry.

If the problem will still be not solved, can you tell me the IME you are using? I will try to reproduce the bug.

@tuttieee HI, yeah! you are right, I should have restarted VSCode after setting emacs-mcx.disableOverridingTypeCommand with true. Now it works fine. Thank you very much! also this emacs-keys plugin is the best one on vscode!!!

PS: my chinese IME is provided by windows 10 system, its name is Microsoft Pinyin.

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