At Sun, 24 May 2009 16:43:00 +0400 Сергей Миронов wrote: > Hi, i have some error message from awesome's internals. > > W: awesome: luaA_dofunction:317: error running function: > /usr/share/awesome/lib/awful/hooks.lua:45: bad argument #1 to 'pairs' > (table expected, got nil) > > The problem is definetly in my rc.lua, but i cant figure out the place. > Is there something like callstack or other debugging technic in lua? >
If you absolutely can't find the code that called into awful.hooks, you might
want to use this as a last resort:
Paste this line before line 45 of lib/awful/hooks.lua:
if not type(_M[name].callbacks) then error("fooo!") end
That will print a stacktrace if the table doesn't exist. You might want to look
for user.call() in files used by your configuration file and check whether the
user hook which is called is actually created before being called.
--
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+
Gregor Best
signature.asc
Description: PGP signature
