Open TechDufus opened 1 month ago
Quitting and restarting hammerspoon works around this issue.
Let me know if it keeps happening, but I have no idea what's causing it.
If so, curious if you can narrow down which app is causing it.
Doing a Reload Config
also works to refresh this.
Ah figured out what causes this. If you bind a window to a cell using bindToCell
, then close that app, then re-open that app, it'll have a different pid
.
We should gracefully handle this. Maybe look for app with same name, and if that can't be found, just remove it from the cell bindings table when pid can't be found.
Every now and then I am unable to run my bind for
layout.bindToCell
with the following error:This is odd when there is no currently running pid
50647
in this example. I've checkedps
, Activity Monitor, and simply tried killing the pid but it's just not a running pid. Wondering why GridLayout is hanging on to it?The result is that I cannot successfully run this bindToCell function, moving apps around and whatnot...