hammerspoon-shiftit icon indicating copy to clipboard operation
hammerspoon-shiftit copied to clipboard

Unable to load from Hammerspoon

Open cbtum opened this issue 3 years ago • 5 comments

Just tried to install shiftit as described in the alternative installations section

When reloading the config, I get the following error. Any ideas what I might be missing?

2021-02-27 10:26:09: *** ERROR: /Users/user/.hammerspoon/init.lua:3: attempt to index a nil value (global 'spoon') stack traceback: /Users/user/.hammerspoon/init.lua:3: in main chunk [C]: in function 'xpcall' ...app/Contents/Resources/extensions/hs/_coresetup/init.lua:702: in function 'hs._coresetup.setup' (...tail calls...)

cbtum avatar Feb 27 '21 09:02 cbtum

Hi,

Could you verify if you have the right permissions set? https://github.com/peterklijn/hammerspoon-shiftit/issues/9#issuecomment-770415981

peterklijn avatar Feb 27 '21 13:02 peterklijn

yes, permissions are granted. Rebooting didn't help either

cbtum avatar Feb 27 '21 23:02 cbtum

Oh oops I just made the same issue here #16

L33t-HAXXOR avatar Sep 07 '21 03:09 L33t-HAXXOR

Apologies for the delay, it looks like there is something misconfigured in your Hammerspoon config.

Could you please share the following configurations:

  1. The configuration of Hammerspoon, found in ~/.hammerspoon/init.lua (you can also open it via the Hammerspoon icon in the menu bar and click on "Open Config")
  2. The output of this command: ls -la ~/.hammerspoon/Spoons

My guess is that the name of the installed spoon and the string in the loadSpoon command don't match.

peterklijn avatar Sep 19 '21 13:09 peterklijn

Will do!

L33t-HAXXOR avatar Oct 02 '21 13:10 L33t-HAXXOR