You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hs.loadSpoons() seems to respect package.path and allow me to specify alternate locations for loading Spoons. hs.spoons.use() does not seem to respect package.path. I'm not sure which behavior is intended as correct, but respecting package.path would be my preference.
Example below showing ability to load Contexts spoon from the MySpoons/ directory with hs.loadSpoon() but not hs.spoons.use().
> hs.inspect(package.path)
"/Users/von/.hammerspoon/?.lua;/Users/von/.hammerspoon/?/init.lua;/Users/von/.hammerspoon/Spoons/?.spoon/init.lua;/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua;/Applications/Hammerspoon.app/Contents/Resources/extensions/?.lua;/Applications/Hammerspoon.app/Contents/Resources/extensions/?/init.lua;/Users/von/.hammerspoon/lib/?.lua;/Users/von/.hammerspoon/MySpoons/?.spoon/init.lua"
> hs.loadSpoon("Contexts")
2020-08-30 13:43:38: -- Loading Spoon: Contexts
table: 0x600001681dc0
> hs.spoons.use("Contexts")
2020-08-30 13:43:52: ********
2020-08-30 13:43:52: 13:43:52 ERROR: spoons: Spoon Contexts is not installed - please install it and try again.
2020-08-30 13:43:52: ********
nil
BTW, I use an alternate directory to keep Spoons I'm developing under version control instead and separate from Spoons installed by SpoonInstaller, which simplifies my maintenance of .gitignore
The text was updated successfully, but these errors were encountered:
hs.loadSpoons()
seems to respectpackage.path
and allow me to specify alternate locations for loading Spoons.hs.spoons.use()
does not seem to respectpackage.path
. I'm not sure which behavior is intended as correct, but respectingpackage.path
would be my preference.Example below showing ability to load
Contexts
spoon from theMySpoons/
directory withhs.loadSpoon()
but noths.spoons.use()
.BTW, I use an alternate directory to keep Spoons I'm developing under version control instead and separate from Spoons installed by SpoonInstaller, which simplifies my maintenance of
.gitignore
The text was updated successfully, but these errors were encountered: