lcpz / lain

Awesome WM complements
GNU General Public License v2.0
1.06k stars 210 forks source link

After updating to latest lain version, reshift stopped working (attempt to call a nil value) #477

Closed finex closed 3 years ago

finex commented 3 years ago

Output of awesome -v:

awesome v4.3 (Too long)
 • Compiled against Lua 5.3.5 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

Output of lua -v:

Lua 5.4.1  Copyright (C) 1994-2020 Lua.org, PUC-Rio

Actual behaviour: I've setup redshift widget using the wiki instructions. It worked fine until latest update. When awesome starts I've the following error:

/usr/share/lua/5.3/lain/widget/contrib/redshift.lua:50: attempt to call a nil value (method 'buttons')

stack traceback:
  /usr/share/lua/5.3/lain/widget/contrib/redshift.lua:50: in function 'lain.widget.contrib.redshift.attach'
edubart commented 3 years ago

This happened to me too. I had to disable redshift widget for now.

lcpz commented 3 years ago

Sorry guys, I forgot to update the wiki yesterday. It is done now.

You have to use the dot instead of the colon to call the functions.