Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in config after update to 0.9.96, in spaces.lua #3174

Closed
evanmoses-okta opened this issue Mar 29, 2022 · 3 comments
Closed

Crash in config after update to 0.9.96, in spaces.lua #3174

evanmoses-okta opened this issue Mar 29, 2022 · 3 comments

Comments

@evanmoses-okta
Copy link

After updating to 0.9.96, I get this error, in a previously-working init:

2022-03-29 16:10:59: -- Loading extensions: window.filter
2022-03-29 16:10:59: -- Some applications have alternate names which can also be checked if you enable Spotlight support with `hs.application.enableSpotlightForNameSearches(true)`.
2022-03-29 16:10:59: *** ERROR: ...merspoon.app/Contents/Resources/extensions/hs/spaces.lua:71: attempt to index a nil value (local 'contents')
stack traceback:
	...merspoon.app/Contents/Resources/extensions/hs/spaces.lua:71: in local 'getDockExitTemplates'
	...merspoon.app/Contents/Resources/extensions/hs/spaces.lua:76: in main chunk
	[C]: in function 'rawrequire'
	...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
	...n.app/Contents/Resources/extensions/hs/window_filter.lua:1530: in main chunk
	[C]: in function 'rawrequire'
	...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
	(...tail calls...)
	[C]: in function 'rawrequire'
	...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
	...merspoon.app/Contents/Resources/extensions/hs/window.lua:1027: in function <...merspoon.app/Contents/Resources/extensions/hs/window.lua:1025>
	(...tail calls...)
	/Users/<redacted>/.hammerspoon/init.lua:190: in main chunk
	[C]: in function 'xpcall'
	...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:723: in function 'hs._coresetup.setup'
	(...tail calls...)

line 190 in my config looks like

local wf = hs.window.filter
@asmagill
Copy link
Member

Can you check to see if the new build referenced at #3170 (comment) fixes your issue?

@chinleo
Copy link

chinleo commented Mar 30, 2022

Can you check to see if the new build referenced at #3170 (comment) fixes your issue?

It fixed 👍🏻

@cmsj
Copy link
Member

cmsj commented Mar 30, 2022

Closing as a duplicate of #3170

@cmsj cmsj closed this as completed Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants