Issue #17680 has been updated by crocarneiro (Carlos Carneiro).


I could not reproduce the old version behaviour. I got back to irb 1.1.0 and the autocomplete behaviour is the same as the version 1.3.4. My steps:

$ touch linking.rb
$ touch list_load.rb
$ touch list_load_OLD.rb
$ irb
2.5.0 :001 > source 'li

Hitting tab gives me:
2.5.0 :001 > source 'li'

irb -v: irb 1.1.0 (2019-11-21)
ruby -v: ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
OS: Ubuntu 20.04.1 LTS


How you achieved that behaviour in the old version? How was your "~/.irbrc" file?

----------------------------------------
Bug #17680: tab completion no longer works on irb3.0
https://bugs.ruby-lang.org/issues/17680#change-90799

* Author: simondedeo (Simon DeDeo)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin16]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
in irb2.5:

rb(main):001:0> source 'li [then I hit tab...]
linking.rb        list_load.rb      list_load_OLD.rb  
irb(main):001:0> source 'lis [then I hit tab again...]
list_load.rb      list_load_OLD.rb  
irb(main):001:0> source 'list_load.rb' [then I hit tab again...]

in irb3.0, hitting tab after typing "source 'li" gives.

irb(main):001:0' source 'li'

Here are my version numbers:

ayerie:simon$ irb3.0 -v
irb 1.3.0 (2020-12-25)
ayerie:CHLOE simon$ ruby3.0 -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin16]
ayerie:simon$ 





-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>