Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash with straight tab #26

Closed
rdp opened this issue Feb 3, 2011 · 7 comments
Closed

crash with straight tab #26

rdp opened this issue Feb 3, 2011 · 7 comments
Labels

Comments

@rdp
Copy link
Contributor

rdp commented Feb 3, 2011

Hello.
Get this:

irb(main):001:0> D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4848:in `[]=': index 0 out of string (IndexError)
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4848:in `rl_delete_text'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4901:in `_rl_replace_text'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:6341:in `insert_match'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:6709:in `rl_complete_internal'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:6769:in `rl_complete'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4241:in `send'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4241:in `_rl_dispatch_subseq'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/site_ruby/1.8/rbreadline.rb:4230:in `_rl_dispatch'
         ... 21 levels...
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/1.8/irb.rb:70:in `start'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/1.8/irb.rb:69:in `catch'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/lib/ruby/1.8/irb.rb:69:in `start'
        from D:/installs/ruby-1.8.6-p388-i386-mingw32/bin/irb:13

When I hit "tab" within irb with nothing entered yet (i.e. first keystroke is tab).
Cheers!

@luislavena
Copy link
Collaborator

Have you tried latest version of rb-readline?

Download 0.4.0 from GitHub and follow the installation instructions from here:

http://blog.mmediasys.com/2009/09/21/pure-ruby-readline-released-0-2-0/

@luislavena
Copy link
Collaborator

Also, please check or provide the contents of ~/.inputrc

@rdp
Copy link
Contributor Author

rdp commented Feb 4, 2011

that was with trunk as of today.

C:\dev>cat %HOMEPATH%/.inputrc
cat: \Users\packrd/.inputrc: No such file or directory

C:\dev>cat %HOMEPATH%/.irbrc
require 'irb/ext/save-history'
#History configuration
IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = "#{File.expand_path('~')}/.irb-save-history"

@luislavena
Copy link
Collaborator

Hello,

I can confirm it happens with double tab, not with a single tab.

PS: For the record, your version of Ruby seems odd and 10 patchlevel lower than latest RubyInstaller... Will look into this issue later.

@rocky
Copy link
Collaborator

rocky commented Feb 4, 2011

I think I encountered this and may have addressed it in my fork (of just a little while ago). I saw I think the same traceback.

After making a number of other small changes I'll issue a pull request from the fork I have at http://github.com/rocky/rb-readline

@rocky
Copy link
Collaborator

rocky commented Feb 23, 2011

I believe this is fixed now in git. Please verify and close.

@luislavena
Copy link
Collaborator

Indeed.

As of current master, this issue is solved.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants