Nacho114/harpoon

Error running plugin

bayou-brogrammer opened this issue · 2 comments

Running the plugging stalemates for about 1-2 seconds then crashes zellij with

Received empty message from server

Looking at the logs i have:

WARN   |zellij_server::route     | 2023-08-13 17:29:47.732 [server_router] [zellij-server/src/route.rs:877]: Server ready, retrying sending instruction. 
WARN   |zellij_server::plugins   | 2023-08-13 17:29:49.840 [wasm      ] [zellij-server/src/plugins/mod.rs:177]: Plugin /home/yendor/.config/zellij/plugins/cached.wasm not found, starting it instead 
WARN   |zellij_utils::ipc        | 2023-08-13 17:29:52.086 [router    ] [zellij-utils/src/ipc.rs:230]: Error in IpcReceiver.recv(): InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }) 
ERROR  |zellij_client            | 2023-08-13 17:29:52.086 [router    ] [zellij-client/src/lib.rs:309]: Received empty message from server 
WARN   |zellij_utils::input::layo| 2023-08-13 17:31:49.834 [main      ] [zellij-utils/src/input/layout.rs:867]: Failed to read swap layout file: /home/yendor/.config/zellij/layouts/main.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_client            | 2023-08-13 17:31:49.836 [main      ] [zellij-client/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-08-13 17:31:49.839 [main      ] [zellij-server/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-08-13 17:31:49.890 [main      ] [zellij-server/src/lib.rs:862]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-08-13 17:31:49.890 [wasm      ] [zellij-server/src/plugins/mod.rs:124]: Wasm main thread starts 
INFO   |zellij_server::plugins::p| 2023-08-13 17:31:49.898 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin 'tab-bar' from cache folder at '/home/yendor/.cache/zellij' in 4.693828ms 
INFO   |zellij_server::plugins::p| 2023-08-13 17:31:49.899 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin 'compact-bar' from cache folder at '/home/yendor/.cache/zellij' in 5.797197ms 
INFO   |zellij_server::plugins::p| 2023-08-13 17:31:49.901 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin 'status-bar' from cache folder at '/home/yendor/.cache/zellij' in 7.017377ms 
WARN   |zellij_utils::input::layo| 2023-08-13 17:31:50.280 [main      ] [zellij-utils/src/input/layout.rs:867]: Failed to read swap layout file: ./dev.swap.kdl. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 
INFO   |zellij_server::plugins::p| 2023-08-13 17:31:50.349 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin '/home/yendor/Downloads/harpoon/target/wasm32-wasi/debug/harpoon.wasm' from cache folder at '/home/yendor/.cache/zellij' in 17.748806ms 
INFO   |zellij_server::plugins::p| 2023-08-13 17:31:50.683 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:634]: Compiled plugin '/home/yendor/Downloads/harpoon/target/wasm32-wasi/debug/harpoon.wasm' in 262.540233ms 
INFO   |zellij_server::plugins::w| 2023-08-13 17:32:31.338 [wasm      ] [zellij-server/src/plugins/wasm_bridge.rs:194]: Bye from plugin 4 
WARN   |zellij_server::plugins   | 2023-08-13 17:32:34.369 [wasm      ] [zellij-server/src/plugins/mod.rs:177]: Plugin /home/yendor/Downloads/harpoon/target/wasm32-wasi/debug/harpoon.wasm not found, starting it instead 
INFO   |zellij_server::plugins::p| 2023-08-13 17:32:36.910 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:634]: Compiled plugin '/home/yendor/Downloads/harpoon/target/wasm32-wasi/debug/harpoon.wasm' in 250.850439ms 
WARN   |zellij_utils::ipc        | 2023-08-13 17:32:43.381 [router    ] [zellij-utils/src/ipc.rs:230]: Error in IpcReceiver.recv(): InvalidMarkerRead(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }) 
ERROR  |zellij_client            | 2023-08-13 17:32:43.381 [router    ] [zellij-client/src/lib.rs:309]: Received empty message from server 

It looks like Plugin /home/yendor/.config/zellij/plugins/cached.wasm not found. Did you build manually or using the build.sh script?

If manually, did you install cached as well? For harpoon to work we also need to run this plugin in the background to keep track of the state.

If you update Zellij to the new 0.38.0 release and reinstall harpoon it should now work without the extra setup.