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:ininitiali
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:ineach’
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:ineach’
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:inexecute’
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:inexecute’
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:insynchronize’
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:ininvoke_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:ininvoke_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:insynchronize’
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:ininvoke’
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:intop_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:intop_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:intop_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:instandard_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:inload’
c:/ruby/bin/rake:19

Does anyone have any idea whats happening ?

Robert

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: [email protected]
[mailto:[email protected]] On Behalf Of Robert J.on
Sent: Thursday, April 02, 2009 9:58 AM
To: [email protected]
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