Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

18 views
Skip to first unread message

Unnsse Khan

unread,
Oct 20, 2005, 8:33:38 PM10/20/05
to
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


James Edward Gray II

unread,
Oct 20, 2005, 10:47:09 PM10/20/05
to
On Oct 20, 2005, at 7:33 PM, Unnsse Khan wrote:

> Anyone else have any suggestions?

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

Hope that helps.

James Edward Gray II


Peter Burns

unread,
Oct 22, 2005, 12:26:15 AM10/22/05
to
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.

Kenny Parnell

unread,
Oct 22, 2005, 12:41:44 AM10/22/05
to
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

Ezra Zygmuntowicz

unread,
Oct 22, 2005, 12:52:15 AM10/22/05
to
Peter-
Try to require 'irb/completion' if it works put it in your
~/.irbrc and you will have tab completetion

Cheers-
-Ezra

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ez...@yakima-herald.com
509-577-7732


Peter Burns

unread,
Oct 22, 2005, 5:02:53 PM10/22/05
to
I put this into my ~/.irbrc and it's working great now.

Thanks for the responses, this is excellent.

0 new messages