rdoc icon indicating copy to clipboard operation
rdoc copied to clipboard

RDoc::RDoc #parse_file does not work

Open mullermp opened this issue 1 year ago • 0 comments

Parse files works correctly:

rdoc = RDoc::RDoc.new
rdoc.options = RDoc::Options.load_options
rdoc.store = RDoc::Store.new

rdoc.parse_files(['/path/to/file'])

However when calling parse file instead,

rdoc.parse_file('path/to/file')

I see a failure for stats being nil.

undefined method `add_file' for nil (NoMethodError)

    @stats.add_file filename
          ^^^^^^^^^

mullermp avatar Jan 02 '25 19:01 mullermp