zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Zellij can't find built in plugins

Open wyattjsmith1 opened this issue 2 years ago • 8 comments

From a brand new Mac M1, I ran brew install zellij. When running zellij with my configuration OR zellij setup --clean, I get the following:

zsh ❯ zellij setup --clean

Error occurred in server:

  × Thread 'wasm' panicked.
  ├─▶ Originating Thread(s)
  │     1. ipc_server: NewClient
  │     2. pty_thread: NewTab
  │     3. screen_thread: NewTab
  │     4. plugin_thread: Load
  │
  ├─▶ At zellij-server/src/wasm_vm.rs:236:28
  ╰─▶ Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) }
  help: If you are seeing this message, it means that something went wrong.
        Please report this error to the github issue.
        (https://github.com/zellij-org/zellij/issues)

        Also, if you want to see the backtrace, you can set the `RUST_BACKTRACE` environment variable to `1`.

I read a similar ticket https://github.com/zellij-org/zellij/issues/1327, but this seemed unrelated as it involved a manual install, whereas this is installed through brew.

On another note, I attempted this using brew on Windows through WLS (I know, this seems like a terrible idea), and I had the same result. At first, I thought it was because I was using a Mac package manager on a Linux system run on Windows, but this setup is a brand new Mac.

Info:

✖1 zsh ❯ zellij --version
zellij 0.31.4

✖2 zsh ❯ zellij setup --check
[Version]: "0.31.4"
[CONFIG DIR]: "/Users/wys/.config/zellij"
[CONFIG FILE]: "/Users/wys/.config/zellij/config.yaml"
[CONFIG FILE]: Well defined.
[DATA DIR]: "/Users/wys/Library/Application Support/org.Zellij-Contributors.Zellij"
[PLUGIN DIR]: "/Users/wys/Library/Application Support/org.Zellij-Contributors.Zellij/plugins"
[LAYOUT DIR]: "/Users/wys/.config/zellij/layouts"
[THEME DIR]: "/Users/wys/.config/zellij/themes"
[SYSTEM DATA DIR]: "/usr/share/zellij"
[ARROW SEPARATOR]: 
 Is the [ARROW_SEPARATOR] displayed correctly?
 If not you may want to either start zellij with a compatible mode: 'zellij options --simplified-ui true'
 Or check the font that is in use:
 https://zellij.dev/documentation/compatibility.html#the-status-bar-fonts-dont-render-correctly
[MOUSE INTERACTION]:
 Can be temporarily disabled through pressing the [SHIFT] key.
 If that doesn't fix any issues consider to disable the mouse handling of zellij: 'zellij options --disable-mouse-mode'
[DEFAULT EDITOR]: nvim
[FEATURES]: []
[DOCUMENTATION]: zellij.dev/documentation

I'd like to note that PLUGIN DIR contains an empty data directory. Is there something I'm missing regarding installing the default plugins?

wyattjsmith1 avatar Sep 20 '22 18:09 wyattjsmith1

Hey - this is indeed a little odd. Zellij is supposed to populate the PLUGIN_DIR at runtime... could it be that it does not have write permissions for it or some such?

imsnif avatar Sep 21 '22 06:09 imsnif

Hmm... here are the permissions. Owner should have write for all. I assume this wouldn't get executed by another user:

zsh ❯ ls -al '/Users/wys/Library/Application Support/org.Zellij-Contributors.Zellij/plugins'
total 0
drwxr-xr-x  3 wys  staff  96 Sep 20 11:31 .
drwxr-xr-x  3 wys  staff  96 Sep 20 10:51 ..
drwxr-xr-x  2 wys  staff  64 Sep 20 11:31 data

wyattjsmith1 avatar Sep 21 '22 17:09 wyattjsmith1

If you try to run Zellij with --data-dir /tmp/temporary-zellij-data-dir (possible creating said folder first), does it work?

imsnif avatar Sep 21 '22 19:09 imsnif

/dotfiles on  main +10 -57 [✘!] took 3s114ms
zsh ❯ mkdir /tmp/temporary-zellij-data-dir

/dotfiles on  main +10 -57 [✘!] took 12ms
zsh ❯ zellij --data-dir /tmp/temporary-zellij-data-dir

Error occurred in server:

  × Thread 'wasm' panicked.
  ├─▶ Originating Thread(s)
  │     1. ipc_server: NewClient
  │     2. pty_thread: NewTab
  │     3. screen_thread: NewTab
  │     4. plugin_thread: Load
  │
  ├─▶ At zellij-server/src/wasm_vm.rs:236:28
  ╰─▶ Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) }
  help: If you are seeing this message, it means that something went wrong.
        Please report this error to the github issue.
        (https://github.com/zellij-org/zellij/issues)

        Also, if you want to see the backtrace, you can set the `RUST_BACKTRACE` environment variable to `1`.

wyattjsmith1 avatar Sep 21 '22 19:09 wyattjsmith1

Very odd... could you share how you installed Zellij?

imsnif avatar Sep 21 '22 19:09 imsnif

I just noticed you mentioned you installed from brew in the original issue. I must admit I'm a little stumped by this - it seems like the executable you have does not have plugins for some reason (either that or it can't write to your hard-drive anywhere).

