New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic from workspace event listener #5
Comments
Yeah I've already fixed this in 0.3.0 of hyprland-rs that I'm working on, should be out soon! |
Well soon didn't age well... Well anyways I hope and I say hope I'll be able to get by the end of the week, no promises |
Hey i just entered a week break, expect new release soon |
Update: Hyprland stopped working for me in my NixOS install (where I was developing |
This issue has been fixed in master. hyprland = { git = "https://github.com/hyprland-community/hyprland-rs.git" } |
I appreciate your work on this! |
Hey, I'm integrating this library into ironbar for JakeStanger/ironbar#18 and I've hit a bug:
When creating and switching to a new workspace, the event listener receives the added event and the change event. It appears when you then open a program (in this case
kitty
) it panics.This can be reproduced simply by starting the program, using
hyperctl dispatch workspace 4
(or the number of any workspace that does not currently exist), and then opening a window in the new workspace.Minimal code to reproduce:
Stdout and the relevant part of the backtrace:
The line that's crashing is here:
https://github.com/yavko/hyprland-rs/blob/0f1b676924d9a614278f2a7e3bf4284369de64e1/src/event_listener/shared.rs#L228
It looks like perhaps there's another event being received after those two that is unsupported?
Hyprland version:
hyprland-git r1728.7a775c0-1
Library version:
0.2.4
As an aside, it'd probably be better to return an
Err
rather than panic in the library, so binaries can control how to handle the error.The text was updated successfully, but these errors were encountered: