Closed fenhl closed 2 years ago
After quitting and restarting SwiftBar, some of my plugins are now having similar behavior but with the “…” icon, i.e. they're displaying the initial loading state.
hey, I need more info than this.
Have you looked at logs in Console or better Plugin Debug view?
Nothing unusual in Console, just “Successfully executed script” for all of my plugins.
How do I access the Plugin Debug view? I ran defaults write com.ameba.SwiftBar PluginDebugMode -bool YES
and relaunched SwiftBar but I don't see anything in the GUI.
Please double check that you have PluginDebugMode = 1;
line:
Then you should see Debug Plugin
:
If this doesn't work, try nuking the preferences completely(or complete re-install of SwiftBar)
I'm seeing this as well. Only 1 of the 3 scripts I run updates in the menubar. The one that does is a bash script that runs every 5s. The other two are compiled Go programs, one of which runs every 5s and the other every 30s.
In Console.app, the logs report that every script executes successfully. No other log messages.
I've enabled debug mode, and the script is running and returning output, but the menubar UI isn't being updated with the contents of the script. (It is, however, updating the "Updated x Seconds Ago" menubar item.)
I have no metadata associated with the plugin. The environment looks pretty normal to me:
I am running macOS Monterey 12.1 on a 2019 Intel Macbook Pro.
Things work if I downgrade to 1.4.0. (I had to skip 1.4.1 because the stderr issue broke plugin output.)
It is, however, updating the "Updated x Seconds Ago" menubar item
Weird 🤨
I'm working on it, so far no luck. Between 1.4.0 and 1.4.2 I've changed how plugins are executed, since you can see the correct output in the Debug View - it works ok.
I tried one thing, can you please test this build and see if anything is different. I don't know how to write a good test for this...
I am seeing similar symptoms, debug logs are showing the updates. The test build does not fix the issue.
Seeing this issue on 1.4.1 as well, so I downgraded to 1.4.0 for now.
Ok, another one SwiftBar.app.zip
No change.
@fenhl @joeshaw can you share any of your plugins that behaves funny in 1.4.2?
I can't reproduce this in any way... and staring into version diff doesn't help.
https://github.com/fenhl/bitbar-twitch was one of them.
I have hight hopes for this build SwiftBar.zip
p.s. this plugin is AWESOME, it'll live in my menu bar
Seems to be fixed!
Yep, this fixes it for me too. Thanks!
Since updating to SwiftBar 1.4.2, my plugins are no longer updating automatically. For example, one of them says “last updated 39 seconds ago” (resetting to 0 every minute as specified) but the actual content is several hours old. Manually refreshing all plugins does nothing.