[ruby-core:86196] [Ruby trunk Bug#14617] rdoc crashes when expression contains embedded comment: no implicit conversion of nil into String (TypeError)

From: v.ondruch@...
Date: 2018-03-19 11:39:52 UTC
List: ruby-core #86196
Issue #14617 has been reported by vo.x (Vit Ondruch).

----------------------------------------
Bug #14617: rdoc crashes when expression contains embedded comment: no implicit conversion of nil into String (TypeError)
https://bugs.ruby-lang.org/issues/14617

* Author: vo.x (Vit Ondruch)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
RDoc might fail when comment is inside code, such as:

~~~ruby
def meth
  variable # comment
    .chain
end
~~~

I was made aware of this issue via this bug [1] report, but it has been already reported [2] and fixed [3] upstream. Would be nice if this is fixed in RDoc shipped in Ruby.

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1556732
[2]: https://github.com/ruby/rdoc/issues/585
[3]: https://github.com/ruby/rdoc/pull/586



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next