Elv13 / tyrannical

Dynamic tagging configuration system for awesomeWM
211 stars 33 forks source link

Errors with example.rc.lua #89

Open reinerh opened 5 years ago

reinerh commented 5 years ago

A Debian user who tried tyrannical (2.0) with the included example.rc.lua reported two errors: #922834, #922835.

When clicking on the layout selector:

2019-02-21 19:55:31 W: awesome: luaA_dofunction:78: error while running function!
stack traceback:
    /usr/share/awesome/lib/awful/layout/init.lua:146: in function 'awful.layout.inc'
    /usr/share/awesome/lib/tyrannical/example.rc.lua:284: in upvalue 'press'
    /usr/share/awesome/lib/awful/button.lua:47: in function </usr/share/awesome/lib/awful/button.lua:47>
    [C]: in method 'emit_signal'
    /usr/share/awesome/lib/wibox/widget/base.lua:383: in function 'wibox.widget.base.handle_button'
    (...tail calls...)
    /usr/share/awesome/lib/gears/object.lua:148: in function 'gears.object.emit_signal'
    /usr/share/awesome/lib/wibox/drawable.lua:431: in function </usr/share/awesome/lib/wibox/drawable.lua:426>
error: /usr/share/awesome/lib/awful/layout/init.lua:146: attempt to perform arithmetic on a nil value (local 'i')

And when trying to quit awesome (via the menu):

2019-02-21 19:56:22 W: awesome: luaA_dofunction:78: error while running function!
stack traceback:
    [C]: in local 'cmd'
    /usr/share/awesome/lib/awful/menu.lua:307: in function 'awful.menu.exec'
    /usr/share/awesome/lib/awful/menu.lua:447: in upvalue 'press'
    /usr/share/awesome/lib/awful/button.lua:47: in function </usr/share/awesome/lib/awful/button.lua:47>
    [C]: in method 'emit_signal'
    /usr/share/awesome/lib/wibox/widget/base.lua:383: in function 'wibox.widget.base.handle_button'
    (...tail calls...)
    /usr/share/awesome/lib/gears/object.lua:148: in function 'gears.object.emit_signal'
    /usr/share/awesome/lib/wibox/drawable.lua:431: in function </usr/share/awesome/lib/wibox/drawable.lua:426>
error: /usr/share/awesome/lib/awful/menu.lua:307: bad argument #1 to 'cmd' (number expected, got table)

Could you please update example.rc.lua so that it is usable with awesome 4.3 and the current tyrannical version?