When I press the space bar in the Leksah source editor, nothing happens. What packages do I lack?

StackOverflow https://stackoverflow.com/questions/15151108

Question

I'm going to retry learning Haskell again... So I apt-get installed leksah, ghc, quickcheck, and cabal-install. It didn't work right from the start, this is why I had to install cabal-install and quickcheck. But now the welcoming Main.hs Helloworld compiles fine, and runs fine. ( It's a really nice hand shake for beginners I must admit I appreciate )

However I'm facing some really strange problem. When I press the space bar in the Leksah source editor, nothing happens.

For example it won't let me enter type MyType = Int I would be stuck at the end of the word type... and if I continue the letters after the space, it would happend MyType to type giving me: typeMyType

If I define a function, it's not possible to insert any space in between elements

test_swap::[a]->[a]
test_swap(w1:w2:ws)=w2:w1:ws
test_swap(ws)=ws

I suspect that I am missing some package to install. I'm using Ubuntu 12.04, with fluxbox, I have multiple keybindings but all other applications lives with it well and currently I use my space bar between each word in chromium. I have read that the Leksah editor uses gtk, but ubuntu unity uses parts of gtk/gnome so I should have gtk ok... but maybe I am missing a tiny bit...

I don't know. How could I know/guess what I am missing ?

Was it helpful?

Solution

This is a Gtk-related problem that occurs only for specific keyboard layouts. It happens with other applications such as Rhythmbox or Codeblocks.

In Ubuntu, you can fix this by switching the default keyboard layout "French (alternative)" to "French (France)" (see this bug report: https://bugs.launchpad.net/ubuntu/+source/hal/+bug/451258).

Alternatively, you can add this option to your keyboard map:

setxkbmap -option nbsp:none
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top