Skip to content
New issue

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

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

Open
TSOT7 opened this issue May 16, 2024 · 5 comments
Open

Comments

@TSOT7
Copy link

TSOT7 commented May 16, 2024

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
Copy link
Owner

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

@TSOT7
Copy link
Author

TSOT7 commented May 21, 2024

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

@adrien-barret
Copy link

adrien-barret commented Jun 3, 2024

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
Copy link

ppiwo commented Jun 9, 2024

@Jean-Tinland
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants