I am following the Stock Portfolio post from RubyQuiz.com and it involves using YAML for its storage. Under ruby 1.8.7, the data is being saved and loaded with no problem. Under ironruby rc4, when it gets saved and then retrieved it changes the data to its object type. For example on the first same it saves the data correctly. name: !str:CSV::Cell Google Inc. After a reload of the data it changes the previous line to. name: !ruby/object:IronRuby::StandardLibrary::Yaml::PrivateType {} This then throws off what data it is trying to use and display. Is there something i need to do so that ironruby doesn''t change the data into its type? This does work correctly under a ruby implementation, no special gems or anything, just plain ole ruby. I can load and save the data all day and it works just fine. I prefer ironruby however and would love to get this working under it. Link: http://www.rubyquiz.com/quiz41.html Thanks, -Nick
Tomas Matousek
2010-Mar-30 16:07 UTC
[Ironruby-core] Saving to YAML not working as expected.
This looks like a bug. Could you sent us a simple self-contained repro? It would help us to identity the issue faster. Thanks, Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird Sent: Tuesday, March 30, 2010 4:07 AM To: Ironruby-core at rubyforge.org Subject: [Ironruby-core] Saving to YAML not working as expected. I am following the Stock Portfolio post from RubyQuiz.com and it involves using YAML for its storage. Under ruby 1.8.7, the data is being saved and loaded with no problem. Under ironruby rc4, when it gets saved and then retrieved it changes the data to its object type. For example on the first same it saves the data correctly. name: !str:CSV::Cell Google Inc. After a reload of the data it changes the previous line to. name: !ruby/object:IronRuby::StandardLibrary::Yaml::PrivateType {} This then throws off what data it is trying to use and display. Is there something i need to do so that ironruby doesn''t change the data into its type? This does work correctly under a ruby implementation, no special gems or anything, just plain ole ruby. I can load and save the data all day and it works just fine. I prefer ironruby however and would love to get this working under it. Link: http://www.rubyquiz.com/quiz41.html Thanks, -Nick _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core
My ruby isn''t the best so i included the source i am working with. 1) start the script (no args) 2) type "buy 10 msft" 3) type "history" (view output) 4) type "exit" 5) view yaml file (should look good here) 6) start the script again (no args) 7) type "history" (different than before) 8) you''ll see the first part of the object type 9) type "exit" 10) view the yaml file Hope this helps. -Nick On Tue, Mar 30, 2010 at 12:07 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> This looks like a bug. Could you sent us a simple self-contained repro? It would help us to identity the issue faster. > > Thanks, > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird > Sent: Tuesday, March 30, 2010 4:07 AM > To: Ironruby-core at rubyforge.org > Subject: [Ironruby-core] Saving to YAML not working as expected. > > I am following the Stock Portfolio post from RubyQuiz.com and it involves using YAML for its storage. Under ruby 1.8.7, the data is being saved and loaded with no problem. Under ironruby rc4, when it gets saved ?and then retrieved it changes the data to its object type. > For example on the first same it saves the data correctly. > > name: !str:CSV::Cell Google Inc. > > After a reload of the data it changes the previous line to. > > name: !ruby/object:IronRuby::StandardLibrary::Yaml::PrivateType {} > > This then throws off what data it is trying to use and display. Is there something i need to do so that ironruby doesn''t change the data into its type? ?This does work correctly under a ruby implementation, no special gems or anything, just plain ole ruby. I can load and save the data all day and it works just fine. I prefer ironruby however and would love to get this working under it. > > Link: http://www.rubyquiz.com/quiz41.html > > Thanks, > -Nick > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- --Nick -------------- next part -------------- A non-text attachment was scrubbed... Name: stock-portfolio.rb Type: application/octet-stream Size: 6419 bytes Desc: not available URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100330/61649cc4/attachment.obj>
Tomas Matousek
2010-Mar-30 20:03 UTC
[Ironruby-core] Saving to YAML not working as expected.
Thanks! I''ve filed a bug http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird Sent: Tuesday, March 30, 2010 11:09 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. My ruby isn''t the best so i included the source i am working with. 1) start the script (no args) 2) type "buy 10 msft" 3) type "history" (view output) 4) type "exit" 5) view yaml file (should look good here) 6) start the script again (no args) 7) type "history" (different than before) 8) you''ll see the first part of the object type 9) type "exit" 10) view the yaml file Hope this helps. -Nick On Tue, Mar 30, 2010 at 12:07 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> This looks like a bug. Could you sent us a simple self-contained repro? It would help us to identity the issue faster. > > Thanks, > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Nick Hird > Sent: Tuesday, March 30, 2010 4:07 AM > To: Ironruby-core at rubyforge.org > Subject: [Ironruby-core] Saving to YAML not working as expected. > > I am following the Stock Portfolio post from RubyQuiz.com and it involves using YAML for its storage. Under ruby 1.8.7, the data is being saved and loaded with no problem. Under ironruby rc4, when it gets saved ?and then retrieved it changes the data to its object type. > For example on the first same it saves the data correctly. > > name: !str:CSV::Cell Google Inc. > > After a reload of the data it changes the previous line to. > > name: !ruby/object:IronRuby::StandardLibrary::Yaml::PrivateType {} > > This then throws off what data it is trying to use and display. Is there something i need to do so that ironruby doesn''t change the data into its type? ?This does work correctly under a ruby implementation, no special gems or anything, just plain ole ruby. I can load and save the data all day and it works just fine. I prefer ironruby however and would love to get this working under it. > > Link: http://www.rubyquiz.com/quiz41.html > > Thanks, > -Nick > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- --Nick
Charles Strahan
2010-Mar-31 02:36 UTC
[Ironruby-core] Saving to YAML not working as expected.
Tomas Matousek wrote:> Thanks! I''ve filed a bug > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. > > TomasHello Tomas! I''m having the exact same problem as Nick. Unfortunately, this error is a show stopper for me. I''m writing an application that needs to read a ton of YAML, and I can''t do any testing until this bug is fixed. I''d love to stub out part of the code to continue testing, but that''s not a possibility in my particular case (my app needs to load ~100 Ruby scripts that I do not have any control over). Is there any chance that the priority on this could be bumped up (please :p)? I''d do my testing off the trunk if this gets patched before RC5. (BTW, I left a comment on the CodePlex site.) Thanks, -Charles -- Posted via http://www.ruby-forum.com/.
Not sure if this is related, but I just tried building on Mono 2.6.3 on the Mac and am getting a build error here: ------------------------------------------------------------------------------- yaml ------------------------------------------------------------------------------- BuiltinsOps.cs(135,17): warning CS0168: The variable `encoding'' is declared but never used Engine/BaseConstructor.cs(661,41): error CS1501: No overload for method `ToUpperInvariant'' takes `0'' arguments Compilation failed: 1 error(s), 1 warnings rake aborted! Command failed with status (1): [gmcs /noconfig @/var/folders/LV/LVQdctQPGL...] Could there be something related? Ryan Riley Email: ryan.riley at panesofglass.org LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Mar 30, 2010 at 7:36 PM, Charles Strahan <lists at ruby-forum.com>wrote:> Tomas Matousek wrote: > > Thanks! I''ve filed a bug > > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. > > > > Tomas > > Hello Tomas! I''m having the exact same problem as Nick. Unfortunately, > this error is a show stopper for me. I''m writing an application that > needs to read a ton of YAML, and I can''t do any testing until this bug > is fixed. I''d love to stub out part of the code to continue testing, but > that''s not a possibility in my particular case (my app needs to load > ~100 Ruby scripts that I do not have any control over). > > Is there any chance that the priority on this could be bumped up (please > :p)? I''d do my testing off the trunk if this gets patched before RC5. > > > (BTW, I left a comment on the CodePlex site.) > > Thanks, > -Charles > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100330/968adf0b/attachment.html>
Tomas Matousek
2010-Mar-31 05:59 UTC
[Ironruby-core] Saving to YAML not working as expected.
Nope, this looks more like a bug in Mono (or the rake build). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, March 30, 2010 9:07 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Not sure if this is related, but I just tried building on Mono 2.6.3 on the Mac and am getting a build error here: ------------------------------------------------------------------------------- yaml ------------------------------------------------------------------------------- BuiltinsOps.cs(135,17): warning CS0168: The variable `encoding'' is declared but never used Engine/BaseConstructor.cs(661,41): error CS1501: No overload for method `ToUpperInvariant'' takes `0'' arguments Compilation failed: 1 error(s), 1 warnings rake aborted! Command failed with status (1): [gmcs /noconfig @/var/folders/LV/LVQdctQPGL...] Could there be something related? Ryan Riley Email: ryan.riley at panesofglass.org<mailto:ryan.riley at panesofglass.org> LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Mar 30, 2010 at 7:36 PM, Charles Strahan <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote: Tomas Matousek wrote:> Thanks! I''ve filed a bug > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. > > TomasHello Tomas! I''m having the exact same problem as Nick. Unfortunately, this error is a show stopper for me. I''m writing an application that needs to read a ton of YAML, and I can''t do any testing until this bug is fixed. I''d love to stub out part of the code to continue testing, but that''s not a possibility in my particular case (my app needs to load ~100 Ruby scripts that I do not have any control over). Is there any chance that the priority on this could be bumped up (please :p)? I''d do my testing off the trunk if this gets patched before RC5. (BTW, I left a comment on the CodePlex site.) Thanks, -Charles -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100331/f63f04f4/attachment.html>
Does Xbuild work then (in place of rake)? Or do we still have issues with casing and such? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, March 30, 2010 11:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Nope, this looks more like a bug in Mono (or the rake build). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, March 30, 2010 9:07 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Not sure if this is related, but I just tried building on Mono 2.6.3 on the Mac and am getting a build error here: ------------------------------------------------------------------------------- yaml ------------------------------------------------------------------------------- BuiltinsOps.cs(135,17): warning CS0168: The variable `encoding'' is declared but never used Engine/BaseConstructor.cs(661,41): error CS1501: No overload for method `ToUpperInvariant'' takes `0'' arguments Compilation failed: 1 error(s), 1 warnings rake aborted! Command failed with status (1): [gmcs /noconfig @/var/folders/LV/LVQdctQPGL...] Could there be something related? Ryan Riley Email: ryan.riley at panesofglass.org<mailto:ryan.riley at panesofglass.org> LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Mar 30, 2010 at 7:36 PM, Charles Strahan <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote: Tomas Matousek wrote:> Thanks! I''ve filed a bug > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. > > TomasHello Tomas! I''m having the exact same problem as Nick. Unfortunately, this error is a show stopper for me. I''m writing an application that needs to read a ton of YAML, and I can''t do any testing until this bug is fixed. I''d love to stub out part of the code to continue testing, but that''s not a possibility in my particular case (my app needs to load ~100 Ruby scripts that I do not have any control over). Is there any chance that the priority on this could be bumped up (please :p)? I''d do my testing off the trunk if this gets patched before RC5. (BTW, I left a comment on the CodePlex site.) Thanks, -Charles -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100331/0b7b7031/attachment-0001.html>
Tomas Matousek
2010-Mar-31 17:31 UTC
[Ironruby-core] Saving to YAML not working as expected.
Unfortunately Mono C# compiler in 2.6.3 is broken again. I haven?t had time to investigate yet, but I?ll look at that in a week or two. In any case xbuild is the way how to build IronRuby and IronPython on Mono. We are not going to maintain rake files that duplicate msbuild project system. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Jim Deville Sent: Wednesday, March 31, 2010 10:04 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Does Xbuild work then (in place of rake)? Or do we still have issues with casing and such? JD From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tomas Matousek Sent: Tuesday, March 30, 2010 11:00 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Nope, this looks more like a bug in Mono (or the rake build). Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ryan Riley Sent: Tuesday, March 30, 2010 9:07 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Saving to YAML not working as expected. Not sure if this is related, but I just tried building on Mono 2.6.3 on the Mac and am getting a build error here: ------------------------------------------------------------------------------- yaml ------------------------------------------------------------------------------- BuiltinsOps.cs(135,17): warning CS0168: The variable `encoding'' is declared but never used Engine/BaseConstructor.cs(661,41): error CS1501: No overload for method `ToUpperInvariant'' takes `0'' arguments Compilation failed: 1 error(s), 1 warnings rake aborted! Command failed with status (1): [gmcs /noconfig @/var/folders/LV/LVQdctQPGL...] Could there be something related? Ryan Riley Email: ryan.riley at panesofglass.org<mailto:ryan.riley at panesofglass.org> LinkedIn: http://www.linkedin.com/in/ryanriley Blog: http://wizardsofsmart.net/ Twitter: @panesofglass Website: http://panesofglass.org/ On Tue, Mar 30, 2010 at 7:36 PM, Charles Strahan <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote: Tomas Matousek wrote:> Thanks! I''ve filed a bug > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4284. > > TomasHello Tomas! I''m having the exact same problem as Nick. Unfortunately, this error is a show stopper for me. I''m writing an application that needs to read a ton of YAML, and I can''t do any testing until this bug is fixed. I''d love to stub out part of the code to continue testing, but that''s not a possibility in my particular case (my app needs to load ~100 Ruby scripts that I do not have any control over). Is there any chance that the priority on this could be bumped up (please :p)? I''d do my testing off the trunk if this gets patched before RC5. (BTW, I left a comment on the CodePlex site.) Thanks, -Charles -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100331/5c123193/attachment.html>