Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Error "simple-bar-index.jsx: Something went wrong..." with custom yabaiPath #401

Open TSOT7 opened 6 months ago

TSOT7 commented 6 months ago

After modifying the yabaiPath variable in index.jsx to "/opt/homebrew/bin/yabai", I encounter an error message at the top of my screen that reads "simple-index.jsx: Something went wrong...". This error is occuring no matter what I do. I am on a m2 air.

image
Jean-Tinland commented 6 months ago

Did you use the correct yabai path? It should be the output of which yabai.

TSOT7 commented 5 months ago

Yes it is correct, I ran which yabai and it matches the path I have in index.jsx.

adrien-barret commented 5 months ago

same error (m3 sonoma)

git clone https://github.com/Jean-Tinland/simple-bar $HOME/Library/Application\ Support/Übersicht/widgets/simple-bar                                                         <aws:default> <region:us-west-2>
Cloning into '/Users/adrien/Library/Application Support/Übersicht/widgets/simple-bar'...
remote: Enumerating objects: 6810, done.
remote: Counting objects: 100% (2407/2407), done.
remote: Compressing objects: 100% (375/375), done.
remote: Total 6810 (delta 2106), reused 2109 (delta 2031), pack-reused 4403
Receiving objects: 100% (6810/6810), 30.51 MiB | 51.82 MiB/s, done.
Resolving deltas: 100% (4824/4824), done.
const {
  yabaiPath = "/opt/homebrew/bin/yabai",
[Error] Error in spaces.jsx – Error: simple-bar/lib/scripts/init.sh: line 14: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 16: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 17: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 18: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 21: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 25: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 29: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 32: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 33: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 34: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 35: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 36: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 37: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 40: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 43: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 44: [: -ge: unary operator expected
{ "spaces": , "windows": , "displays": , "SIP": "System Integrity Protection status: enabled.", "shadow": "", "skhdMode": {} } — client.js:1:903834
Error: simple-bar/lib/scripts/init.sh: line 14: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 16: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 17: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 18: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 21: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 25: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 29: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 32: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 33: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 34: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 35: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 36: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 37: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 40: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 43: /usr/local/bin/yabai: No such file or directory
simple-bar/lib/scripts/init.sh: line 44: [: -ge: unary operator expected
{ "spaces": , "windows": , "displays": , "SIP": "System Integrity Protection status: enabled.", "shadow": "", "skhdMode": {} } — client.js:1:903834wrapError — client.js:1:903834(anonymous function) — client.js:1:904229
    render (simple-bar-index-jsx:10325)
    render (client.js:1:894888)
    redraw (client.js:1:891051)
ppiwo commented 5 months ago

I had to update it here as well https://github.com/Jean-Tinland/simple-bar/blob/master/lib/settings.js#L529

Jean-Tinland commented 4 months ago

This is weird as the line you referred in your message is the default setting which should be overridden by this setting:

image

I'll let you close this issue if everything is working fine now :)