History and completion not working in coffeescript repl on linux mint

1

I have recently switched from Ubuntu 12.04 to Linux Mint 14. One thing that is mysteriously not working is autocompletion (tab) and history (uparrow) in coffeescript repl (coffee command). Instead of completing it puts literal tab and instead of showing previous statements it puts ^[[A. Happens in every kind of terminal ie. guake, gnome-terminal and text terminal. The same in node repl works as intended. I did some googling but without success.

Where should I start troubleshooting?

Tad Lispy

Posted 2013-02-04T17:57:55.003

Reputation: 501

Well, I can answer this myself now, but SE won't let me do it for next seven hours :P I'll post my answer later. – Tad Lispy – 2013-02-04T18:48:15.663

Answers

0

Ok, I did some more googling :)

In short:

sudo apt-add-repository ppa:chris-lea/node.js-libs
sudo apt-add-repository ppa:chris-lea/libjs-underscore
sudo apt-get update
sudo apt-get upgrade

This will upgrade your coffeescript to latest version (which is 1.4 now). I assume you already use latest node.js from ppa:chris-lea/node.js

It seems there was an issue with coffeescript 1.3.* and node 0.8.*.

Background info

Hope that will help someone :)

Tad Lispy

Posted 2013-02-04T17:57:55.003

Reputation: 501