# Can't generate the initializers

**URL:** <https://www.ruby-forum.com/t/cant-generate-the-initializers/182258>\
**Category:** IronRuby\
**Created:** [January 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258 "2010-01-25T18:43:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/1 "2010-01-25T18:43:19Z")

</div>

Hi  
 hi, what’s wrong with this code  
[http://gist.github.com/285354](http://gist.github.com/285354)  
 when I generate things look right but of course I have no  
idea  
what right means  
 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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 10:23pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/2 "2010-01-25T22:23:27Z")

</div>

[http://wiki.github.com/ironruby/ironruby/modifying-the-sources](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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] 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  
 hi, what’s wrong with this code  
[http://gist.github.com/285354](http://gist.github.com/285354)  
 when I generate things look right but of course I have no  
idea what right means  
 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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/3 "2010-01-25T22:26:23Z")

</div>

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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] 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  
 hi, what’s wrong with this code  
[http://gist.github.com/285354](http://gist.github.com/285354)  
 when I generate things look right but of course I have no  
idea what right means  
 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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 10:29pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/4 "2010-01-25T22:29:19Z")

</div>

## Ok will do

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Mon, Jan 25, 2010 at 10:19 PM, Tomas M. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 10:28pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/5 "2010-01-25T22:28:43Z")

</div>

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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Mon, Jan 25, 2010 at 10:22 PM, Jimmy S. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 25, 2010, 10:32pm UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/6 "2010-01-25T22:32:49Z")

</div>

## But the TheLandOfChocolate file is properly attributed?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Mon, Jan 25, 2010 at 10:19 PM, Tomas M. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 26, 2010, 10:40am UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/7 "2010-01-26T10:40:58Z")

</div>

## bugs have been submitted [http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3655](http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3655)

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Tue, Jan 26, 2010 at 9:52 AM, Jimmy S. \<

---

<div class="post-metadata">

**Author:** ![barby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c57346/32.png) [@barby](https://www.ruby-forum.com/u/barby)\
**Post date:** [January 26, 2010, 9:52am UTC](https://www.ruby-forum.com/t/cant-generate-the-initializers/182258/8 "2010-01-26T09:52:57Z")

</div>

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: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Ivan Porto  
Carrero  
Sent: Monday, January 25, 2010 1:28 PM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Mon, Jan 25, 2010 at 10:22 PM, Jimmy S.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
[http://wiki.github.com/ironruby/ironruby/modifying-the-sources](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:  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of Ivan Porto C.  
Sent: Monday, January 25, 2010 9:34 AM  
To: ironruby-core  
Subject: [Ironruby-core] can’t generate the initializers

Hi  
 hi, what’s wrong with this code  
[http://gist.github.com/285354](http://gist.github.com/285354)  
 when I generate things look right but of course I have no  
idea what right means  
 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 C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

* * *

Ironruby-core mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
