Code Monkey home page Code Monkey logo

Comments (13)

JonRowe avatar JonRowe commented on August 25, 2024 3

Thanks @ozzyaaron that fixed it for me too

from irb.

aycabta avatar aycabta commented on August 25, 2024

Would you install the latest version by gem install irb reline and try again?

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

My apologies I thought this was the latest released version. Same with:

irb 1.2.3
reline 0.1.3

from irb.

aycabta avatar aycabta commented on August 25, 2024

I can't reproduce what you reported. Could you copy and paste your complete reproducible log including outputs of IRB?

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

Starting a new irb session from my home directory:

Last login: Mon Mar 30 09:38:48 on ttys011
➜  ~ irb
2.7.0 :001 > Dir['*']
 => ["Music", "Pictures", "Code", "Talks", "Desktop", "Library", "Documents", "Downloads"]
2.7.0 :002 >

Pressing the up arrow key produces no further output, I would expect it to show Dir['*'].

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

The following (in the same shell) allows history:

2.7.0 :002 > exit~ irb --legacy
2.7.0 :001 > 

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

demo

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

If I can provide anything more to help reproduce this let me know because its driving me up the wall!

from irb.

aycabta avatar aycabta commented on August 25, 2024

Hmm...I tried to reproduce with other Ruby committers on macOS with iTerm2 but I couldn't. Are you using .irbrc and .inputrc?

from irb.

JonRowe avatar JonRowe commented on August 25, 2024

.irb-history is recording commands, which I guess is why --legacy can replay them.

~ cat .irbrc
cat: .irbrc: No such file or directory
➜  ~ cat .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
set bell-style none

from irb.

ozzyaaron avatar ozzyaaron commented on August 25, 2024

@JonRowe I had the same issue and this fixed it for me https://stackoverflow.com/a/60142403 as I had the same .inputrc mods as the OP

from irb.

aycabta avatar aycabta commented on August 25, 2024

@JonRowe I implemented history-search-backward and history-search-forward by ruby/reline#142, and released a new version of reline gem. Please install the latest version by gem install reline.

from irb.

espen avatar espen commented on August 25, 2024

For me this issue only occurs when using bundler. Using irb standalone works fine. But bundle exec irb or the using the rails console will not show any history (it is logged to .irb_history).

from irb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.