Comments (7)
To add more info. Adding readline-ext back fixes some things. I believe this is due Readline being replaced with Reline on Ruby 3.3.
from pry.
The behavior difference between Readline and Reline that cause this issue is lack of bracketed paste mode support in Reline.
Readline >= 8.1 enables bracketed paste mode by default.
The new Reline 0.5.6 (released today) now supports it.
With latest reline:
[1] pry(main)> Reline::VERSION
=> "0.5.6"
[2] pry(main)> "foo".strip
.upcase
.gsub('f', 'b')
from pry.
It works!
from pry.
I'll close this issue in favor of #2063(Which is the actual issue).
I'm working on #2298. It allows pry to work with reline, without needing readline-ext. But anyone can install readline-ext and fallback to the old Readline implementation.
from pry.
I can confirm the first one.
But for the second one, i get same output as ruby 3.2.1 (i guess both of them formatted by AwesomePrint), but, 3.3.0 is really slow, as describe by you.
from pry.
Thank you both! Adding the readline-ext
gem to my Rails project solved this for me. Feel free to close this issue if you'd like to consider this resolved on your end!
from pry.
Awesome @tompng thanks! 🙌
from pry.
Related Issues (20)
- Exception line numbers do not match prompt line numbers. HOT 2
- undefined method `=~' for class `Pry::Code' (NameError) HOT 4
- New feature: print runtime of command in human readable format in prompt
- Proposal: allow pull requests for contributions to the pry GitHub wiki HOT 1
- find-method does not search methods created by 'extend' HOT 1
- Pry Autocomplete Menu?
- `find-method` fails inside Rails application (undefined method `is_a?' for #<BasicObject>) HOT 1
- vim mode with pry no longer works as well
- "Did you mean" output no longer shown with Ruby 3.2 HOT 2
- keyboard shortcut ^x to exit! HOT 3
- stdout make the repl unusable
- Last result special variable _ sometimes returns second to last result at the end
- Indentation should not increase when defining methods in the newer single-line syntax
- Last iteration of loop is incomplete HOT 2
- show-mode-in-prompt weird behavior
- Compatibility Inquiry: pry gem (0.14.2) with Ruby 3.3.0 HOT 2
- Editing history corrupts history rather than appending to history HOT 3
- When used inside Emacs with Reline, input is echoed HOT 2
- `whereami` does not automatically prints in a `binding.pry` if there is a command prefix
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 pry.