We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Steps to reproduce:
init.lua
local vpnServiceName = "VPN" -- Autoconnect VPN local function connectToVPN() hs.execute("networksetup -connectpppoeservice '" .. vpnServiceName .. "'") end local networkWatcher = hs.network.configuration:setCallback(connectToVPN) networkWatcher:start()
Actual behavior: The following error is logged to the console.
2024-03-21 20:53:42: -- Lazy extension loading enabled 2024-03-21 20:53:42: -- Loading ~/.hammerspoon/init.lua 2024-03-21 20:53:42: -- Loading extension: network 2024-03-21 20:53:42: *** ERROR: /Users/xxx/.hammerspoon/init.lua:8: attempt to call a nil value (method 'setCallback') stack traceback: /Users/xxx/.hammerspoon/init.lua:8: in main chunk [C]: in function 'xpcall' ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:723: in function 'hs._coresetup.setup' (...tail calls...)
Expected behavior: No error is logged to the console since I call setCallback as it is described in the docs.
setCallback
Hammerspoon version: 0.9.100 (6815)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce:
init.lua
Actual behavior: The following error is logged to the console.
Expected behavior: No error is logged to the console since I call
setCallback
as it is described in the docs.Hammerspoon version: 0.9.100 (6815)
The text was updated successfully, but these errors were encountered: