jasonrudolph / keyboard

⌨ Toward a more useful keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window bindings stopped working after updating Hammerspoon to 0.9.81

aantipov opened this issue · comments

Problem

I'm a mac user macOS Catalina 10.15.7
After updating Hammerspoon to 0.9.81 almost all my window bindings stopped working. The only working that I see is { {}, 'space', 'centerWithFullHeight' }

I checked Hammerspoon's console and it says the following:

2020-09-30 07:02:57: 07:02:57 ERROR:   LuaSkin: hs.hotkey callback: /Users/alexey/.hammerspoon/keyboard/windows.lua:261: attempt to call a nil value (field '?')
stack traceback:
	/Users/alexey/.hammerspoon/keyboard/windows.lua:261: in upvalue 'fn'
	/Users/alexey/.hammerspoon/keyboard/windows.lua:217: in function </Users/alexey/.hammerspoon/keyboard/windows.lua:215>
2020-09-30 07:02:58: 07:02:58     hotkey: Disabled hotkey F16
2020-09-30 07:02:58:              hotkey: Disabled previous hotkey ⌥W
2020-09-30 07:02:58:              hotkey: Re-enabled previous hotkey ⌥W
2020-09-30 07:02:58:              hotkey: Enabled hotkey F16
2020-09-30 07:02:58: 07:02:58 ERROR:   LuaSkin: hs.hotkey callback: /Users/alexey/.hammerspoon/keyboard/windows.lua:261: attempt to call a nil value (field '?')
stack traceback:
	/Users/alexey/.hammerspoon/keyboard/windows.lua:261: in upvalue 'fn'
	/Users/alexey/.hammerspoon/keyboard/windows.lua:217: in function </Users/alexey/.hammerspoon/keyboard/windows.lua:215>
2020-09-30 07:03:03: 07:03:03     hotkey: Disabled hotkey ⌃U
2020-09-30 07:03:08: 07:03:08     hotkey: Enabled hotkey ⌃U

What could be the problem?

👋 @aantipov: It looks like Hammerspoon is seeing a fairly rapid rate of changes related to window management right now, with the release of 0.9.79, 0.9.80, and 0.9.81 all within the last week or so. (Hammerspoon/hammerspoon@0.9.78...0.9.81)

I'll probably wait for that rate of change to calm down before digging into this. In the meantime, I've been using Hammerspoon 0.9.78, which you can download at https://github.com/Hammerspoon/hammerspoon/releases/tag/0.9.78. Admittedly, I'd prefer to always be using the latest version of Hammerspoon, but hopefully this helps in the meantime.

@jasonrudolph fair enough 👍 Thanks for the quick answer! I installed the 0.9.78 version and it works now

Yep, starting at 0.9.79 they made some changes that broke multiple things, 0.9.81 fixed some of them, but not all.
I'd report this issue there if you didn't yet, that should help accelerate a fix.