[From nobody Thu Feb 4 17:59:01 2010 Received: from tk5-exhub-c104.redmond.corp.microsoft.com (157.54.88.97) by TK5EX14MLTC103.redmond.corp.microsoft.com (157.54.79.174) with Microsoft SMTP Server (TLS) id 14.0.639.21; Wed, 20 Jan 2010 15:55:30 -0800 Received: from SVC-EXGWY-E801.partners.extranet.microsoft.com (10.251.24.242) by TK5-EXHUB-C104.redmond.corp.microsoft.com (157.54.88.97) with Microsoft SMTP Server (TLS) id 8.2.176.0; Wed, 20 Jan 2010 13:54:23 -0800 Received: from mail130-tx2-R.bigfish.com (65.55.88.113) by mail04.microsoft.com (10.253.160.184) with Microsoft SMTP Server (TLS) id 8.2.176.0; Wed, 20 Jan 2010 13:54:37 -0800 Received: from mail130-tx2 (localhost.localdomain [127.0.0.1]) by mail130-tx2-R.bigfish.com (Postfix) with ESMTP id B9BBE698849 for <Shri.Borde@microsoft.com>; Wed, 20 Jan 2010 21:53:50 +0000 (UTC) X-SpamScore: -42 X-BigFish: ps-42(zz542N1432R9371Pzz1202hdafMz4fhzz2fhfReL378h6bh308i61h) X-Spam-TCS-SCL: 0:0 X-Sender-Lookup: N Received: from mail130-tx2 (localhost.localdomain [127.0.0.1]) by mail130-tx2 (MessageSwitch) id 1264024428427654_8658; Wed, 20 Jan 2010 21:53:48 +0000 (UTC) Received: from TX2EHSMHS041.bigfish.com (unknown [10.9.14.245]) by mail130-tx2.bigfish.com (Postfix) with ESMTP id 607AC1788112 for <Shri.Borde@microsoft.com>; Wed, 20 Jan 2010 21:53:48 +0000 (UTC) Received: from rubyforge.org (205.234.109.19) by TX2EHSMHS041.bigfish.com (10.9.99.141) with Microsoft SMTP Server id 14.0.482.32; Wed, 20 Jan 2010 21:53:45 +0000 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 63FE718582F7; Wed, 20 Jan 2010 16:53:45 -0500 (EST) X-Original-To: ironruby-core@rubyforge.org Delivered-To: ironruby-core@rubyforge.org Received: from smtp.microsoft.com (mail2.microsoft.com [131.107.115.215]) by rubyforge.org (Postfix) with ESMTP id 3AB8F1D7889F for <ironruby-core@rubyforge.org>; Wed, 20 Jan 2010 16:53:39 -0500 (EST) Received: from TK5EX14HUBC103.redmond.corp.microsoft.com (157.54.86.9) by TK5-EXGWY-E802.partners.extranet.microsoft.com (10.251.56.168) with Microsoft SMTP Server (TLS) id 8.2.176.0; Wed, 20 Jan 2010 13:54:24 -0800 Received: from TK5EX14MBXC140.redmond.corp.microsoft.com ([169.254.8.206]) by TK5EX14HUBC103.redmond.corp.microsoft.com ([157.54.86.9]) with mapi; Wed, 20 Jan 2010 13:50:28 -0800 From: Shri Borde <Shri.Borde@microsoft.com> To: "ironruby-core@rubyforge.org" <ironruby-core@rubyforge.org> Thread-Topic: [Ironruby-core] AutoSpec exits after executing Thread-Index: AQHKmKYezgqW7r99YE2AelGO+qaV3ZGeyYwAgAA55UA= Date: Wed, 20 Jan 2010 21:50:25 +0000 Message-ID: <8E45365BECA665489F3CB8878A6C1B7D0C894BC9@TK5EX14MBXC140.redmond.corp.microsoft.com> References: <a04554c01001181723p73cc51b8n7b66eb6f5520b30b@mail.gmail.com> <1B42307CD4AADD438CDDA2FE1121CC920B5626@TK5EX14MBXC141.redmond.corp.microsoft.com> In-Reply-To: <1B42307CD4AADD438CDDA2FE1121CC920B5626@TK5EX14MBXC141.redmond.corp.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Subject: Re: [Ironruby-core] AutoSpec exits after executing X-BeenThere: ironruby-core@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: <ironruby-core@rubyforge.org> List-Id: <ironruby-core.rubyforge.org> List-Unsubscribe: <http://rubyforge.org/mailman/options/ironruby-core>, <mailto:ironruby-core-request@rubyforge.org?subject=unsubscribe> List-Archive: <http://rubyforge.org/pipermail/ironruby-core> List-Post: <mailto:ironruby-core@rubyforge.org> List-Help: <mailto:ironruby-core-request@rubyforge.org?subject=help> List-Subscribe: <http://rubyforge.org/mailman/listinfo/ironruby-core>, <mailto:ironruby-core-request@rubyforge.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: <ironruby-core-bounces@rubyforge.org> Errors-To: ironruby-core-bounces@rubyforge.org X-Reverse-DNS: rubyforge.org Return-Path: ironruby-core-bounces@rubyforge.org X-MS-Exchange-Organization-Antispam-Report: IPOnAllowList X-MS-Exchange-Organization-AVStamp-Mailbox: MSFTFF;1;0;0 0 0 X-MS-Exchange-Organization-SCL: 0 X-MS-Exchange-Organization-AuthSource: SVC-EXGWY-E801.partners.extranet.microsoft.com X-MS-Exchange-Organization-AuthAs: Anonymous MIME-Version: 1.0 open with a "|" seems to be the same as popen/popen3. We support both of those, so it should not be too hard to support open with a "|". Could even be written in Ruby code building on top of popen/popen3 (if you want a workaround right away). -----Original Message----- From: ironruby-core-bounces@rubyforge.org [mailto:ironruby-core-bounces@rubyforge.org] On Behalf Of Jimmy Schementi Sent: Wednesday, January 20, 2010 2:22 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] AutoSpec exits after executing > Hello, > > I've been trying to get AutoSpec to work again. > > I execute it using the following command: > pretty:Kona Ben$ ir autospec > > However, it just exits. > > Any ideas why? > > Thanks > > Ben So after doing this: > igem install ZenTest > cd C:\ironruby\lib\ironruby\gems\1.8\gems\ZenTest-4.1.4 > ir -Ilib bin\autospec Autospec tries to execute this command: C:\ironruby\bin\ir.exe -I.;lib;test:../../minitest/dev/lib -rubygems -e "%w[minitest/autorun test/test_focus.rb test/test_autotest.rb test/test_zentest_mapping.rb test/test_unit_diff.rb test/test_zentest.rb].each { |f| require f }" | unit_diff -u The problem is unit_diff will fail to load, since there is no unit_diff.bat or something like that on the path. To get past that I just commented out the unit_diff part of lib/autospec.rb#422. However, it still quits, though the command that is generated does run on its own. It quits because IronRuby doesn't support the call to open it is using (open with a "|"), and they are swallowing the error msg. Here's a smaller repro: >>> open("| ir.exe -e \"puts 'hi'\"", 'r') :0:in `open': Exception of type 'IronRuby.Builtins.NotImplementedError' was thrown. (NotImplementedError) from :0:in `open' from (ir):1 Tomas, is there any work-around to this? ... reading a process like a file, character by character? To get autotest working right now, you can replace the entire open(){} call in lib/autotest.rb#243 with simply this: puts `#{cmd}` It won't print out the test results as they happen, but it'll at least show the results when done, and rerun the tests when you change something. ~Jimmy _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core ]