mjolnirapp / mjolnir

Lightweight automation and productivity app for OS X
5.21k stars 128 forks source link

Yosemite breaks 'win' variable #525

Closed pbdeuchler closed 10 years ago

pbdeuchler commented 10 years ago
Welcome to the Mjolnir Console!
You can run any Lua code in here.

-- Loading ~/.mjolnir/init.lua
-- Done.
./grid.lua:20: attempt to index local 'win' (a nil value)
stack traceback:
    ./grid.lua:20: in function <./grid.lua:18>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.2/mjolnir/hotkey.lua:23: in function </usr/local/share/lua/5.2/mjolnir/hotkey.lua:21>
./grid.lua:20: attempt to index local 'win' (a nil value)
stack traceback:
    ./grid.lua:20: in function <./grid.lua:18>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.2/mjolnir/hotkey.lua:23: in function </usr/local/share/lua/5.2/mjolnir/hotkey.lua:21>
./grid.lua:61: attempt to index local 'win' (a nil value)
stack traceback:
    ./grid.lua:61: in function <./grid.lua:59>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.2/mjolnir/hotkey.lua:23: in function </usr/local/share/lua/5.2/mjolnir/hotkey.lua:21>
./grid.lua:20: attempt to index local 'win' (a nil value)
stack traceback:
    ./grid.lua:20: in function <./grid.lua:18>
    [C]: in function 'xpcall'
    /usr/local/share/lua/5.2/mjolnir/hotkey.lua:23: in function </usr/local/share/lua/5.2/mjolnir/hotkey.lua:21>
thesoftwarephilosopher commented 10 years ago

Disable and reenable accessibility.

pbdeuchler commented 10 years ago

crap, my bootstrap script is broken. my bad, thanks for the reply

thesoftwarephilosopher commented 10 years ago

@pbdeuchler It's probably not your bootstrap script. This is a known bug in OS X that they haven't fixed in a long time.