Skip to content
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

[BUG] Reloaded config not applying #1283

Open
3 tasks done
andreyyao opened this issue Feb 8, 2025 · 3 comments
Open
3 tasks done

[BUG] Reloaded config not applying #1283

andreyyao opened this issue Feb 8, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@andreyyao
Copy link

Checklist before submitting an issue

  • I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • I have specifically verified that this bug is not a common user error
  • I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

I am following the quickstart guide from the documentation and encountered the issue of changes to the configuration not applying to the displayed widget.

Here is my configuration file at $HOME/.config/eww.yuck:

(defwindow example
           :monitor 0
           :geometry (geometry :x "0%"
                               :y "10px"
                               :width "99%"
                               :height "30px"
                               :anchor "top center")
           :exclusive true
   "Hello world")

If I run ./eww daemon; ./eww open example, the widget shows up as expected

The issue:

However, when I make any changes to the config file, for example by changing "Hello world" to "test", the displayed widget doesn't change at all. I also tried changing the height, width, etc., to no avail. I tried fixing this issue by manually calling ./eww reload, but still nothing in the displayed widget changes.

I called ./eww logs can confirmed that eww thinks it was reloading the config file:

 2025-02-08T20:16:42.184Z INFO  eww::ipc_server > IPC server initialized
 2025-02-08T20:16:45.411Z INFO  eww::app        > Opening window example as 'example'
 2025-02-08T20:16:51.727Z INFO  eww::app        > Reloading windows
 2025-02-08T20:16:51.754Z INFO  eww::app        > Opening window example as 'example'
 2025-02-08T20:16:51.755Z INFO  eww::server     > Reloaded config successfully
 2025-02-08T20:16:54.225Z INFO  eww::app        > Reloading windows
 2025-02-08T20:16:54.253Z INFO  eww::app        > Opening window example as 'example'
 2025-02-08T20:16:54.254Z INFO  eww::server     > Reloaded config successfully

After rebooting my system, the issue persists. I also tried reloading sway config, but that didn't help either. Since eww thinks it reloaded the config, I believe the issue is with displaying the updated widget.

Temporary workaround:

Restarting the eww daemon by ./eww kill; ./eww daemon; ./eww open example renders the updated widget.

Reproducing the issue

No response

Expected behaviour

Eww displaying the updated widget.

Additional context

No response

Platform and environment

  • OS: Arch Linux x86_64
  • Kernel: Linux 6.13.1-arch1-1
  • WM: Sway 1.10.1 (Wayland)
  • Shell: fish 3.7.1
  • GPU: AMD Radeon RX 7700S

I made sure to build with cargo build --release --no-default-features --features=wayland

@andreyyao andreyyao added the bug Something isn't working label Feb 8, 2025
@andreyyao
Copy link
Author

Edit: The issue disappeared when I used the eww package from the Arch AUR. I am still leaving it open for now because it's weird it didn't work when compiled from the source from this repo.

@wioo
Copy link

wioo commented Feb 10, 2025

I would guess commit b6b7bc8 broke eww reloading.

I have reverted to 593a4f4, before all the latest changes.

@gh0stzk
Copy link

gh0stzk commented Feb 13, 2025

Hello, with last commit if i update the css, the widget upload the config without a problem, but the widget doesnt close as the video shows:

412645363-f5d2b592-ae94-4b86-b2f9-5228d9ece510.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants