Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Aaron Feng
Tomas, I tried it again. I couldn't get the following to work with my own DLL even If I capitalize the namespace (It does work fine with build in types like System.String): > System::Type.get_type("Abc.Hi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null") Do I have any other options? Tha

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Ivan Porto Carrero
I get the same behavior. I can load types from the CLR but not from my own assembly. I copied my assembly into the folder that contains ir.exe >>> require 'mscorlib' => true >>> require 'IronNails.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' => true >>> IronNails::View::XamlPro

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Tomas Matousek
Can you load the assembly and get the type explicitly? require ‘mscorlib’ System::Reflection::Assembly.Load(“IronNails.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null").GetType('IronNails.View.XamlProxy’) Tomas From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan P

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Ivan Porto Carrero
Yes that works On Mon, Dec 8, 2008 at 8:11 PM, Tomas Matousek <[EMAIL PROTECTED] > wrote: > Can you load the assembly and get the type explicitly? > > > > require 'mscorlib' > > System::Reflection::Assembly.Load("IronNails.Library, Version=1.0.0.0, > Culture=neutral, PublicKeyToken=null").GetTy

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Aaron Feng
Ok, I got Assembly.Load and Type.get_type both to work with my own DLL. The actual DLL have to live where ir.exe lives. Is there a way for it to look in the directory of the ruby file? Like the way require statement work. Aaron On Mon, Dec 8, 2008 at 2:11 PM, Tomas Matousek <[EMAIL PROTECTED

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Tomas Matousek
You can use Assembly.LoadFile and point it to an absolute path instead. Tomas From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Feng Sent: Monday, December 08, 2008 12:33 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Handling C# lower case namespaces Ok, I g

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Dudu Baião
Hi Aaron! I'm doing this way for now: require '../../your_folder/your_assembly.dll' ? 2008/12/8 Aaron Feng <[EMAIL PROTECTED]>: > Ok, I got Assembly.Load and Type.get_type both to work with my own DLL. > The actual DLL have to live where ir.exe lives. Is there a way for it to > look in the di

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Aaron Feng
I tried to load the struct the same way, but I don't know how to set the value of it. For example: C# namespace x.y.z { public struct Foo { public long Bar; public Foo(long bar) { this.Bar = bar; } } } var foo = new x.y.z.Foo(1); IronRuby Foo = Type

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Ivan Porto Carrero
Normally foo = x::y::z::Foo.new(1) in the console you need to use global variables:$foo = x::y::z::Foo.new(1) On Mon, Dec 8, 2008 at 10:43 PM, Aaron Feng <[EMAIL PROTECTED]> wrote: > I tried to load the struct the same way, but I don't know how to set the > value of it. For example: > > C# > >

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Aaron Feng
Ivan, In this case you actually can't do foo = x::y::z::Foo.new(1) because IronRuby doesn't support lowercase namespace. It think it's a method call. That's why I started out Foo = Type.get_type("x.y.z.Foo, MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", true).to_class Aaron

[Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Terence Lewis
Hello, First let me apologise for the length of this mail - it's not quite as long as it looks, a lot of the text is error messages :( Anyway, I can now build from rake compile, however I'm having trouble building from Visual Studio 2008 SP1. The first thing that it complains about is something

Re: [Ironruby-core] Handling C# lower case namespaces

2008-12-08 Thread Brad Wilson
Welcome to the "wonderful" world of Fusion. If you use Assembly.LoadFrom, then you can only use the assembly reference itself to get the types. The canonical names don't match assemblies loaded using LoadFrom. To use Assembly.Load, it has to be in one of the approved search paths (which, by default

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Jimmy Schementi
Terence, Sorry for the issues you're having, crazy build breaks and signing are never fun. Microsoft requires us to sign any binaries we produce, so providing access to our repository is a pain because we can't distribute the private key used in signing. Jim is going to fix this so builds by de

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Michael Letterle
Yeah, the git repo doesn't seem as smooth as the svn head.. yet. Out of curiosity have you tried the SVN head yet? Also, you can start visual studio and attach to a running ir console session to do debugging if necessary. On Mon, Dec 8, 2008 at 6:01 PM, Terence Lewis <[EMAIL PROTECTED]> wrote:

[Ironruby-core] Code Review: Simple ruby fixes

2008-12-08 Thread Shri Borde
tfpt review "/shelveset:rt;REDMOND\sborde" Comment : Simple fixes to the simple_test.rb runner as I was trying to get a feel for all the moving parts in Ruby testing. "finished" was not setting the exitcode, and so we were ignoring some failures, I disabled some of the tests, and fixed t

Re: [Ironruby-core] Code Review: Simple ruby fixes

2008-12-08 Thread Jim Deville
Can you update Alias.ps1 as well? Otherwise looks good. JD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shri Borde Sent: Monday, December 08, 2008 4:42 PM To: IronRuby External Code Reviewers Cc: ironruby-core@rubyforge.org Subject: [Ironruby-core] Cod

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Michael Letterle
Presumably turning off strong name validation for the public key token would work as well... no? On Mon, Dec 8, 2008 at 7:02 PM, Jimmy Schementi < [EMAIL PROTECTED]> wrote: > Terence, > > Sorry for the issues you're having, crazy build breaks and signing are > never fun. Microsoft requires us to

[Ironruby-core] IronRuby GitHub Repo and Mono on Linux

2008-12-08 Thread Michael Letterle
I successfully have the GitHub repo building on Mono 2.3 on Linux. Yes, you'll have to use the Mono SVN head version. Also Microsoft.Dynamic.dll does not compile, neither does the Test assemblies, however everything needed to run ir.exe does. The main issue right now seems to be that System.Dyna

Re: [Ironruby-core] Code Review: Simple ruby fixes

2008-12-08 Thread Tomas Matousek
Looks good. Tomas -Original Message- From: Jim Deville Sent: Monday, December 08, 2008 4:59 PM To: ironruby-core@rubyforge.org; IronRuby External Code Reviewers Subject: RE: Code Review: Simple ruby fixes Can you update Alias.ps1 as well? Otherwise looks good. JD -Original Message-

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Jim Deville
I had Pete try that, and it didn't work, but he might be hitting a different issue. So yes, Skip verification (via sn -Vr) should work as well. JD From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Letterle Sent: Monday, December 08, 2008 4:05 PM To: ironruby-core@rubyforge.o

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Terence Lewis
I've actually just managed to get this to work. I had to remove the 3 signing xml tags from every project in the solution (not just the 3 Jimmy mentioned). I also had to remove the definition of SIGNED from every project that had it (which wasn't all of them). Once this was done, all projects built

Re: [Ironruby-core] Trouble building from Visual Studio (git repo)

2008-12-08 Thread Jim Deville
I'd be interested in the diff. You should be able to go into Vim, open the file, and run :set fileformat=unix followed by a :wq to save it. That should convert line endings for you. I can't guarantee we'll use it, but I'd like to see what you had to do. Ir.exe in a Merlin environment should use