Eric Nicholson
2007-Sep-26 00:23 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn''t added to SVN in the last update? -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/f02aeb49/attachment.html
John Lam (DLR)
2007-Sep-26 00:24 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
It''s a gem - just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with new rakefile require ''pathname2'' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn''t added to SVN in the last update? -Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/0f7a0175/attachment.html
Eric Nicholson
2007-Sep-26 00:44 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) <jflam at microsoft.com> wrote:> > It''s a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require ''pathname2'' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn''t added to SVN in the last > update? > > -Eric > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/f31b751f/attachment-0001.html
Eric Nicholson
2007-Sep-26 01:05 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
What value do we need to have for "MERLIN_ROOT"? I''m getting errors in common.rb when running the test suite: c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+'' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from run.rb:5 -Eric On 9/25/07, Eric Nicholson <enicholson at gmail.com> wrote:> > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, John Lam (DLR) <jflam at microsoft.com> wrote: > > > It''s a gem ? just gem install pathname2. > > > > > > > > Thanks, > > > > -John > > > > > > > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > > *Sent:* Tuesday, September 25, 2007 5:24 PM > > *To:* ironruby-core at rubyforge.org > > *Subject:* [Ironruby-core] problems with new rakefile require > > ''pathname2'' > > > > > > > > When I run the updated rakefile I get "no such file to load -- > > pathname2". Is it possible that this file wasn''t added to SVN in the last > > update? > > > > -Eric > > > > _______________________________________________ > > Ironruby-core mailing list > > Ironruby-core at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070925/7ebcaf38/attachment.html
John Lam (DLR)
2007-Sep-26 15:47 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
Hi Eric, Those are our internal tests, which don''t use the same logic that the Rakefile uses to determine where they''re being run from. For the time being I''m going to disable those tests and open a bug against Haibo who owns that test suite. Thanks! -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 6:05 PM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require ''pathname2'' What value do we need to have for "MERLIN_ROOT"? I''m getting errors in common.rb when running the test suite: c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+'' for nil:NilClass (NoMethodError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from run.rb :5 -Eric On 9/25/07, Eric Nicholson <enicholson at gmail.com<mailto:enicholson at gmail.com>> wrote: The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) <jflam at microsoft.com<mailto:jflam at microsoft.com>> wrote: It''s a gem - just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org <mailto:ironruby-core-bounces at rubyforge.org> [mailto:ironruby-core-bounces at rubyforge.org<mailto:ironruby-core-bounces at rubyforge.org>] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org<mailto:ironruby-core at rubyforge.org> Subject: [Ironruby-core] problems with new rakefile require ''pathname2'' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn''t added to SVN in the last update? -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org <mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/55440d7a/attachment.html
Stefan Hüttenrauch
2007-Sep-26 16:29 UTC
[Ironruby-core] problems with strongly named assemblies
Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn''t work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly ''Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/dae4549a/attachment-0001.html
Stefan Hüttenrauch
2007-Sep-26 16:29 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
I did the gem install for pathname2 and now get rake aborted! no such file to load -- windows/path which goes down to the following code snipped in c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 53 if RUBY_PLATFORM.match(''mswin'') 54 require ''windows/path'' 55 require ''windows/file'' 56 include Windows::Path 57 include Windows::File 58 end Does anybody have any ideas? Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Mittwoch, 26. September 2007 02:45 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require ''pathname2'' The build works much better now. Thanks! Any chance we could get that as a "require_gem" in a future release? On 9/25/07, John Lam (DLR) <jflam at microsoft.com> wrote: It''s a gem ? just gem install pathname2. Thanks, -John From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Eric Nicholson Sent: Tuesday, September 25, 2007 5:24 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with new rakefile require ''pathname2'' When I run the updated rakefile I get "no such file to load -- pathname2". Is it possible that this file wasn''t added to SVN in the last update? -Eric _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/5e72c5bc/attachment.html
John Lam (DLR)
2007-Sep-26 16:40 UTC
[Ironruby-core] problems with strongly named assemblies
Here''s an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLanguageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLanguageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn''t work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly ''Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/f6fc22c4/attachment-0001.html
Tony Djordjevski
2007-Sep-26 16:45 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
I had the same problem. Ultimately, I fixed it by uninstalling my Ruby One-Click installer and installing the most recent version: http://rubyforge.org/frs/download.php/18566/ruby186-25.exe After the installation, I did a "gem install -y pathname2" and then I was able to compile. Tony Stefan H?ttenrauch wrote:> I did the gem install for pathname2 and now get > rake aborted! > no such file to load -- windows/path > > which goes down to the following code snipped in > c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 > 53 if RUBY_PLATFORM.match(''mswin'') > 54 require ''windows/path'' > 55 require ''windows/file'' > 56 include Windows::Path > 57 include Windows::File > 58 end > > > Does anybody have any ideas? > Thanks > Stefan > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Mittwoch, 26. September 2007 02:45 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > ''pathname2'' > > > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* <jflam at microsoft.com > <mailto:jflam at microsoft.com>> wrote: > > It''s a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org > <mailto:ironruby-core-bounces at rubyforge.org>[mailto:ironruby-core-bounces at rubyforge.org > <mailto:ironruby-core-bounces at rubyforge.org>] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org <mailto:ironruby-core at rubyforge.org> > *Subject:* [Ironruby-core] problems with new rakefile require ''pathname2'' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn''t added to SVN in the > last update? > > -Eric > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org <mailto:Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core
Eric Nicholson
2007-Sep-26 17:25 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
The tests run now, but a lot of the tests are being skipped. Is there some easy way I can get those going? The reason I ask is that I''m trying to get a DSL built on IronRuby, and I needed to make some tweaks to Kernel & RubyOps to get all the scoping resolved right. I just want to make sure I haven''t broken anything too important :) Thanks! Eric On 9/26/07, John Lam (DLR) <jflam at microsoft.com> wrote:> > Hi Eric, > > > > Those are our internal tests, which don''t use the same logic that the > Rakefile uses to determine where they''re being run from. For the time being > I''m going to disable those tests and open a bug against Haibo who owns that > test suite. > > > > Thanks! > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 6:05 PM > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > ''pathname2'' > > > > What value do we need to have for "MERLIN_ROOT"? I''m getting errors in > common.rb when running the test suite: > > c:/source/ironruby/trunk/tests/ironruby/common.rb:25: undefined method `+'' > for nil:NilClass (NoMethodError) > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' > from run.rb :5 > > -Eric > > On 9/25/07, *Eric Nicholson* <enicholson at gmail.com> wrote: > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* <jflam at microsoft.com> wrote: > > It''s a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org > *Subject:* [Ironruby-core] problems with new rakefile require ''pathname2'' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn''t added to SVN in the last > update? > > -Eric > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/58eefc34/attachment.html
Stefan Hüttenrauch
2007-Sep-26 20:34 UTC
[Ironruby-core] problems with strongly named assemblies
It looks like this did the trick, Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (DLR) Sent: Mittwoch, 26. September 2007 18:41 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with strongly named assemblies Here?s an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn''t work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly ''Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070926/829aea21/attachment-0001.html
Stefan Hüttenrauch
2007-Sep-26 21:08 UTC
[Ironruby-core] problems with new rakefile require ''pathname2''
Thanks, Tony for your answer, with IronRuby revision 35 it worked. Before I had 33 and that wasn''t even working with your work-around. Cheers, Stefan -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Tony Djordjevski Sent: Mittwoch, 26. September 2007 18:46 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with new rakefile require ''pathname2'' I had the same problem. Ultimately, I fixed it by uninstalling my Ruby One-Click installer and installing the most recent version: http://rubyforge.org/frs/download.php/18566/ruby186-25.exe After the installation, I did a "gem install -y pathname2" and then I was able to compile. Tony Stefan H?ttenrauch wrote:> I did the gem install for pathname2 and now get > rake aborted! > no such file to load -- windows/path > > which goes down to the following code snipped in > c:/ruby/lib/ruby/gems/1.8/gems/pathname2-1.5.2/lib/pathname2.rb:54 > 53 if RUBY_PLATFORM.match(''mswin'') > 54 require ''windows/path'' > 55 require ''windows/file'' > 56 include Windows::Path > 57 include Windows::File > 58 end > > > Does anybody have any ideas? > Thanks > Stefan > > > > > > *From:* ironruby-core-bounces at rubyforge.org > [mailto:ironruby-core-bounces at rubyforge.org] *On Behalf Of *Eric Nicholson > *Sent:* Mittwoch, 26. September 2007 02:45 > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] problems with new rakefile require > ''pathname2'' > > > > The build works much better now. Thanks! > > Any chance we could get that as a "require_gem" in a future release? > > On 9/25/07, *John Lam (DLR)* <jflam at microsoft.com > <mailto:jflam at microsoft.com>> wrote: > > It''s a gem ? just gem install pathname2. > > > > Thanks, > > -John > > > > > > *From:* ironruby-core-bounces at rubyforge.org ><mailto:ironruby-core-bounces at rubyforge.org>[mailto:ironruby-core-bounces at rubyf orge.org> <mailto:ironruby-core-bounces at rubyforge.org>] *On Behalf Of *Eric Nicholson > *Sent:* Tuesday, September 25, 2007 5:24 PM > *To:* ironruby-core at rubyforge.org <mailto:ironruby-core at rubyforge.org> > *Subject:* [Ironruby-core] problems with new rakefile require ''pathname2'' > > > > When I run the updated rakefile I get "no such file to load -- > pathname2". Is it possible that this file wasn''t added to SVN in the > last update? > > -Eric > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org <mailto:Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core_______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core
Stefan Hüttenrauch
2007-Sep-27 14:14 UTC
[Ironruby-core] problems with strongly named assemblies
Hi again, I moved forward on my way to include IronRuby within a WebPart for SharePoint server. I included some code that calls IronRuby (like re.ExecuteCommand("something");) but wasn''t able to prove if it is working. Trying to create a file or displaying a messageBox on rendering the WebPart did nothing visible. The MessageBox didn''t appear neither did the file. Do you have any ideas on what I can use in order to produce a visible output from within a WebPart for SharePoint. Thanks Stefan From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of John Lam (DLR) Sent: Mittwoch, 26. September 2007 18:41 To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] problems with strongly named assemblies Here?s an answer from Dino on my team: Thanks, -John He needs to define SIGNED when building (Microsoft.Scripting) and update the public key in ScriptEnvironmentSetup.cs which currently looks like: #if SIGNED new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython, Version=2.0.0.400, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".rb", "rb", "ruby", "ironruby"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", ".vbx", "vbx"), #else new LanguageProviderSetup("IronPython.Hosting.PythonLanguageProvider", "IronPython", ".py", "py", "python", "ironpython"), new LanguageProviderSetup("Microsoft.JScript.Compiler.Hosting.LanguageProvider", "Microsoft.JScript.Compiler", ".jsx", ".js", "managedjscript", "js", "jscript"), new LanguageProviderSetup("Microsoft.VisualBasic.Scripting.Hosting.VisualBasicLangu ageProvider", "Microsoft.VisualBasic.Scripting", ".vbx", "vbx"), new LanguageProviderSetup("Ruby.Hosting.RubyLanguageProvider", "Ruby", ".rb", "rb", "ruby", "ironruby") #endif From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Stefan H?ttenrauch Sent: Wednesday, September 26, 2007 9:29 AM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] problems with strongly named assemblies Hi together, I tried to assign a strong name to the IronRuby DLLs to be used with Sharepoint. Therefore I opened the IronRuby.sln in VS2005 and changed the properties of every reference project to use src/microsoft.scripting/DebugKey.snk as a keyfile to sign the assembly, b/c it was the only key file I found. Doing so I got an error message building the solution (Referenced Assembly Ruby does not have a strong name). So it seems that signing the Ruby project/assembly doesn''t work. My second attempt was to generate a new keypair with sn.exe referencing it in the ruby project properties and treating it isolated from the IronRuby solution. No success. I then tried ildasm followed by ilasm using a self-generated keypair file for the Microsoft.Scripting.dll first and after another build the Ruby.dll. It worked, at least I could copy the dlls to my global assembly cache. But!! Referencing both dlls in a VS2005 project threw the following exception right after starting the application: Could not load file or assembly ''Microsoft.Scripting, Version=1.0.0.400, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. A strongly-named assembly is required. Now I am wondering why something is still asking for an assembly with PublicKeyToken=null, since both Ruby.dll and Microsoft.Scripting.dll are signed with a strong name. Do you have any advice? Did I take the wrong way somewhere? Looking forward to an answer... Stefan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20070927/a442ce05/attachment.html