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

zjstatus plugin does not appear in new sesssion until after session-serialization interval #2937

Closed
mike-lloyd03 opened this issue Nov 13, 2023 · 2 comments

Comments

@mike-lloyd03
Copy link
Contributor

On 0.39.1, zjstatus plugin does not always immediately display when a new session starts. Probably about half the time it appears immediately. If it does not appear immediately, it will appear after whatever time is configured for the session-serialization interval.

Basic information

zellij --version: zellij 0.39.1
stty size: 91 242
uname -av or ver(Windows): Linux dev 6.5.6-arch2-1 #1 SMP PREEMPT_DYNAMIC Sat, 07 Oct 2023 08:14:55 +0000 x86_64 GNU/Linux

Zellij Log

ERROR  |zellij_server::plugins   | 2023-11-13 12:28:00.423 [wasm      ] [zellij-server/src/plugins/mod.rs:432]: Plugin with id: 0 not found
INFO   |zellij_server::plugins::p| 2023-11-13 12:28:00.448 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:495]: Loaded plugin '/home/mike/.config/zellij/plugins/zjstatus.wasm' from cache folder at '/home/mike/.cache/zellij' in 23.677042ms
INFO   |zellij_server            | 2023-11-13 12:28:00.449 [async-std/runti] [zellij-server/src/lib.rs:919]: Compiling plugins using Cranelift
ERROR  |zellij_server::background| 2023-11-13 12:28:11.605 [async-std/runti] [zellij-server/src/background_jobs.rs:424]: Failed to read created stamp of resurrection file: Os { code: 2, kind: NotFound, message: "No such file or directory" }

The last line of the log entry repeats multiple times.

I've also opened a ticket with zjstatus

@dj95
Copy link
Contributor

dj95 commented Nov 13, 2023

This issue can be closed. It occurred because I tried to implement some kind of suspend behaviour, which does not render the plugin, when the client is detached. However, with the latest release, the session information I used with the information how many clients are connected to the sessions get's updated too late (in the next cycle of the session serialisation I guess), which suspended rendering the plugin.

@mike-lloyd03
Copy link
Contributor Author

Thanks @dj95 I wasn't sure if this was a zellij issue or a zjstatus issue. I appreciate the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants