Brew upgrade ran from another app error: undefined method `exitstatus' for nil #5710
Replies: 1 comment · 5 replies
-
Spitballing here, since you seem to have done the obvious checks and come up empty... Try changing your click script to:
then check the contents of those files against manual runs of |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for the pointer, @gromgit! The difference is pretty substantial, looks like these commands error out too: brew-doctor.log
brew-cfg.log
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Your (system?) Ruby might be b0rked. Try this click script:
and see if it gets you further. |
Beta Was this translation helpful? Give feedback.
All reactions
-
My ruby might be b0rked, I agree! Unfortunately your suggestion didn't take me much further, I appreciate your patience though! In the meantime, I also did some troubleshooting with ChatGPT - reinstalled ruby, cleaned up ruby and gem paths, installed open3 gem, ran a test script, cleaned up homebrew repo…not much progress but I eventually ran
brew-doctor.log
brew-cfg.log
brew update --debug output:
brew upgrade --debug output:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Just to be sure, what's the output of |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
I have a brew widget in my Sketchybar setup. What is important: when I click on widget icon, it attempts to run command
brew update && brew upgrade
And the
upgrade
command errors out. Note: if I run this command via terminal, it works normally.Here's my widget code:
Error output:
Here's what I tried:
brew shellenv; brew update && brew upgrade
as per this suggestion/opt/homebrew/bin/brew update && /opt/homebrew/bin/brew upgrade
"$(brew --repository)/Library/Contributions/examples"
directory doesn't exist on my system.OS: MacOs 15.1
Shell: zsh 5.9 (arm64-apple-darwin24.0)
Sketchybar: v2.21.0
I have a feeling something is wrong with my shell environment, but I don't know where to look. Any insight would be appreciated!!
Beta Was this translation helpful? Give feedback.
All reactions