Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Jim Deville
So something that does what mspec does, without the new process? I wonder if we could just make mspec not spawn a new process if the running Ruby is the same as the target ruby. We would still need to pass -T and -t, thus specifying the args 2x, but I think that it is better than maintaining a s

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Pete Bacon Darwin
Oops yeah I forgot that ruby_exe is probably used in some of the rubyspecs. How about we knock up a small ruby file that sets everything up and passes through to mspec-run that we can just run directly without any command line arguments from VS debugger? From: ironruby-core-boun...@rubyforge.or

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Jim Deville
Yeah, that is correct. -t and -T, and set :target are used by MSpec, not mspec-run (and it's sibling scripts). As for not using ruby_exe, it is used in various specs, and all of the command line specs I am writing. It's not directly required by mspec-run, it gets required during the loading of

Re: [Ironruby-core] http://ironruby.info/ shows Internal Server Error

2009-02-23 Thread Jimmy Schementi
My fault ... the nightly script generated some really bogus results that the site freaked out about. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Thibaut Barrère Sent: Monday, February 23, 2009 12:32 PM To: ironruby-core Subject: [Ironruby-c

Re: [Ironruby-core] Code Review: re

2009-02-23 Thread Shri Borde
Array.Sort(methods, ...) does not work because methods is an IEnumerable, not IList, and so I have to create an auxiliary list. I did use the inline lambda for the comparision delegate. Changed TransformConcatenation too. Thanks, Shri -Original Message- From: Tomas Matousek Sent: Monda

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Pete Bacon Darwin
Sadly I don't think that mspec-run looks at the standard command line options for specifying the target implementation. I tried specifying set :target, ... in my ~/.mspecrc file but it didn't help. To be honest, this is really a bug in mspec-run. It should not actually require ruby_exe.rb at

[Ironruby-core] http://ironruby.info/ shows Internal Server Error

2009-02-23 Thread Thibaut Barrère
in case the owner is not yet aware of that hth, -- Thibaut ___ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Jim Deville
Well, mspec takes all the arguments on the command line. I wouldn't want to specify all of the options 2x. Once as the runner, and once as arguments. JD From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shri Borde Sent: Monday, February 23, 2009

Re: [Ironruby-core] Code Review: re

2009-02-23 Thread Tomas Matousek
ReflectionCacheGenerator: More concise way how to sort an array: var methods = ReflectMethods(typeof(RubyOps)).Values; Array.Sort(methods, (m1, m2) => m1.Name.CompareTo(m2.Name)); ScringConstructor: I would prefer TransformConcatenation to take 2 parameters (Expr regexOptions, Expr regexCache)

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Jim Deville
I made some corrections and added a point: * Mspec doesn't spawn each spec under a new process, just the mspec-run command. This doesn't prevent corruption of specs, which is why there is the conflicts_with guard. It's also why you should run core before library specs if you are doing a

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Shri Borde
That is a comprehensive description! Its unfortunate it has to be as complex. Ideally, mspec-run will take all arguments (like the ruby executable) on the command line which will increase discoverability. But for now, the workarounds will do. From: ironruby-core-boun...@rubyforge.org [mailto:i

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Pete Bacon Darwin
I have updated the wiki. Let me know if this doesn't make sense or doesn't work for someone... http://wiki.github.com/ironruby/ironruby Pete From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shri Borde Sent: Monday,23 February 23, 2009 08:

[Ironruby-core] Touble with -i command line option for ir.exe

2009-02-23 Thread Robert Brotherus
I'm using IR "NightlyBuilds\10606" I have trouble using the -i option for command-line. Has this worked at some point? c:\DATA\irb_test>ir -help Usage: ir.exe [options] [file|- [arguments]] ... Options: -i Inspect interactively after running ... c:\DATA\irb_t

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Shri Borde
The convenience of being able to hit F5 in an existing VS session and getting to the breakpoint you have previously set will be worth the pain of setting it up for some folks. With mspec and Jimmy's wrapper (which is also documented on the wiki), you have to edit the Ruby files you are debugging

Re: [Ironruby-core] Debugging rubyspecs

2009-02-23 Thread Jim Deville
In my opinion, the most future proof way is going to be using the standard runner (mspec) and a sleep, or using Jimmy's debugger wrapper. JD From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shri Borde Sent: Sunday, February 22, 2009 11:09 PM To