Auto formatting should be disabled by default
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the output with Ruby 2.7.6 and IRB 1.5.0, using the reported ~/.irbrc setting and checking irb_info. Trace how automatic formatting is enabled and verify that it is disabled by default while explicit pp output remains available.
Written by the indexing model from the issue text.
Description
Description
After upgrading to ruby 2.7.6 our IRB got broken, copy and pasting a long string was slow, if you need to paste a multiline test in a middle of a string that also didn't work. We had to upgrade the IRB gem to 1.5.0, now it always automatically formats the output, which I don't need.
Now the output looks like this, which is quite annoying. Previously, when I needed a formatted output I was able to use pp. Can't find a way to disable this with Heroku also.
2.7.6 :002 > stats = [[17144, 514], [17638, 522], [16796, 525], [16838, 535], [131, 538], [17080, 542], [15866, 573], [16924, 575], [17594, 605], [943, 611], [17379, 612], [17056, 640], [16795, 681], [17481, 686], [13529, 692], [17286, 697], [17640, 717], [13852, 720], [1726, 749], [14243, 758], [13785, 771], [14342, 779], [13627, 861], [27, 867], [13594, 871], [17285, 940], [17139, 944], [14286, 982], [15796, 995], [14180, 1024], [17583, 1130], [15918, 1207], [15664, 1256], [17066, 1372], [16243, 1373], [17198, 1400], [17213, 1516], [17622, 1539], [17467, 1621], [17122, 1700], [15739, 1752], [16939, 1760], [16940, 1843], [15510, 1929], [17164, 1963], [15667, 2033], [17001, 2633], [17493, 3372], [16325, 3535], [16485, 3763], [17580, 4002], [16480, 4495], [16952, 4604], [17114, 4860], [17046, 5012], [17401, 5123], [17047, 5268], [13653, 5379], [16138, 5391], [17070, 6030], [15255, 6387], [63, 6536], [17476, 6837], [15682, 7263], [16446, 8721], [15867, 9081], [17465, 9207], [17307, 9836], [17414, 10553], [14762, 12058], [17639, 15060], [14932, 19581], [17099, 21540], [17437, 25341], [12985, 31836], [17666, 31848], [17439, 35802], [17668, 178481], [17667, 247517]]
=>
[[17144, 514],
...
2.7.6 :003 > stats
=>
[[17144, 514],
[17638, 522],
[16796, 525],
[16838, 535],
[131, 538],
[17080, 542],
[15866, 573],
[16924, 575],
[17594, 605],
[943, 611],
[17379, 612],
[17056, 640],
[16795, 681],
[17481, 686],
[13529, 692],
[17286, 697],
[17640, 717],
[13852, 720],
[1726, 749],
[14243, 758],
[13785, 771],
[14342, 779],
[13627, 861],
[27, 867],
[13594, 871],
[17285, 940],
[17139, 944],
[14286, 982],
[15796, 995],
[14180, 1024],
[17583, 1130],
[15918, 1207],
[15664, 1256],
[17066, 1372],
[16243, 1373],
[17198, 1400],
[17213, 1516],
[17622, 1539],
[17467, 1621],
[17122, 1700],
[15739, 1752],
[16939, 1760],
[16940, 1843],
[15510, 1929],
[17164, 1963],
[15667, 2033],
[17001, 2633],
[17493, 3372],
[16325, 3535],
[16485, 3763],
[17580, 4002],
[16480, 4495],
[16952, 4604],
[17114, 4860],
[17046, 5012],
[17401, 5123],
[17047, 5268],
[13653, 5379],
[16138, 5391],
[17070, 6030],
[15255, 6387],
[63, 6536],
[17476, 6837],
[15682, 7263],
[16446, 8721],
[15867, 9081],
[17465, 9207],
[17307, 9836],
[17414, 10553],
[14762, 12058],
[17639, 15060],
[14932, 19581],
[17099, 21540],
[17437, 25341],
[12985, 31836],
[17666, 31848],
[17439, 35802],
[17668, 178481],
[17667, 247517]]
Result of irb_info
2.7.6 :001 > irb_info
=>
Ruby version: 2.7.6
IRB version: irb 1.5.0 (2022-11-20)
InputMethod: ReadlineInputMethod with ext/readline 8.2
.irbrc path: /Users/heaven/.rvm/rubies/ruby-2.7.6/.irbrc
RUBY_PLATFORM: arm64-darwin22
East Asian Ambiguous Width: 1
Terminal Emulator
iTerm2
Setting Files
My ~/.irbrc
IRB.conf[:USE_MULTILINE] = false
- Dominant language
- Ruby
- Stars
- 477
- Forks
- 165
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/irb
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Maintainers usually reply within 2 days
-
Proposal: public hook for external documentation providers in show_doc and the completion doc dialogPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 2 days
Similar issues
-
bug f:request-creation professional
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mysociety/alaveteli#9733 · 1 comment ·
Maintainers usually reply within 1 day
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 13 days
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
betagouv/conseillers-entreprises#4808 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100