Skip to content

Conversation

@mame
Copy link
Member

@mame mame commented Jun 18, 2025

In Ruby 3.5, the debug inspector API returns a raw backtrace, so irb/debug needs to remove not only <internal:prelude> but also all internal frames.

mame added 2 commits June 18, 2025 11:57
In Ruby 3.5, the debug inspector API returns a raw backtrace, so
irb/debug needs to remove not only `<internal:prelude>` but also all
internal frames.
In ruby 3.5, `Kernel#caller_location` will not include `<internal:xxx>`
frames. Instead, it will use its caller-side location for an internal
frame. ruby/ruby#13238

This change updates the expected values of backtraces in irb test to
support the behavior change.
@mame mame marked this pull request as ready for review June 18, 2025 05:05
@mame
Copy link
Member Author

mame commented Jun 18, 2025

The CI fails because ruby/ruby#13238 is not merged. But to merge that PR to ruby/ruby, this PR must be merged to ruby/irb...

Let me merge this now. Then I will merge that PR to ruby/ruby, and trigger ruby-dev-builder so that setup-ruby can fetch the new ruby master.

@mame mame merged commit 331c4e8 into ruby:master Jun 18, 2025
31 of 33 checks passed
@mame mame deleted the remove-internal-frames-explicitly branch June 18, 2025 05:09
@tompng tompng added the enhancement New feature or request label Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants