74

Every so often when using PyCharm Community Edition with IdeaVim in Ubuntu 13.10, the keyboard stops accepting input and I have to restart the IDE. The cursor still moves when I click different text areas, but I can't type anything even after pressing escape multiple times. The keyboard works fine outside of the IDE, so I suspect it is an issue with either my use of IdeaVim or IdeaVim itself.

Is there anything I can do to prevent this from happening?

Huguenot
  • 2,427
  • 2
  • 17
  • 14
  • I can't say I've ever faced this before. Can you provide a few more details about the problem? Perhaps a screen recording? – Games Brainiac Apr 27 '14 at 08:34
  • In this screen recording I started getting the problem in a project I was working on, so I created a new one and demonstrated the keyboard not working. I am typing asdf every two seconds or so... http://www.youtube.com/watch?v=tM8YdRYc8Zk – Huguenot Apr 29 '14 at 14:55
  • 1
    Btw, I've upgraded to Ubuntu 14.04 and am still getting the same problem – Huguenot Apr 29 '14 at 15:02
  • Do you have time for a hangout? I might be able to help you out. – Games Brainiac Apr 29 '14 at 18:48
  • This also happens to me with 14.04 and IdeaVim with IntelliJ Ultimate. – jzila May 16 '14 at 20:50
  • Happens to me as well, on Ubuntu 14.04 x64 using PyCharm Community Edition 3.1.3. If I set "Keyboard input method system" to None on Settings > Language Support and restart Ubuntu it stops happening, but I have issues with other programs (cant input special chars such as á or ó) – Poli May 22 '14 at 15:18
  • I'm having the Issue with IntelliJ Ultimate on Ubuntu 14.04. The thing is, I'm also developing on windows with the exact same version - and i don't have the issue there. – Thomas Glaser Jun 12 '14 at 21:47
  • Same problem in Android Studio 0.6.1 and some versions before as well –  Jun 18 '14 at 01:52
  • I'm having the EXACT same problem with both Android Studio and RubyMine. Checked the logs and it doesn't seem to have logged anything (idea.log) – Tommy Chan Jul 04 '14 at 04:41
  • 2
    Same problem with PyCharm and Emacs keybindings on Ubuntu 14.04. – akaihola Sep 02 '14 at 05:17

4 Answers4

91

You can do killall -9 ibus-x11 as described in the issue given by Games Brainiac. I just wanted to note that you don't need to restart the IDE, as it should continue to work again... which is nice, undo-history is preserved etc. :)

Ray Burgemeestre
  • 1,230
  • 8
  • 13
8

This is very likely a bug. Please vote for this issue -> http://youtrack.jetbrains.com/issue/VIM-759

Games Brainiac
  • 80,178
  • 33
  • 141
  • 199
5

I have the same problems, i reported it and still do not know of a fix for it. I noticed there are a lot of reported issues like this but i now tried to follow this bug's suggestions:

https://youtrack.jetbrains.com/issue/IDEA-78860

"Alternatively, you can turn off IBus at System Settings | Language Support | Keyboard input method."

After I done this and a system restart, i never had the problem again.

Vlad
  • 1,258
  • 1
  • 14
  • 21
  • 1
    This is now the real answer. Or an alternative workaround, from the same issue: `add "export IBUS_ENABLE_SYNC_MODE=1" to your ~/.profile, then restart a session.` – CivFan May 24 '16 at 17:57
1

Either upgrade IBus to version 1.5.11 or add export IBUS_ENABLE_SYNC_MODE=1 to your ~/.profile, then restart a session.

https://youtrack.jetbrains.com/issue/IDEA-78860

JDiMatteo
  • 12,022
  • 5
  • 54
  • 65