[Ironruby-core] error --> undefined method 'length' for nil:NilClass

Jim Deville jdeville at microsoft.com
Thu Apr 2 13:42:20 EDT 2009


It's probably related to Merlin\External moving to Merlin\External.LCA_RESTRICTED. I'll figure it out and push out a new revision in a few hours.

JD

From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Robert Johnson
Sent: Thursday, April 02, 2009 9:58 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] error --> undefined method 'length' for nil:NilClass

I just updated my local repo from gitHub and when I run rake compile I see the following error:

----------------------------------------------------------------------------------------------------------------------------------------
C:\Users\Robert\bob-code-repo\ironruby_working\Merlin\Main\Languages\Ruby>rake compile
(in C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby)
rake aborted!
undefined method `length' for nil:NilClass

(See full trace by running task with --trace)
----------------------------------------------------------------------------------------------------------------------------------------


I ran rake with "--trace" and the following was the result:


------------------------------------------------------------------------------------------------------------------------------------------
C:\Users\Robert\bob-code-repo\ironruby_working\Merlin\Main\Languages\Ruby>rake c
ompile --trace
(in C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby)
** Invoke compile (first_time)
** Invoke happy (first_time)
** Execute happy
rake aborted!
undefined method `length' for nil:NilClass
C:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.6.1/lib/pathname2.rb:100:in `initiali
ze'
C:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.6.1/lib/pathname2.rb:665:in `new'
C:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.6.1/lib/pathname2.rb:665:in `+'
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:30:in `path_exists?'
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:29:in `each'
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:29:in `path_exists?'
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:103
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:102:in `each'
C:/Users/Robert/bob-code-repo/ironruby_working/Merlin/Main/Languages/Ruby/rake/m
isc.rake:102
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in `invoke_with_call_c
hain'
c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_c
hain'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisit
es'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisit
es'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:577:in `invoke_with_call_c
hain'
c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_c
hain'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exceptio
n_handling'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exceptio
n_handling'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/bin/rake:31
c:/ruby/bin/rake:19:in `load'
c:/ruby/bin/rake:19
------------------------------------------------------------------------------------------------------------------------------------------

Does anyone have any idea whats happening ?

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090402/68a8b6a9/attachment.html>


More information about the Ironruby-core mailing list