I was able to repro this issue on my laptop and will check in a fix soon. Albert-Jan was right, the problem was in SocketStream.cs though the solution is to remove most of the code there rather then add any. I have no idea what was it supposed to achieve but it seems the class is a bit overengineered.
Tomas ________________________________ From: [email protected] [[email protected]] on behalf of Mohamed Meligy [[email protected]] Sent: Monday, December 20, 2010 9:37 AM To: [email protected] Subject: Re: [Ironruby-core] Any coming IronRuby releases fixing igem this year? Tried to sync my local copy again, and building from source. There is updated code, but the same error 1. I tried building every solution in the "\Solutions" folder. 2. Copied "\Languages\Ruby\Scripts\bin" *.bat files to "\bin\debug". 3. Started a console window in "\bin\debug". 4. Entered "igem install rails". Error: ERROR: While executing gem ... (TypeError) can't convert NilClass into String Mohamed Meligy Readify | Senior Developer M:+61 451 835006 | W: www.readify.net<http://www.readify.net/> [Description: Description: Description: Description: rss_16] [Description: Description: Description: Description: cid:[email protected]] <http://www.linkedin.com/in/meligy> [Description: Description: Description: Description: cid:[email protected]] <http://twitter.com/meligy> [http://gurustop.net/mail/signature/readify-50best.jpg]<http://www.greatplacetowork.com.au/best/best-companies-australia.php>[http://gurustop.net/mail/signature/readify-partner2010.png]<http://www.readify.net/AboutUs/NewsItem.aspx?id=10> On Mon, Dec 20, 2010 at 6:36 PM, Tomas Matousek <[email protected]<mailto:[email protected]>> wrote: That should still be ok, I think :). If the problem is here (Languages\Ruby\StdLib\ruby\1.9.1\net\protocol.rb): def rbuf_fill begin @rbuf << @io.read_nonblock(BUFSIZE) rescue IO::WaitReadable if IO.select([...@io], nil, nil, @read_timeout) retry else raise Timeout::Error end rescue IO::WaitWritable # OpenSSL::Buffering#read_nonblock may fail with IO::WaitWritable. # http://www.openssl.org/support/faq.html#PROG10 if IO.select(nil, [...@io], nil, @read_timeout) retry else raise Timeout::Error end end end Then such an exception should be caught as IO::WaitReadable. The problem would be if the method returned nil instead of throwing an exception. Tomas ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Shay Friedman [[email protected]<mailto:[email protected]>] Sent: Sunday, December 19, 2010 1:19 AM To: [email protected]<mailto:[email protected]> Subject: Re: [Ironruby-core] Any coming IronRuby releases fixing igem this year? You're right, there're more exceptions afterwards. The exception I suspect that causes the problems is on SocketStream, line 90: "A non-blocking socket operation could not be completed immediately". What do you think? Shay. On Sat, Dec 18, 2010 at 7:26 PM, Tomas Matousek <[email protected]<mailto:[email protected]>> wrote: Isn't "no such file to load -- rubygems/defaults/operating_system" exception caught somewhere? I think this exception is common. Tomas ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Shay Friedman [[email protected]<mailto:[email protected]>] Sent: Saturday, December 18, 2010 6:18 AM To: [email protected]<mailto:[email protected]> Subject: Re: [Ironruby-core] Any coming IronRuby releases fixing igem this year? My repo is synced with the recent changes and I still get the same error (which originates from a different one as I stated above)... Shay. On Sat, Dec 18, 2010 at 12:09 PM, Mohamed Meligy <[email protected]<mailto:[email protected]>> wrote: @Tomas, Thanks a lot. I'm checking that now. @Shay Can you please confirm your repo is in sync and see if the problem is still the same for you? I'll be checking too, but if I get issues, will not be sure it's code issue not me missing an instruction or so. Thanks a lot everyone. Regards, Mohamed Meligy Readify | Senior Developer M:+61 451 835006 | W: www.readify.net<http://www.readify.net/> [Description: Description: Description: Description: rss_16] [Description: Description: Description: Description: cid:[email protected]] <http://www.linkedin.com/in/meligy> [Description: Description: Description: Description: cid:[email protected]] <http://twitter.com/meligy> [X]<http://www.greatplacetowork.com.au/best/best-companies-australia.php>[X]<http://www.readify.net/AboutUs/NewsItem.aspx?id=10> On Sat, Dec 18, 2010 at 4:32 AM, Tomas Matousek <[email protected]<mailto:[email protected]>> wrote: The fix is already checked into the main. So if there is still any problem it's another bug. Build instructions are here: http://github.com/IronLanguages/main/wiki/Building let me know if anything there is not clear or doesn't work. Tomas ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Mohamed Meligy [[email protected]<mailto:[email protected]>] Sent: Friday, December 17, 2010 6:05 AM To: [email protected]<mailto:[email protected]> Subject: Re: [Ironruby-core] Any coming IronRuby releases fixing igem this year? @Tomas, if it works on your local machine, maybe it's worth checking it out and having a 1.1.2 release. If your local repository is in sync already, then maybe there is some other issues that needs to be fixed. If this is easy as repositories sync issue of existing working fix or so, would really appreciate a 1.1.2 update. I'm new to Ruby and Rails and would love to try the IronRuby Rails integration even better with Visual Studio. I'm kind of lost in the source too. Not sure which VS solutions I should build and where the output Ruby\bin kind-of-directory would then be, neither how to get the MSI file for VS tools. Will be great if there is some explanation to this (forgive me if it's some readme already in the source), or else, then another release will be much easier to deal with. Thanks a lot. Regards, Mohamed Meligy Readify | Senior Developer M:+61 451 835006 | W: www.readify.net<http://www.readify.net/> [Description: Description: Description: Description: rss_16] [Description: Description: Description: Description: cid:[email protected]] <http://www.linkedin.com/in/meligy> [Description: Description: Description: Description: cid:[email protected]] <http://twitter.com/meligy> [X]<http://www.greatplacetowork.com.au/best/best-companies-australia.php>[X]<http://www.readify.net/AboutUs/NewsItem.aspx?id=10> On Fri, Dec 17, 2010 at 8:46 PM, Albert-Jan Pieter Nijburg <[email protected]<mailto:[email protected]>> wrote: Hey, I looked into this also and read_nonblock will still return 0 bytes sometimes. I made a small hack in SocketStream.cs that forces the socket to return more than 0 bytes. if (bytesToRead > 0) { while(oldPos == _pos) { _pos += _socket.Receive(readBuffer, bytesToRead, SocketFlags.None); } } I know this is absolutely not the way to fix it but it does specify the source of the exception maybe a bit better. Regards, Albert-Jan Van: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] Namens Tomas Matousek Verzonden: vrijdag 17 december 2010 9:14 Aan: [email protected]<mailto:[email protected]> Onderwerp: Re: [Ironruby-core] Any coming IronRuby releases fixing igem this year? I believe I fixed this in main. So if you download the sources and build it should work. Let me know if it works for you. Maybe we should do a 1.1.2 release soon - it should be pretty easy - it might ease adoption of 1.1. Tomas ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Mohamed Meligy [[email protected]<mailto:[email protected]>] Sent: Thursday, December 16, 2010 4:29 PM To: [email protected]<mailto:[email protected]> Subject: [Ironruby-core] Any coming IronRuby releases fixing igem this year? Hello all, I noticed IronRuby 1.1.1 has problems in igem where it fails to installs gems due to some conversion issue from nil to string. IronRuby 1.0 is compatible with Ruby 1.8.x which can run Rails 2.x not Rails 3.0. I'm interested in learning Rails 3.0 on IronRuby and see how I can integrate .NET stuff with that. So, is there any coming patch release or even git code push that solves the igem issues? Will be great if I get something to play with in Christmas holidays, but this might be very unrealistic anyway. Thanks a lot. Regards, Mohamed Meligy Readify | Senior Developer M:+61 451 835006 | W: www.readify.net<http://www.readify.net/> [Beschrijving: Description: Description: Description: Description: rss_16] [Beschrijving: Description: Description: Description: Description: cid:[email protected]] <http://www.linkedin.com/in/meligy> [Beschrijving: Description: Description: Description: Description: cid:[email protected]] <http://twitter.com/meligy> [Beschrijving: http://gurustop.net/mail/signature/readify-50best.jpg]<http://www.greatplacetowork.com.au/best/best-companies-australia.php>[Beschrijving: http://gurustop.net/mail/signature/readify-partner2010.png]<http://www.readify.net/AboutUs/NewsItem.aspx?id=10> _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list [email protected]<mailto:[email protected]> http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
