Comments (13)
Thanks @ozzyaaron that fixed it for me too
from irb.
Would you install the latest version by gem install irb reline
and try again?
from irb.
My apologies I thought this was the latest released version. Same with:
irb 1.2.3
reline 0.1.3
from irb.
I can't reproduce what you reported. Could you copy and paste your complete reproducible log including outputs of IRB?
from irb.
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.
The following (in the same shell) allows history:
2.7.0 :002 > exit
➜ ~ irb --legacy
2.7.0 :001 >
from irb.
from irb.
If I can provide anything more to help reproduce this let me know because its driving me up the wall!
from irb.
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.
.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.
@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.
@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.
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)
- Rewrite handle_exception to apply backtrace filtering to Exception#backtrace instead of Exception#full_message
- Introduce IRB.conf[:backtrace_filter] for upstream projects to extend filter_backtrace
- Feature Request: Equivalent to Pry’s !!! in IRB for Exiting Nested Contexts HOT 2
- Ctrl-D behaviour is different between normal IRB and irb:rdbg sessions
- Please clarify the license HOT 1
- Can't enter a debug session with irb 1.13 HOT 4
- Can't change workspace after entering `debug`
- Add helper aliases HOT 6
- undefined method `extract_ruby_args=' for module IRB::Command (NoMethodError) HOT 7
- IRB crashes when using `define_method('class') {}` HOT 1
- `show_source` can't find some sources defined in the session HOT 1
- HISTORY is unavailable when using rails console with RUBY_DEBUG_IRB_CONSOLE=1
- IRB fails to colorize code other than utf-8
- break debug command changes ruby behavior HOT 2
- Add a command to peek at otherwise inaccessible context
- ^W does not treat the '.' character as a word boundary HOT 2
- Add animated GIF/SVG recordings of `irb` in action to the README
- With `irb --noreadline --nomultiline` there is an unnecessary newline before each prompt HOT 1
- [feature request] Automatically set process title to currently running command HOT 3
- next alias crashing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irb.