gladman
gladman

Reputation: 1266

Eclipse cant get key input on Ubuntu

I'm using Ubuntu 12.10 and Eclipse Juno. This happens frequently: When I put focus in eclipse editor window, I can input few words in editor at the beginning, and then undo several times, Suddenly it happened that, I can't input any word in eclipse, that's strange problem.

Then, I change to other program and input anything, After that, back to eclipse it can accept my key again. It get me so frustrate.

Any one knows this problem? I am using desktop pc, memory is 1G.

Upvotes: 1

Views: 562

Answers (3)

Byeonggon Lee
Byeonggon Lee

Reputation: 256

I found it.

I googled and found the answer

The answer is:

Right click in Editor area InputMethods-Scim

*Editor area is where you write code

Upvotes: 1

gladman
gladman

Reputation: 1266

I found this problem; It is scim input method conflict with XIM(X Input Method) method.

Solution 1,

just right click in eclipse workspace -> select Input Methods -> SCIM input methods, that's OK. But, Every time you should do it while opening another file.

Solution 2, make scim as default system input methods. Edit /etc/X11/xinit/xinput.d/scim as below:

XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim

also, add x95input file to /etc/X11/Xsession.d/95xinput

/usr/bin/scim -d
XMODIFIERS="@im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE=scim

Hope this can help others.

Upvotes: 2

Chandrayya G K
Chandrayya G K

Reputation: 8849

This may help;

  1. I guess you have lots of projects in your workspace and Project->Build Automatically option was enabled by default. Disable this and use Project-Build All or Project-Build Project commands before you start debugging your application OR If possible create two workspace and move some of your projects to other workspace. Note that you can open two instances of Eclipse on two different workspaces simultaneously.

  2. Increase heap space for Eclipse.

  3. Its also possible that you installed many plug-ins in Eclipse. You can disable unnecessary plug-ins to load on eclipse start up as shown below

enter image description here

Edit

Two more options.

1. Disable all options in **Highlighted** category of preferences. Restart eclipse.

enter image description here

2. Delete **.metadata** in your workspace and restart eclipse. Note!!!. All you preferences will be lost!!!

Upvotes: 2

Related Questions