[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

rdoc fails to parse complex method def

From: murphy <murphy@...>
Date: 2006-12-24 12:47:43 UTC
List: ruby-core #9783
rdoc can't handle the following code and crashes:

def (config = "").write(arg)
   concat(arg.to_s)
end
(from mkconfig.rb)

The internal error was:

/usr/local/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:1941:in `parse_method': 
undefined method `name' for #<RubyToken::TkLPAREN:0x4ad4e0 @text="(", 
@char_no=4, @line_no=1> (NoMethodError)
         from /usr/local/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:1640:in 
`parse_statements'
         from /usr/local/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:1573:in 
`parse_toplevel_statements'
         from /usr/local/lib/ruby/1.9/rdoc/parsers/parse_rb.rb:1405:in 
`RDoc::RubyParser#scan'
H

The problem seems to be here:

         name = name_t.name

Not all tokens have names.

[murphy]

In This Thread

Prev Next