GithubHelp home page GithubHelp logo

Comments (7)

andrehjr avatar andrehjr commented on June 10, 2024 2

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.

tompng avatar tompng commented on June 10, 2024 2

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.

zw963 avatar zw963 commented on June 10, 2024 1

It works!

from pry.

andrehjr avatar andrehjr commented on June 10, 2024 1

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.

zw963 avatar zw963 commented on June 10, 2024

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.

rstratton avatar rstratton commented on June 10, 2024

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.

andrehjr avatar andrehjr commented on June 10, 2024

Awesome @tompng thanks! 🙌

from pry.

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.