hyprland-community / hyprland-autoname-workspaces

Hyprland autoname workspaces 🪟 [maintainers=@cyrinux,@maximbaz]
ISC License
199 stars 7 forks source link

[BUG] Crash on group creation #21

Closed MathisP75 closed 1 year ago

MathisP75 commented 1 year ago

Creating a group in hyprland causes a crash with message:

thread "main" panicked at 'called 'Result:: unwrap() on an 'Err value: SerdeError(Error ("invalid type: string \"0x419ad760\", expected struct Client", line: 39, column: 28))", src/renamer/mod.rs:32:38

Using hyprland-nvidia

cyrinux commented 1 year ago

Hi @MathisP75 , can you pastebin me your config please? Do you use the AUR package or you install it with cargo install? What is the output of hyprland-autoname-workspaces --version ?

MathisP75 commented 1 year ago

I installed is using the AUR

The output is hyprland-autoname-workspaces 0.3.6

My config:

[icons]
# Add your icons mapping
# use double quote the key and the value
# take class name from 'hyprctl clients'
"DEFAULT" = ""
"kitty" = ""
"firefox" = ""
"code-oss" = "󰨞"
"org.pwmt.zathura" = ""
"thunar" = ""
"Webcord" = "󰙯"
"com.obsproject.Studio" = "󰻂"
"spotify" = ""
"Joplin" = "󱞁"
"Gimp-2.10" = ""

# Add your applications that need to be exclude
# The key is the class, the value is the title.
# You can put an empty title to exclude based on
# class name only, "" make the job.
[exclude]
class = "title"
cyrinux commented 1 year ago

Hmm 🤔 It looks good. Do you well use the Unicode char for your emoji? - I will be able to test tomorrow.

cyrinux commented 1 year ago

Sorry I can't reproduce,, the config you give me works for me. Is it really the full config you use ? Can you maybe find what config line make it crash by putting in comment half of the icons list ? Is it reproducible ? What's the char 0x419ad760 ?

cyrinux commented 1 year ago

Ha, I reproduce now, it feel like the hyprland-rs doesn't know well the Clients struct when some window are toggle. I will try to fix this.

cyrinux commented 1 year ago

@MathisP75 please update and tell me how it goes. It's should be fix now.

MathisP75 commented 1 year ago

Seems to be fixed!

MathisP75 commented 1 year ago

Thank you!