Would you be willing to try the musl executable from our release?

imsnif avatar Sep 22 '22 14:09 imsnif

I tried to reproduce on my m1 mac by clearing DATA_DIR and installing from brew, but it worked for me. If everything goes well you should end up with:

❯ tree Library/Application\ Support/org.Zellij-Contributors.Zellij/
org.Zellij-Contributors.Zellij
├── plugins
│   ├── compact-bar.wasm
│   ├── status-bar.wasm
│   ├── strider.wasm
│   └── tab-bar.wasm
└── VERSION

Are there by chance any errors in the logfile? The code that tries to write the plugins should log some errors from what I saw.

tlinford avatar Sep 22 '22 15:09 tlinford

Here it is. It looks like it only has the standard error I pasted above. I also searched my entire filesystem for the plugins just to see if they are an incorrect location, and I couldn't find anything. Is there some way to force zellij to create these plugins again?

fd compact-bar.wasm /

Log Output

INFO |zellij_client | 2022-09-20 10:51:49.871 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 10:51:49.875 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 10:51:49.934 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 10:51:49.939 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 10:51:49.940 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 10:51:49.941 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 10:51:49.942 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:16:31.999 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:16:32.014 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:16:32.069 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:16:32.073 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:16:32.075 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:16:32.078 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:16:32.079 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:16:32.080 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:16:32.080 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:17:47.280 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:17:47.284 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:17:47.339 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:17:47.349 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:17:47.349 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:17:47.350 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:17:47.350 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:17:47.350 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:17:47.350 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" INFO |zellij_client | 2022-09-20 11:20:22.762 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:20:22.774 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:20:22.832 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:20:22.836 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:20:22.838 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:20:22.842 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:20:22.843 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:22:11.203 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:22:11.214 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:22:11.271 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:22:11.275 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:22:11.277 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:22:11.280 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:22:11.281 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:22:11.282 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:22:11.284 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:23:21.391 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:23:21.397 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:23:21.456 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:23:21.468 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:23:21.469 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:23:21.470 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:23:21.470 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:23:21.470 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:23:21.470 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:23:21.471 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" INFO |zellij_client | 2022-09-20 11:24:06.529 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:24:06.534 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:24:06.591 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:24:06.601 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:24:06.604 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 18:24:06.605 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" INFO |zellij_client | 2022-09-20 11:29:48.714 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:29:48.720 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:29:48.775 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:29:48.777 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:29:48.779 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:29:48.781 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:29:48.781 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:30:03.947 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:30:03.957 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:30:04.012 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:30:04.014 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "compact-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("compact-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:30:04.015 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:30:04.017 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:30:04.017 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:30:34.236 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:30:34.246 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:30:34.304 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.343 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.344 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.345 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.345 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.349 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.349 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.349 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.350 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.353 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.353 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.354 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:30:34.355 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] INFO |zellij_client | 2022-09-20 11:30:43.007 [main ] [zellij-client/src/lib.rs:394]: Bye from Zellij! INFO |zellij_server::wasm_vm | 2022-09-20 11:30:43.007 [wasm ] [zellij-server/src/wasm_vm.rs:213]: wasm main thread exits INFO |zellij_client | 2022-09-20 11:31:38.193 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:31:38.203 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:31:38.261 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.309 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.309 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.316 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.316 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.319 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] WARN |zellij_server::panes::gri| 2022-09-20 11:31:38.319 [screen ] [zellij-server/src/panes/grid.rs:2811]: Unhandled esc_dispatch: 92->[] INFO |zellij_client | 2022-09-20 11:31:41.757 [main ] [zellij-client/src/lib.rs:394]: Bye from Zellij! INFO |zellij_server::wasm_vm | 2022-09-20 11:31:41.757 [wasm ] [zellij-server/src/wasm_vm.rs:213]: wasm main thread exits ERROR |zellij_utils::errors | 2022-09-20 11:31:41.757 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/screen.rs:945:14 message: failed to receive event on channel: RecvError INFO |zellij_client | 2022-09-20 11:31:52.252 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:31:52.262 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:31:52.320 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:31:52.324 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:31:52.326 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:31:52.329 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:31:52.330 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-20 11:32:09.039 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-20 11:32:09.048 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-20 11:32:09.106 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-20 11:32:09.109 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-20 11:32:09.111 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-20 11:32:09.115 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:324:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-20 11:32:09.116 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:343:47 message: called Option::unwrap() on a None value INFO |zellij_client | 2022-09-21 12:48:12.433 [main ] [zellij-client/src/lib.rs:129]: Starting Zellij client! INFO |zellij_server | 2022-09-21 12:48:12.443 [main ] [zellij-server/src/lib.rs:205]: Starting Zellij server! INFO |zellij_server::wasm_vm | 2022-09-21 12:48:12.499 [wasm ] [zellij-server/src/wasm_vm.rs:87]: Wasm main thread starts ERROR |zellij_utils::errors | 2022-09-21 12:48:12.503 [wasm ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: wasm location: At zellij-server/src/wasm_vm.rs:236:28 message: Cannot resolve wasm bytes for plugin PluginConfig { path: "tab-bar", run: Pane(None), _allow_exec_host_cmd: false, location: Zellij(PluginTag("tab-bar")) } ERROR |zellij_utils::errors | 2022-09-21 12:48:12.506 [screen ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: screen location: At zellij-server/src/tab/mod.rs:495:41 message: called Result::unwrap() on an Err value: RecvError ERROR |zellij_utils::errors | 2022-09-21 12:48:12.509 [pty ] [zellij-utils/src/errors.rs:94]: Panic occured: thread: pty location: At zellij-server/src/pty.rs:159:26 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-21 12:48:12.510 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)" ERROR |zellij_utils::errors | 2022-09-21 12:48:12.511 [async-std/runti] [zellij-utils/src/errors.rs:94]: Panic occured: thread: async-std/runtime location: At zellij-server/src/terminal_bytes.rs:122:14 message: called Result::unwrap() on an Err value: "SendError(..)"

wyattjsmith1 avatar Sep 22 '22 16:09 wyattjsmith1

For what it's worth, I tried uninstalling through brew and installing with cargo, and I have the same result.

wyattjsmith1 avatar Sep 26 '22 20:09 wyattjsmith1

Just to make sure I understand - you mentioned you got this error on both mac and windows? So you got the same error on two different computers using two different installation methods?

imsnif avatar Sep 26 '22 21:09 imsnif

That is correct. I was actually tracing through the code, and found a way around the issue.

I noticed that on this line, we destruct an Attach and only create the plugins if create is set. It looks like create is only set in the cli. After reading some documentation, I found that I can run zellij session -c, and it will run and create my session and the plugins.

I can then kill zellij, and start a new server with just zellij, and this will work.

I want to emphasize I have no clue how the zellij codebase works, and just came to this conclusion by skimming the codebase with my limited rust knowledge. My guess is that somewhere, the default behavior for starting a new session does not call install_default_assets.

I hope this helps, but as of now, I am unblocked.

wyattjsmith1 avatar Sep 26 '22 23:09 wyattjsmith1

That is correct. I was actually tracing through the code, and found a way around the issue.

I noticed that on this line, we destruct an Attach and only create the plugins if create is set. It looks like create is only set in the cli. After reading some documentation, I found that I can run zellij session -c, and it will run and create my session and the plugins.

I can then kill zellij, and start a new server with just zellij, and this will work.

I want to emphasize I have no clue how the zellij codebase works, and just came to this conclusion by skimming the codebase with my limited rust knowledge. My guess is that somewhere, the default behavior for starting a new session does not call install_default_assets.

I hope this helps, but as of now, I am unblocked.

I've just installed zellij through brew as well, I'm getting a "Received empty message from server" when i try running the strider plugin. Did a 'zellij setup --check' and its looking for plugins in Library/Application Support/org.Zellij-Contributors.Zellij/plugins And it looks like this doesn't exist at all. Any tips? I tried your session -c command but I believe there have been some changes in the CLI since and this does not work.

jigypeper avatar Jan 14 '24 18:01 jigypeper