zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.69k stars 640 forks source link

Downloading plugin from web is always failed #3003

Open cordx56 opened 9 months ago

cordx56 commented 9 months ago

Hello! Thanks for the interesting project. I appreciate for this good project. And please forgive my bad English.

2. Issues with the Zellij UI / behavior

Issue description

On my aarch64-apple-darwin environment, downloading plugin from web and running it (thanks for #2863 ) is always terminate the session with message Received empty message from server and no helpful logs were left.

The problem is reproduced on zellij 0.39.2 and main branch code.

Here is a log:

INFO   |zellij_server            | 2023-12-13 03:21:04.355 [async-std/runti] [/Users/cordx56/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-server-0.39.2/src/lib.rs:919]: Compiling plugins using Cranelift
WARN   |zellij_utils::ipc        | 2023-12-13 03:21:28.762 [router    ] [/Users/cordx56/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-utils-0.39.2/src/ipc.rs:223]: Error in IpcReceiver.recv(): InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
ERROR  |zellij_client            | 2023-12-13 03:21:28.770 [router    ] [/Users/cordx56/.cargo/registry/src/index.crates.io-6f17d22bba15001f/zellij-client-0.39.2/src/lib.rs:356]: Received empty message from server

Maybe first INFO line is not related to this problem (because this log is shown before donwload triggered).

I tried removing tmp dir and running on other machine but there are not fix the problem.

Minimal reproduction

add these lines to config.kdl, run zellij and press Ctrl y.

keybinds {
    shared_except "locked" {
        bind "Ctrl y" {
            LaunchOrFocusPlugin "https://github.com/rvcas/room/releases/download/v1.0.0/room.wasm" {
                floating true; ignore_case true;
            }
        }
    }
}

Other relevant information

I tried to explore the cause of this problem on main branch code, and there are no problems until this line, but when go to the next line, the process will be terminated.

towry commented 3 months ago

This issue still exists in latest main

towry commented 3 months ago

Possible fixed by https://github.com/zellij-org/zellij/pull/3349