[Ironruby-core] rake test

Tomas Matousek Tomas.Matousek at microsoft.com
Wed May 14 01:03:58 EDT 2008


How does the method signature with [NotNull] look like? (Note that /*!*/ is just a comment that is understood by static verification tools, not used at runtime at all, the [NotNull] attribute should prevent null to go in if called from Ruby, however).

Tomas

From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Unnikrishnan Nair
Sent: Tuesday, May 13, 2008 9:41 PM
To: ironruby-core at rubyforge.org
Subject: Re: [Ironruby-core] rake test


In one of my rake test I ran into the same problem. It looks like one of the method was getting a null value even though the method signature had   [NotNull] with /*!*/. I added a code if the value is null return false and my rake test went through. It happened for all but one test so I am ok for now. It looks like it is not happening when you execute the same command in ir so I think it is specific to rake. I doubt, it has to do with ':each' in the teardown part of the rake test.



Thanks.

----- Original Message ----
From: Andrew Peters <andrew at mindscape.co.nz>
To: ironruby-core at rubyforge.org
Sent: Tuesday, May 13, 2008 11:09:31 PM
Subject: [Ironruby-core] rake test

Should I be able to run these?

I'm currently getting this error:

:0:in `do_generate': undefined local variable or method `methods' for main:Object (NoMethodError)
        from :0:in `#block162'
        from c:\Projects\IronRuby\trunk\src\IronRuby.Libraries\Extensions\IListOps.cs:785:in `Each'
        from :0:in `Initialize##1'rake aborted!
Command failed with status (1): ["c:\projects\ironruby\trunk\build\debug\ir...]

Cheers,

Andrew.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080513/11ead443/attachment.html>


More information about the Ironruby-core mailing list