lyfeyaj / sublime-text-imfix

Fix Sublime Text 3 Input method problem (CJK words) under Ubuntu
937 stars 194 forks source link

Eventually input using IME doesn't work well in mozc / Arch Linux / Cinnamon #42

Closed ngr-t closed 3 years ago

ngr-t commented 7 years ago

At first, thank you for making this fix. Basically it works well. However, sometimes (several ten minutes after I start the editor) input from IME stops working like this (I hit Enter key to confirm the input at the last in this movie): peek 2017-08-08 12-25 When I restart ST3, it works well again, like: peek 2017-08-08 12-32

So sorry but I've not yet grasped how this fix works, therefore I wonder how can I fix this.

My environment is:

This has not yet been happened on any other application. I know the information I provide is very poor to speculate the cause, but I would be very grateful if I can get any clue to solve this. I'd appreciate your help.

lyfeyaj commented 7 years ago

I update this repo with some bug fix. Try to re-run the script ./sublime-imfix to see whether your problem can be fixed.

ngr-t commented 7 years ago

Thank you for rapid response! I updated to the latest commit, but unfortunately the problem still looks to remain. I will try to make the condition to reproduce it clear.

lyfeyaj commented 7 years ago

It seems that the bug you encountered was an old bug that couldn't be fixed by now(to my knowledge). It is caused by those patching methods injected into sublime text via LD_PRELOAD environment variable.

Try to reproduce the problem with the following steps:

  1. Open one sublime text editor, then activate input method and try to input some CJK words;
  2. While keeping the first editor open, now start another sublime text editor and repeat the 1st step;
  3. Now switch back to the first editor, and you may find that the IME stop working on that editor, but you still can input CJK words into the second editor.

If you can reproduce your problem by those steps. Then it is exactly the bug I described above. The only way(as far as I know) to prevent that is trying not to open two sublime text editors at the same time.

Any further information, please let me know.

ngr-t commented 7 years ago

I could reproduce the bug by the steps above. Also thank you for the workaround. I will keep the number of window just one when I use IME. I will let you know if I find other workarounds or some further information.