# On Console options

**URL:** <https://www.ruby-forum.com/t/on-console-options/131891>\
**Category:** IronRuby\
**Created:** [March 14, 2008, 5:15am UTC](https://www.ruby-forum.com/t/on-console-options/131891 "2008-03-14T05:15:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 14, 2008, 5:15am UTC](https://www.ruby-forum.com/t/on-console-options/131891/1 "2008-03-14T05:15:19Z")

</div>

Hi,

I’m sure this is another case of PEBKAC but I’ve been looking in the  
code  
and I think that’s how it’s supposed to work.  
When I want to use -X:ILDebug or -X:SaveAssemblies I assume the rbx  
command  
also expects the -X:AssembliesDir argument, is that correct?

Which brings me to my next point:  
When I want to execute  
Â» rbx -X:AssembliesDir C:\projects\temp\ir\_test test.rb  
mscorlib:0:in `CanonicalizePath': The given path's format is not supported. (System::NotSupportedException) from mscorlib:0:in`CreateListFromExpressions’  
from mscorlib:0:in `AddPathList' from mscorlib:0:in`.ctor’  
from mscorlib:0:in `Init' from mscorlib:0:in`.ctor’+ C:\projects\temp\ir\_test

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 14, 2008, 5:17am UTC](https://www.ruby-forum.com/t/on-console-options/131891/2 "2008-03-14T05:17:05Z")

</div>

Ooops… I hit tab-enter… sorry for that.

---------- Forwarded message ----------  
From: Ivan Porto C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Fri, Mar 14, 2008 at 10:50 AM  
Subject: On Console options  
To: removed\_email\_address@domain.invalid

Hi,

I’m sure this is another case of PEBKAC but I’ve been looking in the  
code  
and I think that’s how it’s supposed to work.  
When I want to use -X:ILDebug or -X:SaveAssemblies I assume the rbx  
command  
also expects the -X:AssembliesDir argument, is that correct?

Which brings me to my next point:  
When I want to execute  
Â» rbx -X:AssembliesDir C:\projects\temp\ir\_test test.rb  
mscorlib:0:in `CanonicalizePath': The given path's format is not supported. (System::NotSupportedException) from mscorlib:0:in `CreateListFromExpressions’  
from mscorlib:0:in `AddPathList' from mscorlib:0:in `.ctor’  
from mscorlib:0:in `Init' from mscorlib:0:in `.ctor’

Is that not how I’m supposed to execute the test.rb file when I want to  
use  
the save assemblies or ILDebug?

Thanks  
Ivan

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 14, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/on-console-options/131891/3 "2008-03-14T13:07:31Z")

</div>

Don’t do it from PowerShell 🙂 You also have to pass in  
-X:SaveAssemblies…

On Thu, Mar 13, 2008 at 5:58 PM, Ivan Porto C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> mscorlib:0:in `CanonicalizePath': The given path's format is not
> 
> ```
> 
> Thanks  
> Ivan
> 
> * * *
> 
> Ironruby-core mailing list  
> removed\_email\_address@domain.invalid  
> [http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Michael L.  
[Polymath Prokrammer]  
[http://blog.prokrams.com](http://blog.prokrams.com)

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 14, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/on-console-options/131891/4 "2008-03-14T14:01:35Z")

</div>

Ah, I had only tried wrapping the path in quotes, not the option  
itself…

That’s weird, do you know why off hand?

On Fri, Mar 14, 2008 at 8:50 AM, Tomas R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Tomas R.  
> [devdeo](http://www.winterdom.com/weblog/)
> 
> * * *
> 
> Ironruby-core mailing list  
> removed\_email\_address@domain.invalid  
> [http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

–  
Michael L.  
[Polymath Prokrammer]  
[http://blog.prokrams.com](http://blog.prokrams.com)

---

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [March 14, 2008, 1:57pm UTC](https://www.ruby-forum.com/t/on-console-options/131891/5 "2008-03-14T13:57:55Z")

</div>

> Don’t do it from PowerShell 🙂 You also have to pass in -X:SaveAssemblies…

🙂

You can actually still use rbx from powershell, simply wrap the -X  
switches in quotes:

.\rbx ‘-X:AssembliesDir’ ‘C:’ test.rb
