[ZeroBrane Studio] Re: Mobdebug start fail

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: "zerobrane@xxxxxxxxxxxxx" <zerobrane@xxxxxxxxxxxxx>
  • Date: Sun, 31 May 2015 12:45:22 -0700

Hi Artem,

Error: D:\Programs\ZeroBrane\lualibs/mobdebug/mobdebug.lua:140: bad argument
#1 to 'pairs' (table expected, got boolean)

I saw a similar report once before and fixed it in Serpent a week or
two ago (it's an error that comes from the serializer in mobdebug),
but I couldn't follow up on the report and wasn't sure what version of
Love2d is causing it or on what table it fails.

Serpent checks several "default" tables and it seems like one of the
values has "boolean" value instead of "table" value. Can you check the
following from that instance of Love2d: "local G = (_G or _ENV);
print(G.coroutine, G.debug, G.io, G.math, G.string, G.table, G.os)"?
One of these values will be "boolean", even though they are all
expected to be "table". Also, what version of Love2d is that?

Paul.

On Sun, May 31, 2015 at 11:42 AM, Артём Башев <artem.bashev@xxxxxxxxx> wrote:
ZB 1.10
Mobdebug 0.62

function love.load(arg)
if arg[#arg] == "-debug" then
require("mobdebug").start()
end
end

Error: D:\Programs\ZeroBrane\lualibs/mobdebug/mobdebug.lua:140: bad argument
#1
to 'pairs' (table expected, got boolean)
stack traceback:
[C]: in function 'pairs'
D:\Programs\ZeroBrane\lualibs/mobdebug/mobdebug.lua:140: in function
<D:
\Programs\ZeroBrane\lualibs/mobdebug/mobdebug.lua:129>
D:\Programs\ZeroBrane\lualibs/mobdebug/mobdebug.lua:254: in main
chunk
[C]: in function 'require'
main.lua:6: in function 'load'
[string "boot.lua"]:418: in function <[string "boot.lua"]:413>
[C]: in function 'xpcall'

Missing something?


Other related posts: