FYI: transient dependency on `erb` means that `debug` no longer installs on Ruby < 3.2
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the Ruby version requirement in debug.gemspec and the supported versions listed in README.md. Reproduce installation on Ruby 3.1 and inspect the dependency chain through irb, rdoc, and erb. Done should mean either supported Ruby versions install successfully or the support claims and CI coverage are updated to match.
Written by the indexing model from the issue text.
Description
Your environment
ruby -v:ruby 3.1.7p261 (2025-03-26 revision 0a3704f218) [x86_64-linux]
Describe the bug
I noticed in this dependabot PR, that CI was failing to install debug in Ruby 3.1.
debug relies on irb, which relies on rdoc which relies on erb, which dropped support for Ruby < 3.2:
erb-5.0.1 requires ruby version >= 3.2.0, which is incompatible with the current
version, 3.1.7
debug claims to support Ruby back to 2.7 (here and here), but currently can't be installed on those.
To Reproduce
- Within Ruby <3.2, try to install
debug
Expected behavior
- If it's a supported Ruby version, then installing
debugshould work fine.- And perhaps
debugshould have a CI run using these old versions to show that it continues to work.
- And perhaps
Additional context
I know that this isn't under your direct control, so I'm not sure which would be the best way to handle this.
This is really just an FYI. In my case, I'll probably drop support for 3.1 myself, and so I will no longer attempt to install debug on it.
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor 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/debug
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100