Hammerspoon: hs.grid.get fails with error

Created on 3 May 2019  路  5Comments  路  Source: Hammerspoon/hammerspoon

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>

Most helpful comment

0.9.75 will be released shortly with the fix.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BigSully picture BigSully  路  3Comments

luckman212 picture luckman212  路  4Comments

latenitefilms picture latenitefilms  路  4Comments

dasmurphy picture dasmurphy  路  4Comments

aaronjensen picture aaronjensen  路  3Comments