Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with example.rc.lua #89

Open
reinerh opened this issue Feb 21, 2019 · 0 comments
Open

Errors with example.rc.lua #89

reinerh opened this issue Feb 21, 2019 · 0 comments

Comments

@reinerh
Copy link

reinerh commented Feb 21, 2019

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?

smaslovski added a commit to smaslovski/tyrannical that referenced this issue Jul 13, 2020
This fixes the issue with layout switching when clicking on the layout icon widget ("Errors with example.rc.lua Elv13#89"). Also, Debian bug #922834 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922834).
smaslovski added a commit to smaslovski/tyrannical that referenced this issue Jul 13, 2020
This fixes the issue with layout switching when clicking on the layout icon widget ("Errors with example.rc.lua Elv13#89"). Also, Debian bug #922834 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922834).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant