Forum: IronRuby error --> undefined method 'length' for nil:NilClass

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
11091550bc5c269446b335eb943286d4?d=identicon&s=25 Robert Johnson (Guest)
on 2009-04-02 19:20
(Received via mailing list)
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
Ade8632553a9243ae05fc920f68644c1?d=identicon&s=25 Jim Deville (Guest)
on 2009-04-02 20:02
(Received via mailing list)
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@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Robert Johnson
Sent: Thursday, April 02, 2009 9:58 AM
To: ironruby-core@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
This topic is locked and can not be replied to.