Re: [textadept] Textadept 5.0 alpha

From: mitchell <c....at.caladbolg.net>
Date: Tue, 10 Jan 2012 20:58:50 -0500 (EST)

Brian and Nils,

On Tue, 10 Jan 2012, Nils Nordman wrote:

> Hi,
>
> I got this as well with the regular build (it works fine with LuaJIT). I had a quick look, and the problem seems to be
> in lL_init:
>
> lL_cleartable(L, LUA_RIDX_GLOBALS);
>
> I haven't worked with the Lua C API, but it would seem that the error is that the code tries to clear the global
> environment from the stack using LUA_RIDX_GLOBALS. The global environment has moved to the registry as of 5.2
> (http://www.lua.org/manual/5.2/manual.html#4.5), so the global environment thus needs to be cleared there (using
> LUA_RIDX_GLOBALS as the index). That would also explain why it works with LuaJIT.

Thanks for the report and help, this is fixed in hg.

mitchell
Received on Tue 10 Jan 2012 - 20:58:50 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:27:51 EST