swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.93k stars 92 forks source link

No plugin updates #259

Closed fenhl closed 2 years ago

fenhl commented 2 years ago

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.

fenhl commented 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.

melonamin commented 2 years ago

hey, I need more info than this.

Have you looked at logs in Console or better Plugin Debug view?

fenhl commented 2 years ago

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.

melonamin commented 2 years ago

Please double check that you have PluginDebugMode = 1; line:

CleanShot 2021-12-29 at 09 09 14@2x

Then you should see Debug Plugin:

CleanShot 2021-12-29 at 09 08 39@2x

If this doesn't work, try nuking the preferences completely(or complete re-install of SwiftBar)

joeshaw commented 2 years ago

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:

image

I am running macOS Monterey 12.1 on a 2019 Intel Macbook Pro.

joeshaw commented 2 years ago

Things work if I downgrade to 1.4.0. (I had to skip 1.4.1 because the stderr issue broke plugin output.)

melonamin commented 2 years ago

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...

SwiftBar.app.zip

fenhl commented 2 years ago

I am seeing similar symptoms, debug logs are showing the updates. The test build does not fix the issue.

fenhl commented 2 years ago

Seeing this issue on 1.4.1 as well, so I downgraded to 1.4.0 for now.

melonamin commented 2 years ago

Ok, another one SwiftBar.app.zip

fenhl commented 2 years ago

No change.

melonamin commented 2 years ago

@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.

fenhl commented 2 years ago

https://github.com/fenhl/bitbar-twitch was one of them.

melonamin commented 2 years ago

I have hight hopes for this build SwiftBar.zip

p.s. this plugin is AWESOME, it'll live in my menu bar

fenhl commented 2 years ago

Seems to be fixed!

joeshaw commented 2 years ago

Yep, this fixes it for me too. Thanks!