Hi HS Team,
I just upgraded to 0.9.74. Calling hs.grid.get(hs.window.frontmostWindow()) now fails with the error
> hs.grid.get(hs.window.frontmostWindow())
...spoon.app/Contents/Resources/extensions/hs/grid/init.lua:234: attempt to perform arithmetic on a nil value (field 'w')
stack traceback:
...spoon.app/Contents/Resources/extensions/hs/grid/init.lua:234: in upvalue 'getCellSize'
...spoon.app/Contents/Resources/extensions/hs/grid/init.lua:256: in function 'hs.grid.get'
(...tail calls...)
[C]: in function 'xpcall'
...app/Contents/Resources/extensions/hs/_coresetup/init.lua:422: in function <...app/Contents/Resources/extensions/hs/_coresetup/init.lua:402>
I meet thesame question,and I change to 0.9.73
Came to report the same, found via usage of https://github.com/miromannino/miro-windows-manager
My bad... I've pushed a fix in #2089.
Sorry @cmsj !
I can confirm #2089 fixes the issue for Miro Windows Manager. Thanks for the quick turnaround!
0.9.75 will be released shortly with the fix.
Most helpful comment
0.9.75 will be released shortly with the fix.