-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Always entering debugger in Ruby 2.7 (4.0.0.rc1) #690
Comments
Even worse on Ruby 3.0.3, with an error raised
This seems to point to html-proofer/lib/html_proofer.rb Lines 17 to 18 in fda9ef4
where there is something related to debugging. |
I also found a possibly related ruby/debug#275 and PR ruby/debug#278. I tried to give a go to the approach used in the PR (
which does not error (nor enters the debugger on 2.7) Hope this helps. |
I can confirm requiring html-proofer/lib/html_proofer.rb Lines 17 to 18 in fda9ef4
is the root cause of the issues in both Ruby 3.0 and 2.7
|
I wonder why CI didn't complain about this? Thanks for finding it. I'm just going to comment the gem out, it's non-essential. |
@gjtorikian, thanks for quick fix(es)! I still see this happening with 4.0.0.rc2: I guess it is key to also prevent requiring html-proofer/lib/html_proofer.rb Lines 17 to 18 in fda9ef4
Good point about CI... but it seems like entering the debugger does not bother the CI, but we still see it in the logs there, see the 4.0.0.rc2 jobs:
(Un)likely, 3.0.0 indeed just enters the debugger as 2.7.5 (could confirm locally with Docker), as opposed to the error I see with 3.0.3 does, which might have broken CI. |
Ohhh damn it, I understand what’s happening now. Ugh! Thank you for your patience. |
Requiring the debug gem caused the debugger to open in ruby 2.7 Here is an identical issue: gjtorikian/html-proofer#690
Requiring the debug gem caused the debugger to open in ruby 2.7 Here is an identical issue: gjtorikian/html-proofer#690
When running htmlproofer 4.0.0.rc1 on Ruby 2.7, it seems to always trigger the debugger. This does not occur on Ruby 3.1.
I tested this in a reproducible way in a "fresh" Ruby installation using Docker via
Just asking for the version reveals the issue
UPDATE The same occurs with a yet more minimal example of simply requiring
html-proofer
ruby -e "require 'html-proofer'"
The text was updated successfully, but these errors were encountered: