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
Documentation silently dropped when certain constructs parsed #1553
It isn't endless methods because the rest of them work...
nor does it seem to be using a block on an endless, because the rest of the work...
nor does it seem to be the ... arg/call...
After much mangling, it appears to be the singleton method on sw but ONLY if that's done as an endless on an endless?
Endless method related bugs will be fixed with the new parser RDoc::Parser::PrismRuby (enabled with env RDOC_USE_PRISM_PARSER=1 for now) and we're planning to changing the default soon.
The default RDoc::Parser::Ruby parser doesn't support endless method at all. Reaching endless method, any random result may happen.
classAdeffoo.f;=42# RDoc assumes self == foodefbaz1;end# Treated as foo.baz1defA.baz2;end# Documented as A.baz2endclassB;end# Documented as A::B# end is missing.
Endless method definition is now supported with #1581
Random parse failure will be also fixed by using Prism instead of hand written ruby parser implemented in RDoc.
Activity
tompng commentedon Jan 9, 2026
Endless method related bugs will be fixed with the new parser
RDoc::Parser::PrismRuby(enabled with envRDOC_USE_PRISM_PARSER=1for now) and we're planning to changing the default soon.The default
RDoc::Parser::Rubyparser doesn't support endless method at all. Reaching endless method, any random result may happen.For example, this code:
Will be parsed as:
Related to #885 and #1373
zenspider commentedon Jan 9, 2026
given that the whole class had been wrapped in a stopdoc/startdoc, I would have hoped that it simply skipped over the whole thing.
"
endis missing" would also be a nice clue that something went haywire... but nothing of the sort is emitted even using-DV.Change default ruby parser to RDoc::Parser::PrismRuby (#1581)
tompng commentedon Feb 17, 2026
Endless method definition is now supported with #1581
Random parse failure will be also fixed by using Prism instead of hand written ruby parser implemented in RDoc.