AdamWagner / stackline

Visualize yabai window stacks on macOS. Works with yabai & hammerspoon.
944 stars 47 forks source link

I can't initialize stackline. #82

Closed oishikimchi97 closed 3 years ago

oishikimchi97 commented 3 years ago

Hi, I think It's really helpful UI for checking stacks. But, I have crushed on some error.

I installed yabai, hammerspoon, and stackline following your instruction, but I had a message during reloading config as below.

2021-06-13 17:06:51: -- Lazy extension loading enabled
2021-06-13 17:06:51: -- Loading ~/.hammerspoon/init.lua
2021-06-13 17:06:51: -- Loading extension: window
2021-06-13 17:06:51: -- Loading extensions: window.filter
2021-06-13 17:06:51: -- Loading extension: timer
2021-06-13 17:06:51: -- Loading extension: logger
2021-06-13 17:06:51: -- Loading extension: eventtap
2021-06-13 17:06:51: 17:06:51  stackline: Loading module: stackline
2021-06-13 17:06:51:               utils: Loading module: utils
2021-06-13 17:06:51: -- Loading extension: fnutils
2021-06-13 17:06:51:           configmgr: Loading module: stackline.configmanager
2021-06-13 17:06:51:              window: Loading module: window
2021-06-13 17:06:51: -- Loading extension: spaces
2021-06-13 17:06:51:           stackline: Initializing stackline
2021-06-13 17:06:51:           configmgr: Initializing configmanager…
2021-06-13 17:06:51: -- Loading extension: inspect
2021-06-13 17:06:51:           configmgr: ✓ Conf validated successfully
2021-06-13 17:06:51:               query: Loading module: query
2021-06-13 17:06:51:          stackmanag: Running update()
2021-06-13 17:06:51:              window: Window:new(131508)
2021-06-13 17:06:51:              window: Window:new(134360)
2021-06-13 17:06:51:              window: Window:new(127041)
2021-06-13 17:06:51:              window: Window:new(126352)
2021-06-13 17:06:51:               query: Refreshing stackline
2021-06-13 17:06:51: -- Loading extension: task
2021-06-13 17:06:51: 17:06:51 ** Warning:   LuaSkin: hs.task:launch() Unable to launch hs.task process: launch path not accessible

My environments is as followed.

OS: Bigsur 11.4

Yabai: 3.3.10v

Hammerspoon: 0.9.90v

Stackline: v0.1.61

Terminal: Zsh (Iterm2)

init.lua

#Stackline
stackline = require "stackline"
stackline:init()

The structure of Hammerspon directory

├── Spoons
├── hs
├── init.lua
└── stackline
    ├── README.md
    ├── conf.lua
    ├── init.lua
    ├── lib
    │   ├── utils.lua
    │   └── valid.lua
    └── stackline
        ├── configmanager.lua
        ├── query.lua
        ├── stack.lua
        ├── stackline.lua
        ├── stackmanager.lua
        └── window.lua
HyunggyuJang commented 3 years ago

I guess you are using silicon mac, M1 rather than intel version. Then you should tweak the default configuration file, which is metioned at this wiki entry. In short, modify the line in conf.lua:

c.paths.yabai                         = '/usr/local/bin/yabai'

to

c.paths.yabai                         = '/opt/homebrew/bin/yabai'

or so, if you installed yabai from homebrew. Think it’ll solve your problem.

oishikimchi97 commented 3 years ago

@HyunggyuJang I can solve this problem with this. Thank for your kindness!

SGarcia710 commented 2 years ago

I guess you are using silicon mac, M1 rather than intel version. Then you should tweak the default configuration file, which is metioned at this wiki entry. In short, modify the line in conf.lua:

c.paths.yabai                         = '/usr/local/bin/yabai'

to

c.paths.yabai                         = '/opt/homebrew/bin/yabai'

or so, if you installed yabai from homebrew. Think it’ll solve your problem.

working! Thank you!