# Mspec errors. Where should I start contributing?

**URL:** <https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639>\
**Category:** IronRuby\
**Created:** [March 23, 2009, 2:08pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639 "2009-03-23T14:08:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Kahtava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Post date:** [March 23, 2009, 2:08pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639/1 "2009-03-23T14:08:22Z")

</div>

When running mspec (mspec -ci core\array\append) I get the following  
error:  
\Libraries.LCA\_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath’:  
Invalid  
argument - ~/.mspecrc (Errno::EINVAL)

Should I be getting this error? How can I resolve this?

I’d like to contribute. Where should I start? Should I be pulling items  
from  
the bug list:  
[http://rubyforge.org/tracker/?func=browse&group\_id=4359&atid=16798](http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798)

Thanks in advance,

- Adam

---

<div class="post-metadata">

**Author:** ![Adam\_Kahtava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Post date:** [March 23, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639/2 "2009-03-23T18:15:43Z")

</div>

There should be no hyphen before “ci”. However, using your command  
(mspec -ci core\array\append) gives me a different error message saying  
“Unrecognized option: -ci”. So that may or may not be the same issue you  
are seeing. Can you try running this : Unrecognized option: mspec ci  
core\array\append? Also, the following which will run with MRI and give  
you a baseline assuming you have ruby.exe on the path: mspec ci -tr  
core\array\append.

We are going to try to have better recommendations for contributions in  
the next week or so.  
[http://wiki.github.com/ironruby/ironruby/contributing](http://wiki.github.com/ironruby/ironruby/contributing) should have this  
info, but it currently does not. For now, do you want to take a shot at  
fixing the tags in  
[http://github.com/ironruby/ironruby/blob/cd988456fb3d102da84056e8e150d5376284cc8e/Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/string/to\_i\_tags.txt](http://github.com/ironruby/ironruby/blob/cd988456fb3d102da84056e8e150d5376284cc8e/Merlin/External/Languages/IronRuby/mspec/ironruby-tags/core/string/to_i_tags.txt)?  
Would be great to get your first commit in, even if it’s a tiny bug fix,  
so we know that the contributing process does not have glitches. And in  
parallel, we can determine the best areas for you to contribute in.

Btw, if you missed my previous email,  
[http://wiki.github.com/ironruby/ironruby](http://wiki.github.com/ironruby/ironruby) should have all the information  
to build and run tests with IronRuby. Let us know if there is anything  
missing there.

Thanks,  
Shri

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Adam Kahtava  
Sent: Monday, March 23, 2009 5:15 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Mspec errors. Where should I start  
contributing?

When running mspec (mspec -ci core\array\append) I get the following  
error:  
\Libraries.LCA\_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath’:  
Invalid argument - ~/.mspecrc (Errno::EINVAL)

Should I be getting this error? How can I resolve this?

I’d like to contribute. Where should I start? Should I be pulling items  
from the bug list:  
[http://rubyforge.org/tracker/?func=browse&group\_id=4359&atid=16798](http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798)

Thanks in advance,

- Adam

---

<div class="post-metadata">

**Author:** ![Adam\_Kahtava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Post date:** [March 23, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639/3 "2009-03-23T19:13:56Z")

</div>

Correction this 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.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jim D.  
Sent: Monday, March 23, 2009 10:18 AM  
To: removed\_email\_address@domain.invalid; Tomas M.  
Subject: Re: [Ironruby-core] Mspec errors. Where should I start  
contributing?

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. 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.

So to contribute:

1. 

```
 We need you to follow the steps at 

```

[http://wiki.github.com/ironruby/ironruby/contributing](http://wiki.github.com/ironruby/ironruby/contributing), especially the  
portion about signing the agreement

1. 

```
 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.

1. 

```
 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 :))

a. Or, like Shri suggested in the other thread, choose a tag file  
and fix all the tags

Let us know if you have any questions!

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Adam Kahtava  
Sent: Monday, March 23, 2009 5:15 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Mspec errors. Where should I start  
contributing?

When running mspec (mspec -ci core\array\append) I get the following  
error:  
\Libraries.LCA\_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath’:  
Invalid argument - ~/.mspecrc (Errno::EINVAL)

Should I be getting this error? How can I resolve this?

I’d like to contribute. Where should I start? Should I be pulling items  
from the bug list:  
[http://rubyforge.org/tracker/?func=browse&group\_id=4359&atid=16798](http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798)

Thanks in advance,

- Adam

---

<div class="post-metadata">

**Author:** ![Adam\_Kahtava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Post date:** [March 25, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639/4 "2009-03-25T12:22:41Z")

</div>

I will fix File.expand\_path to throw ArgumentException. I will also fix  
dev.bat to set HOME if it is not already set.

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…

From: Jim D.  
Sent: Tuesday, March 24, 2009 9:14 AM  
To: Adam Kahtava; Shri B.  
Subject: RE: [Ironruby-core] Mspec errors. Where should I start  
contributing?

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.

JD

---

<div class="post-metadata">

**Author:** ![Adam\_Kahtava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Adam\_Kahtava](https://www.ruby-forum.com/u/Adam_Kahtava)\
**Post date:** [March 23, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/mspec-errors-where-should-i-start-contributing/163639/5 "2009-03-23T18:33:20Z")

</div>

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. 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.

So to contribute:

1. 

```
 We need you to follow the steps at 

```

[http://wiki.github.com/ironruby/ironruby/contributing](http://wiki.github.com/ironruby/ironruby/contributing), especially the  
portion about signing the agreement

1. 

```
 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.

1. 

```
 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 :))

a. Or, like Shri suggested in the other thread, choose a tag file  
and fix all the tags

Let us know if you have any questions!

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Adam Kahtava  
Sent: Monday, March 23, 2009 5:15 AM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] Mspec errors. Where should I start  
contributing?

When running mspec (mspec -ci core\array\append) I get the following  
error:  
\Libraries.LCA\_RESTRICTED\Builtis\FileOps.cs:524:in `ExpandPath’:  
Invalid argument - ~/.mspecrc (Errno::EINVAL)

Should I be getting this error? How can I resolve this?

I’d like to contribute. Where should I start? Should I be pulling items  
from the bug list:  
[http://rubyforge.org/tracker/?func=browse&group\_id=4359&atid=16798](http://rubyforge.org/tracker/?func=browse&group_id=4359&atid=16798)

Thanks in advance,

- Adam
