<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I will fix File.expand_path to throw ArgumentException. I will
also fix dev.bat to set HOME if it is not already set.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I still don’t know why “mspec ci” runs to completion (without
running any examples) for me even if HOME is not set, and throws for Adam. Oh
well. Its not really important as HOME really needs to be set so that mspec
actually runs the examples. I think we have drilled in enough…<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jim Deville <br>
<b>Sent:</b> Tuesday, March 24, 2009 9:14 AM<br>
<b>To:</b> Adam Kahtava; Shri Borde<br>
<b>Subject:</b> RE: [Ironruby-core] Mspec errors. Where should I start
contributing?<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<pre><span style='font-family:"Tahoma","sans-serif";color:black'>The Errno::EINVAL is part of the problem. MRI throws a ArgumentError with a specific error message about HOME. I have that being rescued in the mspec startup. We need to fix this case to throw a ArgumentError with the correct error message.<o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'><o:p> </o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>JD<o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'><o:p> </o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>-----Original Message-----<o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>From: Adam Kahtava <adam@kahtava.com><o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>Sent: March 24, 2009 6:09 AM<o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>To: Shri Borde <Shri.Borde@microsoft.com><o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>Cc: Jim Deville <jdeville@microsoft.com><o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'>Subject: Re: [Ironruby-core] Mspec errors. Where should I start contributing?<o:p></o:p></span></pre><pre><span
style='font-family:"Tahoma","sans-serif";color:black'><o:p> </o:p></span></pre>
<div>
<div>
<p class=MsoNormal>Shri, <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>After setting %HOME% to %USERPROFILE% manually, mspec
worked. Previously the stack trace was:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<div>
<p class=MsoNormal>C:\Projects\ironruby\Merlin\Main\Languages\Ruby>mspec ci
core\array\append<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>IronRuby 0.3 0.3.0.0 on .NET 2.0.0.0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>c:\Projects\ironruby\Merlin\Main\Languages\Ruby\Libraries.LCA_RESTRICTED\Builtin<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>s\FileOps.cs:524:in `ExpandPath': Invalid argument -
~/.mspecrc (Errno::EINVAL)<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from :0:in `expand_path'<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from script.rb:71:in `load'<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from :0:in `each'<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from script.rb:65:in `load'<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from script.rb:189:in
`main'<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> from mspec-ci:0<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
<div>
<p class=MsoNormal>Thanks again,<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
- Adam<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Mon, Mar 23, 2009 at 11:24 PM, Shri Borde <<a
href="mailto:Shri.Borde@microsoft.com">Shri.Borde@microsoft.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>Can you send the full
stack-trace so we can see why mspec is not dealing with HOME not being set?
Hopefully, the stack trace is being printed to the console.</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Also, can you manually set HOME
to something like c:\Users\username? If that fixes the problem, we can update
dev.bat to set HOME.</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Adam Kahtava [mailto:<a href="mailto:adam@kahtava.com" target="_blank">adam@kahtava.com</a>]
<br>
<b>Sent:</b> Monday, March 23, 2009 8:30 PM<br>
<b>To:</b> Shri Borde<br>
<b>Cc:</b> Jim Deville<o:p></o:p></span></p>
<div>
<div>
<p class=MsoNormal><span style='font-size:10.0pt'><br>
<b>Subject:</b> Re: [Ironruby-core] Mspec errors. Where should I start
contributing?<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p> <o:p></o:p></p>
<p>A couple other notes: I don't have a sdkvar.bat on this machine. I also have
PowerShell installed.<o:p></o:p></p>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p style='margin-bottom:12.0pt'>Thanks again,<br clear=all>
<br>
- Adam<o:p></o:p></p>
<div>
<p>On Mon, Mar 23, 2009 at 9:16 PM, Adam Kahtava <<a
href="mailto:adam@kahtava.com" target="_blank">adam@kahtava.com</a>> wrote:<o:p></o:p></p>
<p>Hi Jim, <o:p></o:p></p>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>I'm running on Windows Server 2008 64bit, I'm using the dev.bat, but had to
modify the paths for csc and resgen. I don't have Visual Studio installed. I
got the latest (Sunday) from git.<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>You're right it doesn't look like my %HOME% is set. What now?<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>Thanks,<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p><span style='color:#888888'>- Adam</span><o:p></o:p></p>
<div>
<div>
<p style='margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p>On Mon, Mar 23, 2009 at 2:17 PM, Shri Borde <<a
href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>>
wrote:<o:p></o:p></p>
<div>
<div>
<p><span style='font-size:11.0pt;color:#1F497D'>Narrowing the distribution for
now. We can report back to the list later…</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Adam, what exact version of the
sources are you using? What platform are you running on? Are you using dev.bat?</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>If I unset %HOME%, both “</span>mspec
ci –tr core\array\append<span style='font-size:11.0pt;color:#1F497D'>”
and “</span>mspec ci core\array\append<span style='font-size:11.0pt;
color:#1F497D'>” run to completion, but the result says that no examples were
actually run. This must be because mspec cannot find the default.mspec that
dev.bat copies to %HOME%. File.expand_path(“~”) is supposed to raise an
exception if HOME is not set, but I do not get the exception. Mspec must be
doing some filtering. Can you send a full stack trace so we can try to figure
out why its failing for you.</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>]
<b>On Behalf Of </b>Jim Deville<br>
<b>Sent:</b> Monday, March 23, 2009 11:04 AM<br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a>;
Tomas Matousek<br>
<b>Subject:</b> Re: [Ironruby-core] Mspec errors. Where should I start
contributing?</span><o:p></o:p></p>
</div>
</div>
<p> <o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Correction <span
style='background:yellow'>this</span> was wrong. IRB isn’t using Powershell’s
env variables, so when I unset all of those variables, Ruby still had them set.
My bad.</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>JD</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>]
<b>On Behalf Of </b>Jim Deville<br>
<b>Sent:</b> Monday, March 23, 2009 10:18 AM<br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a>;
Tomas Matousek<br>
<b>Subject:</b> Re: [Ironruby-core] Mspec errors. Where should I start
contributing?</span><o:p></o:p></p>
</div>
</div>
<p> <o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>So it looks like there are 2
issues here. One is the immediate issue: You don’t have %HOME% set, which is
why this error occurs. <span style='background:yellow'>Underneath that there is
a real issue: IronRuby isn’t searching for a %HOME% replacement in the same way
that Ruby does. Ruby can find ~ even if HOME, HOMEDRIVE, HOMEPATH, and
USERPROFILE are all unset. I’m not sure what algorithm they use at that point.</span>
</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>So to contribute: </span><o:p></o:p></p>
<p style='text-indent:-.25in'><span style='font-size:11.0pt;color:#1F497D'>1)</span><span
style='font-size:7.0pt;color:#1F497D'> </span><span
style='font-size:11.0pt;color:#1F497D'>We need you to follow the steps at <a
href="http://wiki.github.com/ironruby/ironruby/contributing" target="_blank">http://wiki.github.com/ironruby/ironruby/contributing</a>,
especially the portion about signing the agreement</span><o:p></o:p></p>
<p style='text-indent:-.25in'><span style='font-size:11.0pt;color:#1F497D'>2)</span><span
style='font-size:7.0pt;color:#1F497D'> </span><span
style='font-size:11.0pt;color:#1F497D'>If you want to fix this error (which is
going to be resolved in the path referenced below), go for it, then send
IronRuby a pull request on Github. I’ll pull your changes in.</span><o:p></o:p></p>
<p style='text-indent:-.25in'><span style='font-size:11.0pt;color:#1F497D'>3)</span><span
style='font-size:7.0pt;color:#1F497D'> </span><span
style='font-size:11.0pt;color:#1F497D'>If you want to work on something else,
feel free to grab a bug from RubyForge from the Triaged category after Tomas
adds some more (Tomas, can you add more bugs to that category </span><span
style='font-size:11.0pt;font-family:Wingdings;color:#1F497D'>J</span><span
style='font-size:11.0pt;color:#1F497D'>)</span><o:p></o:p></p>
<p style='margin-left:1.0in;text-indent:-.25in'><span style='font-size:11.0pt;
color:#1F497D'>a.</span><span style='font-size:7.0pt;color:#1F497D'>
</span><span style='font-size:11.0pt;color:#1F497D'>Or, like Shri suggested in
the other thread, choose a tag file and fix all the tags</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>Let us know if you have any
questions!</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'>JD</span><o:p></o:p></p>
<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>]
<b>On Behalf Of </b>Adam Kahtava<br>
<b>Sent:</b> Monday, March 23, 2009 5:15 AM<br>
<b>To:</b> <a href="mailto:ironruby-core@rubyforge.org" target="_blank">ironruby-core@rubyforge.org</a><br>
<b>Subject:</b> [Ironruby-core] Mspec errors. Where should I start
contributing?</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p> <o:p></o:p></p>
<p>When running mspec (mspec -ci core\array\append) I get the following error:<br
clear=all>
<o:p></o:p></p>
<div>
<div>
<p> <span style='background:yellow'>\Libraries.LCA_RESTRICTED\Builtis\FileOps.cs:524:</span>in
`ExpandPath': Invalid argument - ~/.mspecrc (Errno::EINVAL)<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>Should I be getting this error? How can I resolve this?<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>I'd like to contribute. Where should I start? Should I be pulling items from
the bug list: <a
href="http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798"
target="_blank">http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798</a><o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>Thanks in advance,<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>- Adam<o:p></o:p></p>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<p> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>