Open pedromfedricci opened 9 months ago
Some possible solutions that I could think of (other designs and ideas are welcome):
I'm experiencing this too.
Also a question, so we need to wait 1 minute for the session to be cached?
If I create a session, issue some random command and then quit with Ctrl + q then I can't see the session with zellij ls
Yeah you need to wait for at least the serialization_interval's value (default 60 seconds) and session_serialization must be set to true (which is the default value).
Yeah you need to wait for at least the serialization_interval's value (default 60 seconds) and session_serialization must be set to true (which is the default value).
Thanks! Can this time be configured? Do not see it in the docs.
It is not in the docs page yet, but you can add to your config.kdl like this (value is in seconds):
serialization_interval 300
Could you release a gnu-linux binary at least until this is fixed?
I don't think a gnu based binary release is planned. The musl based one is convenient and easy enough to distribute, since it's all statically linked. The zellij package from your distribution is very likely built from source, targeting linux-gnu though. Another option is to build it yourself, I think that would only require you to install a Rust toolchain.
2. Issues with the Zellij UI / behavior / crash
Basic information
binary
: https://github.com/zellij-org/zellij/releases/download/v0.39.2/zellij-x86_64-unknown-linux-musl.tar.gzzellij --version
: zellij 0.39.2libc
: musl libc v1.1.24cross
: ghcr.io/cross-rs/x86_64-unknown-linux-musl:0.2.5Issue description
The recent Session Resurrection features (CLI and Session Manager) fail to read the creation time (ctime) for exited session files on musl libc since both Rust's std and the libc crate do not support it. Libc only supports statx for gnu and so std does not provide statx for musl. Because of this, the ReadAllSessionInfosOnMachine background job will always send the value 0 (Duration's default) as the current duration for exited sessions, code location.
Zellij ls
Zellij session-manager
Since the ReadAllSessionInfosOnMachine background job fetches session data in a loop, this issue also happens to fill the log file with
Failed to read created stamp of resurrection file: Error { kind: Unsupported, message: "creation time is not available on this platform currently"
quite fast, writing a new entry for every tick (default 1sec) x no. of active sessions x no. of exited sessions with a session-layout.kdl file.Minimal reproduction
<your_path>/zellij
ls ~/.cache/zellij/0.39.2/session_info/*
<your_path>/zellij ls
(created: 0s ago is incorrect)tail -f /tmp/zellij-1000/zellij-log/zellij.log
Other relevant information
Building Zellij in a linux/gnu environment (
cargo build --release
orcargo install zellij
) does not have such issues.