-
Notifications
You must be signed in to change notification settings - Fork 55
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
Client::get_active()
doesn't work
#124
Comments
@yavko ? |
I checked against some recent commits and found that this commit broke serializing the json into ActiveWindow seems like i64 is the correct type for monitor-ids Here is a history which commits are broken:
|
Omg how did I never get notified about this issue.... |
I can't decide on what type to use for that damn field. People keep submitting pull requests that "fix" it, but only fix it for them. Honestly, I can't even debug this as I'm temporarily not on linux. So I need someone else to figure this out for me |
fixing hyprland-community#124 (Client::get_active() doesn't work)
this is a known bug with serde (serde-rs/serde#1682) |
Hi @yavko, when is the next release scheduled? |
I'll create a new release when I get home |
There was a release yesterday btw |
… inside client is also i128. [Discussed in this Issue](hyprland-community#124).
Calling the method with an active window present results in smth like that:
And when there's none, everything works fine:
Attempts at debugging showed that the problem is with trying to deserialize json into
ActiveWindow
. Maybe it'd be easier to manually check if the result [edit: of the ipc call] is empty instead of doing that proxy struct thingy?In case of inability to replicate: I'm on NixOS, and
hyprctl version
saysAlso, if I manually feed
serde
with an output ofhyprctl activewindow -j
, it is able to parse the output into structs provided by the crate.[edit: Also^2: the
data
variable right before parsing looks fine whenprint
ed fromrust-gdb
.][edit: just in case, here's an asciinema recording]
The text was updated successfully, but these errors were encountered: