Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

[Newbie] [Custom] AUR updates module broke after update (arch linux)

Open Sk7Str1p3 opened this issue 2 years ago • 20 comments

2024-09-12-224933_hyprshot my module structure. after update it suddenly stopped to work. is syntax bad or its waybar issue? and what should i do to fix it? (waybar-updates command exists)

Sk7Str1p3 avatar Sep 12 '24 20:09 Sk7Str1p3

Same problem here, looks like icon manual indexes are the problem

PaoloReyes avatar Sep 12 '24 20:09 PaoloReyes

Still not know how to solve it

PaoloReyes avatar Sep 12 '24 20:09 PaoloReyes

You can try running waybar on your terminal.

Mine is showing this image

PaoloReyes avatar Sep 12 '24 20:09 PaoloReyes

And my config is pretty similar to yours image

PaoloReyes avatar Sep 12 '24 20:09 PaoloReyes

Looks like the only change was an update on fmt dependency. Ill try downgrading and see if ti solves it

PaoloReyes avatar Sep 12 '24 20:09 PaoloReyes

fmt is the problem

derfehler avatar Sep 12 '24 21:09 derfehler

Yes, it is but i am not able to downgrade since breaks compiled libraries, I will just try to downgrade waybar

PaoloReyes avatar Sep 12 '24 21:09 PaoloReyes

Yes, it is but i am not able to downgrade since breaks compiled libraries, I will just try to downgrade waybar

Downgrading waybar won't solve anything, since it needs fmt version 10 to work, and that version was overwritten with 11 due to rolling release.

I've tried soft linking the library from version 11 to 10, but there were some symbols missing. Maybe running the version 10 in parallel would work, but I haven't tried that yet. https://gitlab.archlinux.org/archlinux/packaging/packages/fmt/-/tree/10.2.0-1

Either you could wait, or submit a PR with a fix. 😀

KorcakDaniel avatar Sep 12 '24 21:09 KorcakDaniel

I found a solution, downgrade fmt, spdlog and waybar. That solve it for me

PaoloReyes avatar Sep 12 '24 22:09 PaoloReyes

These are the versions that worked

spdlog: https://gitlab.archlinux.org/archlinux/packaging/packages/spdlog/-/tree/1.14.1-1?ref_type=tags fmt: https://gitlab.archlinux.org/archlinux/packaging/packages/fmt/-/tree/10.2.0-1 waybar: https://gitlab.archlinux.org/archlinux/packaging/packages/waybar/-/tree/0.10.4-2?ref_type=tags

PaoloReyes avatar Sep 12 '24 22:09 PaoloReyes

I managed to find a way to make this work without having to downgrade. It seems, the problem occurs when you set the format to be "{icon} {}". What I have done is to comment the format line out and instead pipe my update script into xargs and echo the icon and the number. My script is called pacman-updates so, I change the exec line to be pacman-updates | xargs -I{} echo 📦 {}. That, in my case, shows the updates as I expected to see them. Once the issue with fmt is fixed, all you need to do is uncomment the format property and reset exec to just call your script.

psa-anddev avatar Sep 13 '24 07:09 psa-anddev

Should be good with latest version (0.11.0)

Alexays avatar Sep 13 '24 07:09 Alexays

(it is not, in fact, good with the latest version)

image building waybar from the latest commit as of rn still has the same issue

kerichdev avatar Sep 13 '24 10:09 kerichdev

Should be good with latest version (0.11.0)

no, its not. just built waybar-git from aur [2024-09-13 15:31:49.908] [info] Using configuration file /home/Sk7Str1p3/.config/waybar/config.jsonc [2024-09-13 15:31:49.908] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop [2024-09-13 15:31:49.908] [info] Using CSS file /home/Sk7Str1p3/.config/waybar/style.css [2024-09-13 15:31:49.911] [info] Hyprland IPC starting [2024-09-13 15:31:49.911] [info] Loading persistent workspaces from Waybar config [2024-09-13 15:31:49.911] [info] Loading persistent workspaces from Hyprland workspace rules [2024-09-13 15:31:49.912] [warning] module cava: Unknown module: cava [2024-09-13 15:31:52.362] [error] custom/pacman: cannot switch from manual to automatic argument indexing version is Waybar v0.11.0-4-gd177969f (branch 'master')

Sk7Str1p3 avatar Sep 13 '24 12:09 Sk7Str1p3

this is s till an issue

waybar v0.11.0-4-gd177969f (branch 'master') alek@rocket  ~  hyprctl dispatch exec waybar ok alek@rocket  ~  killall waybar alek@rocket  ~  waybar [2024-09-13 17:10:22.819] [info] Using configuration file /home/alek/.config/waybar/config [2024-09-13 17:10:22.821] [info] Discovered appearance 'dark' [2024-09-13 17:10:22.821] [info] Using CSS file /home/alek/.config/waybar/style.css [2024-09-13 17:10:22.825] [info] Hyprland IPC starting [2024-09-13 17:10:22.826] [info] Loading persistent workspaces from Hyprland workspace rules [2024-09-13 17:10:22.892] [info] Found device AT Translated Set 2 keyboard at '/dev/input/event2' [2024-09-13 17:10:23.462] [info] Found device Keychron Keychron K2 at '/dev/input/event10' [2024-09-13 17:10:23.816] [info] Bar configured (width: 3840, height: 37) for output: HDMI-A-1 [2024-09-13 17:10:23.816] [info] Bar configured (width: 3840, height: 30) for output: HDMI-A-1 /usr/bin/waybar-updates: line 185: [: : integer expression expected /usr/bin/waybar-updates: line 185: [: : integer expression expected [2024-09-13 17:10:25.012] [error] custom/pacman: cannot switch from manual to automatic argument indexing

waybar-updates still broken

alekgr avatar Sep 13 '24 22:09 alekgr

So @Alexays nothing changed. It still says "cannot switch from manual to automatic argument indexing". Latest working version - 0.10.4-2

Sk7Str1p3 avatar Sep 15 '24 11:09 Sk7Str1p3

So @Alexays nothing changed. It still says "cannot switch from manual to automatic argument indexing". Latest working version - 0.10.4-2

I was having that issue for days on end and was also thinking the new version didn't fix it. However, I solved it by deleting the binaries from the waybar package manually and reinstalling. Seems that on Arch at least pacman doesn't rebuild them for some reason, even though I had specified to perform a clean build.

You can use pacman -Ql waybar to see which files the package has in /usr/bin, remove them and reinstall if you are on Arch.

Koko2110 avatar Sep 30 '24 05:09 Koko2110

I had the same error cannot switch from manual to automatic argument indexing. What actually fixed was to change "format": "{icon} {}" to "format": "{} {icon}" on my pacman custom module and change "format": "{icon} {text}" to "format": "{} {icon}" on my custom media module, which comes from the default config file.

justbispo avatar Oct 18 '24 17:10 justbispo

I am the maintainer of waybar-updates, this format should fix integer issue "format": "{icon}{0}"

savely-krasovsky avatar Feb 26 '25 13:02 savely-krasovsky

I think issue is solved

Sk7Str1p3 avatar Feb 26 '25 14:02 Sk7Str1p3