mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #03622
[Bug 1310372] Re: Start-up error messages from Lua interpreter only show first error
** Changed in: mudlet
Assignee: (unassigned) => Stephen Lyons (slysven)
** Changed in: mudlet
Status: New => In Progress
** Changed in: mudlet
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1310372
Title:
Start-up error messages from Lua interpreter only show first error
Status in Mudlet the MUD client:
In Progress
Bug description:
In https://bugs.launchpad.net/mudlet/+bug/1310361 I investigated an
issue that revealed a further matter that I am not skilled enough to
fix. If more than one required external module is missing the part of
the error messages that are shown that come from the lua interpreter
itself are repeats of the message for the first problem.
I think the messages are supposed to show the "module loader"
arguments that have been tried for the particular module - which
equates to a 'sort of' wildcarded filename. Studying either of the
composite 'screen shots' from that bug report, and I've attached a
copy from my 'fixed' code of that one (well I think it is clearer but
obviously I'm biased), you can see that there are three sets of such
lines and they all relate to the lua rex_pcre module even though there
are three different modules that are causing problems.
Stepping through the code in the Debugger shows that the lines in the
end of TLuaIntrepreter::initLuaGlobals() that pull the error message
text from the Lua state/stack (?) with calls to "lua_tostring(
pGlobalLua, 1 )" are producing the same string each time. Now I am
not an expert in Lua but it seems to me that we are failing to do
something to clean up the stack after an error, can someone who
understands what is happening here comment/fix this?
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1310372/+subscriptions
References