[IRB Tab Completion not working on OS X after complete build]

U

Unnsse Khan

Ezra,

Ok... RubyGems works now but now, when I start irb and do this:

Raven:~ untz$ irb
irb(main):001:0> a = "Ruby rocks!"
=> "Ruby rocks!"
irb(main):002:0> a.rev

and click on tab, the cursor just remains fixed (right after the "v")
and before, whereas, it would fill in the remaining word, and also
wouldn't show me
anymore choices for instance methods, the cursor would move four
spaces (just like using tab on MS Word)...

We are back to square one, and the tab completion problem seems to
still be broken but with different oddities......

Anyone else have any suggestions?

Kindest regards,

Unnsse
 
P

Peter Burns

------=_Part_4225_29448236.1129955173532
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Just from reading this, I don't think it's the solution to this problem. I'=
m
running on a Tiger box, and while I now have readline working (the ability
to press up during irb to bring up previous commands), I don't have tab
completion. Hell, I didn't even know IRB could do tab completion...

Anyway, that's just from reading what that script does, I didn't run it
myself.

http://tech.rufy.com/entry/46

Hope that helps.

James Edward Gray II

------=_Part_4225_29448236.1129955173532--
 
K

Kenny Parnell

Peter,

irb on tiger will do tab completion.

put the following into your ~/.irbrc file:

require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]

-Kenny
 
E

Ezra Zygmuntowicz

Peter-
Try to require 'irb/completion' if it works put it in your
~/.irbrc and you will have tab completetion

Cheers-
-Ezra

Just from reading this, I don't think it's the solution to this
problem. I'm
running on a Tiger box, and while I now have readline working (the
ability
to press up during irb to bring up previous commands), I don't have
tab
completion. Hell, I didn't even know IRB could do tab completion...

Anyway, that's just from reading what that script does, I didn't
run it
myself.

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
(e-mail address removed)
509-577-7732
 
P

Peter Burns

I put this into my ~/.irbrc and it's working great now.

Thanks for the responses, this is excellent.

Peter,

irb on tiger will do tab completion.

put the following into your ~/.irbrc file:

require 'irb/completion'
ARGV.concat [ "--readline", "--prompt-mode", "simple" ]

-Kenny

Just from reading this, I don't think it's the solution to this
problem. I'm
running on a Tiger box, and while I now have readline working (the
ability
to press up during irb to bring up previous commands), I don't have
tab
completion. Hell, I didn't even know IRB could do tab completion...

Anyway, that's just from reading what that script does, I didn't
run it
myself.
 

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

Similar Threads


Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top