I’m just a newbie trying that’s also trying to get auto-completion to work
but I might be able to help. I think you have to run irb like this first:
irb --readline
However after doing that I get this from irb:
[local]frisco:mgarriss:~/lib/ruby/1.7> irb --readline
irb(main):001:0> require “irb/completion”
NotImplementedError: The basic_word_break_characters=() function is
unimplemented on this machine
from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185:in
basic_word_break_characters=' from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185 from (irb):1:in
require’
from (irb):1:in irb_binding' from /home/mgarriss/lib/ruby/1.7/irb/workspace.rb:52:in
irb_binding’
Maybe IRB bug!!
irb(main):002:0>
···
from :0
-----Original Message-----
From: James Davis [mailto:jd204c@nih.gov]
Sent: Saturday, December 14, 2002 2:18 PM
To: ruby-talk@ruby-lang.org
Subject: irb auto completion
I’m using Ruby 1.6.6 on Win XP. Just installed the latest IRb and
IRb-tools, hoping to get the auto-completion feature. I get this
error:
C:\WINDOWS\SYSTEM32>irb -r irb/completion
c:/Prog/Ruby/lib/ruby/1.6/irb/completion.rb:10:in require': No such file to load -- readline (LoadError) from c:/Prog/Ruby/lib/ruby/1.6/irb/completion.rb:10 from c:/Prog/Ruby/lib/ruby/1.6/irb/init.rb:218:in
require’
…
I searched my system, but have no readline file. Is it available for
Windows? Thanks in advance,
Thanks for writing. I’ve tried both
‘irb --readline’ and ‘irb -r irb/completion’. Both give errors
(different from each other and from yours). The latter command came
from the book “Ruby Developer’s Guide”. This issue was discussed here
in the past, but I think in that case the user was on unix, not Win32.
···
On Tue, 17 Dec 2002 00:16:47 +0900, “Garriss, Michael” Michael.Garriss@abacus-direct.com wrote:
I’m just a newbie trying that’s also trying to get auto-completion to work
but I might be able to help. I think you have to run irb like this first:
irb --readline
However after doing that I get this from irb:
[local]frisco:mgarriss:~/lib/ruby/1.7> irb --readline
irb(main):001:0> require “irb/completion”
NotImplementedError: The basic_word_break_characters=() function is
unimplemented on this machine
from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185:in
basic_word_break_characters=' from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185 from (irb):1:in
require’
from (irb):1:in irb_binding' from /home/mgarriss/lib/ruby/1.7/irb/workspace.rb:52:in
irb_binding’
from :0
Maybe IRB bug!!
irb(main):002:0>
Auto-completion (‘irb -r irb/completion’) works fine with the Ruby-165-2
Installer. But note, that’s the cygwin based version.
Auto-completion in 167-2 (native Win32) does not work for me on Win98.
I haven’t tried the 172 version yet, but I guess the above output is
from 172 and it does not seem to work.
Regards,
Michael
···
On Mon, 2002-12-16 at 22:24, James Davis wrote:
On Tue, 17 Dec 2002 00:16:47 +0900, “Garriss, Michael” > Michael.Garriss@abacus-direct.com wrote:
I’m just a newbie trying that’s also trying to get auto-completion to work
but I might be able to help. I think you have to run irb like this first:
irb --readline
However after doing that I get this from irb:
[local]frisco:mgarriss:~/lib/ruby/1.7> irb --readline
irb(main):001:0> require “irb/completion”
NotImplementedError: The basic_word_break_characters=() function is
unimplemented on this machine
from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185:in
basic_word_break_characters=' from /home/mgarriss/lib/ruby/1.7/irb/completion.rb:185 from (irb):1:in
require’
from (irb):1:in irb_binding' from /home/mgarriss/lib/ruby/1.7/irb/workspace.rb:52:in
irb_binding’
from :0
Maybe IRB bug!!
irb(main):002:0>
Thanks for writing. I’ve tried both
‘irb --readline’ and ‘irb -r irb/completion’. Both give errors
(different from each other and from yours). The latter command came
from the book “Ruby Developer’s Guide”. This issue was discussed here
in the past, but I think in that case the user was on unix, not Win32.