Forum: IronRuby can't generate the initializers

Posted by Ivan Porto carrero (casualjim)
on 2010-01-25 18:43
(Received via mailing list)
Hi
<casualjim> hi, what's wrong with this code
<casualjim> http://gist.github.com/285354
<casualjim> when I generate things look right but of course I have no 
idea
what right means
<casualjim> there is content in the Initializer.generated.cs file

Many many problems in my file and I can't seem to work out why.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Posted by Jimmy Schementi (Guest)
on 2010-01-25 22:23
(Received via mailing list)
http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the 
“Adding a new Ruby library class or method” section)

The easiest way to fix any issues with Initializer.Generated.cs is to 
delete all the contents of Initializers.Generated.cs (but not the file 
itself), build (debug mode), run “geninit” to repopulate the 
Initializers.Generated.cs, and build again.

~js

From: ironruby-core-bounces@rubyforge.org 
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Ivan Porto 
Carrero
Sent: Monday, January 25, 2010 9:34 AM
To: ironruby-core
Subject: [Ironruby-core] can't generate the initializers

Hi
<casualjim> hi, what's wrong with this code
<casualjim> http://gist.github.com/285354
<casualjim> when I generate things look right but of course I have no 
idea what right means
<casualjim> there is content in the Initializer.generated.cs file

Many many problems in my file and I can't seem to work out why.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Posted by Tomas Matousek (Guest)
on 2010-01-25 22:26
(Received via mailing list)
There seems to be a bug in the generator. It generates a method name 
using invalid characters (::)

Load__Singleton_TheLandOfChocolate::OompaLoompa_Instance

Could you please file a bug?

Thanks,
Tomas

From: ironruby-core-bounces@rubyforge.org 
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Ivan Porto 
Carrero
Sent: Monday, January 25, 2010 9:34 AM
To: ironruby-core
Subject: [Ironruby-core] can't generate the initializers

Hi
<casualjim> hi, what's wrong with this code
<casualjim> http://gist.github.com/285354
<casualjim> when I generate things look right but of course I have no 
idea what right means
<casualjim> there is content in the Initializer.generated.cs file

Many many problems in my file and I can't seem to work out why.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Posted by Ivan Porto carrero (casualjim)
on 2010-01-25 22:28
(Received via mailing list)
this is outside the ironruby source tree and not a class of ironruby 
itself.

Are you saying I have to put my sources in the ironruby source tree for 
me
to use those attributes?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Mon, Jan 25, 2010 at 10:22 PM, Jimmy Schementi <
Posted by Ivan Porto carrero (casualjim)
on 2010-01-25 22:29
(Received via mailing list)
Ok will do
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Mon, Jan 25, 2010 at 10:19 PM, Tomas Matousek <
Posted by Ivan Porto carrero (casualjim)
on 2010-01-25 22:32
(Received via mailing list)
But the TheLandOfChocolate file is properly attributed?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Mon, Jan 25, 2010 at 10:19 PM, Tomas Matousek <
Posted by Jimmy Schementi (Guest)
on 2010-01-26 09:52
(Received via mailing list)
Sorry for the confusion, I didn’t realize you were just building an 
external IronRuby library.

Can you also open a bug against the generator to not spit the “Copyright 
(c) Microsoft Corporation” out into user-code? =P

~Jimmy

From: ironruby-core-bounces@rubyforge.org 
[mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Ivan Porto 
Carrero
Sent: Monday, January 25, 2010 1:28 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] can't generate the initializers

this is outside the ironruby source tree and not a class of ironruby 
itself.

Are you saying I have to put my sources in the ironruby source tree for 
me to use those attributes?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)


On Mon, Jan 25, 2010 at 10:22 PM, Jimmy Schementi 
<Jimmy.Schementi@microsoft.com<mailto:Jimmy.Schementi@microsoft.com>> 
wrote:
http://wiki.github.com/ironruby/ironruby/modifying-the-sources (see the 
“Adding a new Ruby library class or method” section)

The easiest way to fix any issues with Initializer.Generated.cs is to 
delete all the contents of Initializers.Generated.cs (but not the file 
itself), build (debug mode), run “geninit” to repopulate the 
Initializers.Generated.cs, and build again.

~js

From: 
ironruby-core-bounces@rubyforge.org<mailto:ironruby-core-bounces@rubyforge.org> 
[mailto:ironruby-core-bounces@rubyforge.org<mailto:ironruby-core-bounces@rubyforge.org>] 
On Behalf Of Ivan Porto Carrero
Sent: Monday, January 25, 2010 9:34 AM
To: ironruby-core
Subject: [Ironruby-core] can't generate the initializers

Hi
<casualjim> hi, what's wrong with this code
<casualjim> http://gist.github.com/285354
<casualjim> when I generate things look right but of course I have no 
idea what right means
<casualjim> there is content in the Initializer.generated.cs file

Many many problems in my file and I can't seem to work out why.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)

_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org>
http://rubyforge.org/mailman/listinfo/ironruby-core
Posted by Ivan Porto carrero (casualjim)
on 2010-01-26 10:40
(Received via mailing list)
bugs have been submitted
http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3655
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Tue, Jan 26, 2010 at 9:52 AM, Jimmy Schementi <
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.