Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the debug.gem force-loader for Ruby 3.2 #458

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

k0kubun
Copy link
Member

@k0kubun k0kubun commented Nov 26, 2022

Follows up #448.

Ruby 3.1.3 has a debug.gem installation like:

$ find /opt/rubies/3.1.3 |grep "debug\.so"
/opt/rubies/3.1.3/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0-static/debug-1.6.3/debug/debug.so
/opt/rubies/3.1.3/lib/ruby/gems/3.1.0/gems/debug-1.6.3/ext/debug/debug.so
/opt/rubies/3.1.3/lib/ruby/gems/3.1.0/gems/debug-1.6.3/lib/debug/debug.so

On the other hand, Ruby 3.2.0-preview3 has only:

$ find /opt/rubies/3.2.0-preview3 |grep "debug\.so"
/opt/rubies/3.2.0-preview3/lib/ruby/gems/3.2.0+3/extensions/x86_64-linux/3.2.0+3-static/debug-1.6.3/debug/debug.so

We'd need to support the extensions path for Ruby 3.2.

@k0kubun k0kubun requested a review from st0012 November 26, 2022 07:16
lib/irb/cmd/debug.rb Show resolved Hide resolved
lib/irb/cmd/debug.rb Show resolved Hide resolved
@k0kubun k0kubun merged commit 3c72c1a into ruby:master Nov 28, 2022
@k0kubun k0kubun deleted the ruby-3-2-load branch November 28, 2022 18:42
matzbot pushed a commit to ruby/ruby that referenced this pull request Nov 28, 2022
(ruby/irb#458)

* Fix the debug.gem force-loader for Ruby 3.2

* Support 1.7.0dev format as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants