hammerspoon: The merge of #2466 has broken HS
I’m on 10.14.6, and just built HS afresh. Upon opening Hammerspoon, I see:
2020-09-18 16:49:52: -- Loading extension: hotkey
2020-09-18 16:49:52: *** ERROR: ...oon.app/Contents/Resources/extensions/hs/logger/init.lua:185: attempt to call a nil value (upvalue 'printf')
stack traceback:
...oon.app/Contents/Resources/extensions/hs/logger/init.lua:185: in function <...oon.app/Contents/Resources/extensions/hs/logger/init.lua:173>
(...tail calls...)
...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:72: in function <...oon.app/Contents/Resources/extensions/hs/hotkey/init.lua:54>
(...tail calls...)
/Users/chdiza/.rc/hs/init.lua:4: in main chunk
[C]: in function 'xpcall'
...app/Contents/Resources/extensions/hs/_coresetup/init.lua:695: in function 'hs._coresetup.setup'
(...tail calls...)
This wasn’t present last time I built HS, which was 4e793ec8021ab.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (12 by maintainers)
I can confirm that the problem has disappeared. Thanks so much!
Ahh, I was trying to think how to mimic static within lua… that would work if you add
local host, timeroutside of the function. However, I’m testing a pull where I’ve moved a couple of things around that I think is cleaner anyways.