You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Including modules creates an infinite loop between methods #1088
For me, that script ends in "stack level too deep":
$ rdoc rdoc_bug.rb
Parsing sources...
100% [ 1/ 1] rdoc_bug.rb
Generating Darkfish format into /Users/rmosolgo/code/graphql-ruby/doc...
uh-oh! RDoc had a problem:
stack level too deep
run with --debug for full backtrace
I was able to work around it, so this bug is not blocking me, but I thought I'd open it here in case its helpful to anyone else.
Activity
tompng commentedon Feb 7, 2026
RDoc documents
includeinsideModule.new do end. This is a bug.This bug is fixed in
RDoc::Parser::PrismRubyparser (enabled withRDOC_USE_PRISM_PARSER=1) so the problem is partially reduced.However, infinite loop can be still reproducible with the following code: