donovanglover / hyprnome

GNOME-like workspace switching in Hyprland.
https://donovan.is/hyprnome
GNU General Public License v3.0
120 stars 3 forks source link

Hyprnome 0.2.0 stopped working for latest Hyprland #80

Closed maxhbr closed 4 months ago

maxhbr commented 4 months ago

Bug Report

Environment

Expected Behavior

It should do something and not fail with an error.

Current Behavior

$ RUST_BACKTRACE=full hyprnome
thread 'main' panicked at /build/hyprnome-0.2.0-vendor.tar.gz/hyprland/src/data/regular.rs:31:19:
A error occured while parsing the output from the hypr socket: IoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
stack backtrace:
   0:     0x55a0a746a587 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h83d3e31f1809523c
   1:     0x55a0a749a650 - core::fmt::write::h76573a5842288faa
   2:     0x55a0a7482bf5 - std::io::Write::write_fmt::hb095d534967ab243
   3:     0x55a0a746a354 - std::sys_common::backtrace::print::h73765b495122298a
   4:     0x55a0a746aec7 - std::panicking::default_hook::{{closure}}::hfad133b7877f7d1a
   5:     0x55a0a746ac27 - std::panicking::default_hook::hb7ccbed45ddd154f
   6:     0x55a0a746b438 - std::panicking::rust_panic_with_hook::h03308f3977d70e82
   7:     0x55a0a746b31a - std::panicking::begin_panic_handler::{{closure}}::h6543c8dd74f459e9
   8:     0x55a0a746a7b6 - std::sys_common::backtrace::__rust_end_short_backtrace::h68617e661e847078
   9:     0x55a0a746b064 - rust_begin_unwind
  10:     0x55a0a73d79f5 - core::panicking::panic_fmt::hf7f647d933c4266a
  11:     0x55a0a73f48cb - hyprland::data::regular::call_hyprctl_data_cmd::ha1ee459508ef4ea7
  12:     0x55a0a73f54b7 - <hyprland::data::regular::Workspaces as hyprland::shared::HyprData>::get::hb17d8af12f2aa080
  13:     0x55a0a73e5327 - hyprnome::WorkspaceState::new::h64014f23a8cc455d
  14:     0x55a0a73e5c13 - hyprnome::get_id::h5f6a05ba4d6e75b4
  15:     0x55a0a73df9de - hyprnome::main::heee7fa6b436cca98
  16:     0x55a0a73e1f26 - std::sys_common::backtrace::__rust_begin_short_backtrace::h902f6187786ef280
  17:     0x55a0a73e08c5 - std::rt::lang_start::{{closure}}::h62f19fba672c8d66
  18:     0x55a0a746af64 - std::panicking::try::hbc3e77d512204ae2
  19:     0x55a0a746010b - std::rt::lang_start_internal::hf04efd76000e5213
  20:     0x55a0a73dfbc5 - main
  21:     0x7fc35167f10e - __libc_start_call_main
  22:     0x7fc35167f1c9 - __libc_start_main@@GLIBC_2.34
  23:     0x55a0a73d8235 - _start
  24:                0x0 - <unknown>

Step to Reproduce

just run hyprnome in that setup

Priorities

Add a :+1: reaction to issues you find important.

donovanglover commented 4 months ago

Should be fixed in https://github.com/donovanglover/hyprnome/commit/a037a51f09e784b48856603737d85bee3d07f470

Edit: Nevermind some breaking changes in the update. Will revert this for now and fix later.

Can you try https://github.com/donovanglover/hyprnome/commit/f185e6dbd7cfcb3ecc11471fab7d2be374bd5b28 and let me know if it works?

luyu-wu commented 4 months ago

LGTM, works now when building with cargo!

Many thanks.

maxhbr commented 4 months ago

Will try it later. But thanks already for the fast reaction and prompt fix of the issue. :pray:

maxhbr commented 4 months ago

I installed that version in my config and it work great:

https://github.com/maxhbr/myconfig/blob/35784ab8f375ad07ddcb43898e94cc42a07afcf2/modules/myconfig.desktop.wayland.hyprland/default.nix#L12-L25