zjstatus icon indicating copy to clipboard operation
zjstatus copied to clipboard

zjstatus breaks zellij

Open brandonzylstra opened this issue 1 year ago • 1 comments

Describe the bug

Every attempt to use zjstatus has caused Zellij to fail to open, giving me the message "Received empty message from server".

To Reproduce

Steps to reproduce the behavior:

  1. Replace "zellij:status-bar" with "https://github.com/dj95/zjstatus/releases/latest/download/zjstatus.wasm" in config.kdl
  2. Start Zellij
  3. Observe message, and failure to open.

Here's what the plugin section of your configuration will look like after the change described above:

plugins {
  tab-bar         location="zellij:tab-bar"
  // status-bar      location="zellij:status-bar"
  status-bar      location="https://github.com/dj95/zjstatus/releases/latest/download/zjstatus.wasm"
  strider         location="zellij:strider"
  compact-bar     location="zellij:compact-bar"
  session-manager location="zellij:session-manager"
  welcome-screen  location="zellij:session-manager" {
    welcome_screen true
  }
  filepicker      location="zellij:strider" {
    cwd "/"
  }
}

Expected behavior

I expected Zellij to open with the new status bar.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS 14.7 (23H124)
  • zellij 0.40.1
  • zjstatus version is the version in the URL above as of 2024-10-09, which seems to be Release v0.17.0

Layout

There's no layout to show, because Zellij fails to open.

brandonzylstra avatar Oct 09 '24 19:10 brandonzylstra

Hi and thanks for your bug report.

Have you tried loading zjstatus from file? Loading it via https (especially on macOS) is in my experience unreliable in zellij. That's why I added warnings for the https locations into the documentation.

When the crash is before the permission prompt, it is a bug in zellij itself and I cannot really do much about it on the zjstatus side. AFAIK there's a change in the http client in the next release. Maybe this one will help to make it more reliable.

dj95 avatar Oct 09 '24 19:10 dj95

Thanks for your response!

I tested with a manually downloaded wasm file, and with a more detailed configuration for zjstatus, and it worked perfectly. So perhaps the problem is with Zellij's built-in downloading 🤷🏼‍♂️.

brandonzylstra avatar Oct 10 '24 15:10 brandonzylstra