Weirdest IRB / Rails console problem

R

Ray K.

I have a really weird problem. In IRB / Rails Console I cannot type a
Capital C.

My system: OS X, 10.6.4
Ruby Version: 1.9.2.rc2, as well as 1.9.1.p378

The "C" works everywhere else, in OSX, in the Terminal, but not in IRB.
Not even if I copy one in from somewhere else.

I tried another ruby version, I tried wiping my .irbrc, no luck so far.
I'm really happy vor any suggestions.

Thanks
Ray
 
R

Ray K.

Ray said:
I have a really weird problem. In IRB / Rails Console I cannot type a
Capital C.

My system: OS X, 10.6.4
Ruby Version: 1.9.2.rc2, as well as 1.9.1.p378

The "C" works everywhere else, in OSX, in the Terminal, but not in IRB.
Not even if I copy one in from somewhere else.

I tried another ruby version, I tried wiping my .irbrc, no luck so far.
I'm really happy vor any suggestions.

Thanks
Ray

I'm using workarounds here, or avoiding classes beginning with C. If
anyone has the same problem contact me at ticktricktrack(at)gmail.com.
Even if this post has gone stale.

Ray
 
B

Brian Candler

Only a guess, but maybe a problem with libreadline?

Try: irb --noreadline

and see if you can type normally. (Admittedly, not having line editing
is a real pain, but it would help to localise the problem)

If this is the problem: you could check /etc/inputrc, ~/.inputrc and the
INPUTRC environment variable (echo $INPUTRC)
 
R

Ray K.

Brian said:
Only a guess, but maybe a problem with libreadline?

Try: irb --noreadline

and see if you can type normally. (Admittedly, not having line editing
is a real pain, but it would help to localise the problem)

If this is the problem: you could check /etc/inputrc, ~/.inputrc and the
INPUTRC environment variable (echo $INPUTRC)

Thanks, that helped a lot.
I finally fixed it with

∴ rvm package install readline
∴ rvm remove 1.9.2-rc2
∴ rvm install 1.9.2-rc2 -C --with-readline-dir=$HOME/.rvm/usr

http://rvm.beginrescueend.com/packages/readline/

Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top