Skip to content

RDoc hangs (small reproducible sample) #410

@jneen

Description

@jneen

Users of rouge who don't use --no-rdoc currently can't install > 2.0 of the gem, because RDoc hangs trying to parse its source. I've reduced it to what I think is a minimal example - if I take out the yield, the %<...> string, or the interpolation, RDoc finishes and exits normally.

[ jneen@pepper testy ] $
; ls
doc/  testy.rb

[ jneen@pepper testy ] $
; cat testy.rb
class Test
  def thing
    yield %<<Hello, #{world}>>
  end
end

[ jneen@pepper testy ] $
; rdoc --version
4.2.2

[ jneen@pepper testy ] $
; rdoc .
Parsing sources...
^C0% [ 1/ 1]  testy.rb # <--- hangs, pegs cpu here
Interrupted

[ jneen@pepper testy ] $
;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions