agzam / spacehammer

Hammerspoon config inspired by Spacemacs
MIT License
556 stars 70 forks source link

Flaky startup #178

Closed agzam closed 1 year ago

agzam commented 1 year ago

This doesn't happen very often. As a matter of fact, this is an extremely rare thing. Happens at startup. Logging it for posterity. Might be a symptom of some other problem.

2023-05-11 10:23:43: Welcome to the Hammerspoon Console!
You can run any Lua code in here.

2023-05-11 10:23:43: -- Lazy extension loading enabled
2023-05-11 10:23:43: -- Loading ~/.hammerspoon/init.lua
2023-05-11 10:23:43: -- Loading extension: alert
2023-05-11 10:23:43: 10:23:43 ** Warning:   LuaSkin: hs.canvas:delete - explicit delete is no longer required for canvas objects; garbage collection occurs automatically
2023-05-11 10:23:43: -- Loading extension: ipc
2023-05-11 10:23:43: cli installation problem: incomplete installation of 'hs' and 'hs.1'.
2023-05-11 10:23:43: -- Loading extension: fnutils
2023-05-11 10:23:43: -- Loading extension: logger
2023-05-11 10:23:43: -- Loading extension: hints
2023-05-11 10:23:43: -- Loading extension: window
2023-05-11 10:23:43: -- Loading extension: pathwatcher
2023-05-11 10:23:43: -- Loading extension: hotkey
2023-05-11 10:23:43:              hotkey: Enabled hotkey ⌘⌃`
2023-05-11 10:23:44: -- Loading extension: drawing
2023-05-11 10:23:44: -- Loading extension: console
2023-05-11 10:23:44: 10:23:44     hotkey: Enabled hotkey ✧0
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃⇧0
2023-05-11 10:23:44: -- Loading extension: grid
2023-05-11 10:23:44:              hotkey: Enabled hotkey F18
2023-05-11 10:23:44: -- Loading extension: screen
2023-05-11 10:23:44: -- Loading extensions: window.switcher
2023-05-11 10:23:44: -- Loading extensions: window.filter
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘SPACE
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃.
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃,
2023-05-11 10:23:44:              hotkey: Disabled previous hotkey ⌘⌃`
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃`
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃O
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⇧C
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘T
2023-05-11 10:23:44:              hotkey: Enabled hotkey ⌘⌃\
2023-05-11 10:23:44: -- Loading extension: application
2023-05-11 10:23:44: -- Loading extension: base64
2023-05-11 10:23:44:            apps.fnl:     app is now: kitty
2023-05-11 10:23:44: *** ERROR: attempt to index a nil value
stack traceback:
    [C]: in for iterator 'for iterator'
    ./lib/bind.fnl:44: in function 'lib.bind.bind-keys'
    (...tail calls...)
    ./lib/apps.fnl:129: in function <./lib/apps.fnl:126>
    (...tail calls...)
    ./lib/apps.fnl:162: in local 'sub'
    ./lib/statemachine.fnl:44: in function 'lib.statemachine.send'
    (...tail calls...)
    ./lib/apps.fnl:197: in function 'lib.apps.init'
    ./core.fnl:143: in upvalue 'f'
    ./lib/functional.fnl:155: in local 'f'
    ./lib/functional.fnl:135: in function 'lib.functional.reduce'
    (...tail calls...)
    ./core.fnl:145: in main chunk
    (...tail calls...)
    [C]: in function 'rawrequire'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:662: in function 'require'
    /Users/ag/.hammerspoon/init.lua:12: in main chunk
    [C]: in function 'xpcall'
    ...poon.app/Contents/Resources/extensions/hs/_coresetup.lua:723: in function 'hs._coresetup.setup'
    (...tail calls...)
agzam commented 1 year ago

Ah, I think I know the cause of it. It's my local thing. Oops, sorry.