[Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
Ivan Porto Carrero
ivan at flanders.co.nz
Wed Oct 14 03:41:13 EDT 2009
I've been able to merge your changes, will push them later.
I'll see what I can do about reloading, but can't promise anything as I
don't have a lot of time to spend on this.
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Author of IronRuby in Action (http://manning.com/carrero)
On Wed, Oct 14, 2009 at 8:18 AM, Immo Wache <lists at ruby-forum.com> wrote:
> Hi Tomas,
> No success so far, all variants produce the same exception:
> "InvalidOperationException: Empty scope has no global scope." ???
> I tried following variants:
> Engine.Operations.InvokeMember(null, "require",
> Engine.Operations.InvokeMember(Context, "require",
> Engine.Operations.InvokeMember(Context.TopGlobalScope, "require",
> Engine.Operations.InvokeMember(Engine, "require",
> Engine.Operations.InvokeMember(Engine.Runtime.Globals, "require",
> Engine.Operations.InvokeMember(Engine.GetScope(null), "require",
> Engine = Ruby.GetEngine(Runtime);
> Context = Ruby.GetExecutionContext(Engine);
> CurrentScope = Engine.CreateScope();
> Operations = Engine.CreateOperations();
> Any ideas what's wrong?
> Hope for some help, Immo
> Tomas Matousek wrote:
> > “The extension method RequireFile for ruby does that respect when I
> > would redefine the require statement to keep track of classes contained
> > in a file and reload them on each request when compiled in debug mode?”
> > No, there is no dynamic invocation of “require” method going on. If you
> > need to call “require” you can use Engine.Operations.InvokeMember(nil,
> > “require”, fileName);
> Posted via http://www.ruby-forum.com/.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core