Yeah, the git repo doesn&#39;t seem as smooth as the svn head.. yet.&nbsp; Out of curiosity have you tried the SVN head yet?<br><br>Also, you can start visual studio and attach to a running ir console session to do debugging if necessary.<br>
<br><div class="gmail_quote">On Mon, Dec 8, 2008 at 6:01 PM, Terence Lewis <span dir="ltr">&lt;<a href="mailto:lewistm@gmail.com">lewistm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>First let me apologise for the length of this mail - it&#39;s not quite as long as it looks, a lot of the text is error messages :(<br><br>Anyway, I can now build from rake compile, however I&#39;m having trouble building from Visual Studio 2008 SP1.<br>

<br>The first thing that it complains about is something to do with SpecSharp.targets. I managed to work-around this by copying this file from \merlin\main\Languages\Ruby to \merlin\main.<br>After doing this, I got an error about Microsoft.Scripting.dll meta-data file not being found (with FxCop in the path), but changing the build config file to FxCop and then back to Debug seemed to make this problem go away.<br>

Next, I got a complaint about MSSharedLibKey.snk - I worked around this by creating a key myself (sn -k MSSharedLibKey.snk) in the folder it was looking for.<br>Then when compiling, I get build 3 errors in ReflectionCacheGenerator.cs (ClassInitGenerator). These are as follows:<br>

<br>Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; &#39;IronRuby.Compiler.Methods&#39; is inaccessible due to its protection level&nbsp;&nbsp;&nbsp; \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerator.cs&nbsp;&nbsp;&nbsp; line 29<br>Error&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; &#39;IronRuby.Runtime.Calls.BlockDispatcher&#39; does not contain a definition for &#39;MaxBlockArity&#39;&nbsp;&nbsp;&nbsp; \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerator.cs&nbsp;&nbsp;&nbsp; line 102<br>

Error&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp; &#39;IronRuby.Runtime.Calls.BlockDispatcher&#39; does not contain a definition for &#39;MaxBlockArity&#39;&nbsp;&nbsp;&nbsp; \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerator.cs&nbsp;&nbsp;&nbsp; line 103<br><br>I also get two build errors in IronRuby.Tests:<br>

<br>Error&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp; &#39;IronRuby.Compiler.IParserLogger&#39; is inaccessible due to its protection level&nbsp;&nbsp;&nbsp; \merlin\main\Languages\Ruby\IronRuby.Tests\Parser\DefaultParserLogger.cs&nbsp;&nbsp;&nbsp; line 24<br>Error&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp;&nbsp; &#39;IronRuby.Compiler.IParserLogger&#39; is inaccessible due to its protection level&nbsp;&nbsp;&nbsp; \merlin\main\Languages\Ruby\IronRuby.Tests\Parser\CoverageParserLogger.cs&nbsp;&nbsp;&nbsp; line 33<br>

<br><br>Commenting out errors 2 and 3, and making IronRuby.Compiler.Methods and IronRuby.Compiler.IParserLogger public allows everything to build except IronRuby.Tests which then fails with 47 compile errors.<br><br>Trying to run Ruby.Console with the code in this condition leads to a MessageBox with the following: <br>

&nbsp;&nbsp;&nbsp; Error while trying to run project: Could not load file or assembly &#39;ir, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=67ede3a51bb28398&#39; or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A).<br>

<br>Presumably this is because I can&#39;t just generate a strong-name key myself? I then ran sn -Vr using my public key token, and changed two places in Ruby.Console&#39;s app.config file - Microsoft.Scripting and IronRuby to use my public key token. At this point, running the console doesn&#39;t bring up a message box, but the application does terminate immediately with the following appearing in the output window:<br>

<br>WEAK_TABLE: IronRuby.Runtime.WeakTable`2[[System.Object, mscorlib, Version=<a href="http://2.0.0.0" target="_blank">2.0.0.0</a>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[IronRuby.Runtime.RubyInstanceData, IronRuby, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral, PublicKeyToken=67ede3a51bb28398]]<br>

A first chance exception of type &#39;System.IO.FileLoadException&#39; occurred in mscorlib.dll<br>A first chance exception of type &#39;IronRuby.Builtins.LoadError&#39; occurred in IronRuby.dll<br>A first chance exception of type &#39;System.Reflection.TargetInvocationException&#39; occurred in mscorlib.dll<br>

A first chance exception of type &#39;System.Reflection.TargetInvocationException&#39; occurred in mscorlib.dll<br>A first chance exception of type &#39;Microsoft.Scripting.InvalidImplementationException&#39; occurred in Microsoft.Scripting.dll<br>

<br>So, when this failed, I tried to copy the only .snk file I could find from the subversion repository (trunk\src\microsoft.scripting.core\debugkey.snk) over my manually generated key, but this didn&#39;t yield the correct public key token either (it gives 51c7b9aefdaeb546).<br>

<br>So, now I&#39;m totally stuck. Any help or suggestions will be appreciated.<br><br><br>Regards<br><font color="#888888"><br>Terence<br></font><br><br>PS, I&#39;m trying to get the build to work out of visual studio so that I can step through some of the code in the debugger.<br>

<br>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael Letterle<br>[Polymath Prokrammer]<br><a href="http://blog.prokrams.com">http://blog.prokrams.com</a><br><br><br>