zellij/zellij-server/src
har7an 75801bdb0e
plugins: Improve error handling on plugin version mismatch (#1838)
* server/tab: Don't panic in `Pane::render`

and do not crash the application on failure to receive a render update
from plugins any longer. Instead, will print a simple string with a hint
to check the application logs, where a more thorough error indication
can be found.

* utils/errors: re-export `anyhow::Error`

to create ad-hoc errors with custom error types, without having to wrap
them into a `context()` before to turn the into anyhow errors.

* plugins: Check plugin version on startup

and terminate execution with a descriptive error message in case the
plugin version is incompatible with the version of zellij being run.

* server/wasm_vm: Add plugin path in version error

so the user knows which plugin to look at in case they're using custom
plugins.

* server/wasm_vm: Check plugin version for equality

Previously we would accept cases where the plugin version was newer than
the zellij version, which doesn't make a lot of sense.

* server/wasm_vm: Prettier error handling

in call to `wasmer::Function::call` in case a plugin version mismatch
can occur.

* tile: Install custom panic handler

that will print the panic message to a plugins stdout and then call a
panic handler on the host that turns it into a real application-level
panic.

* tile: Catch errors in event deserialization

and turn them into proper panics. These errors are symptomatic of an
uncaught plugin version mismatch, for example when developing from main
and compiling zellij/the plugins from source. Normal users should never
get to see this error.

* utils/errors: Improve output in `to_stdout`

for anyhow errors. The default anyhow error formatting of `{:?}` is
already very good, and we just made it worse by trying to invent our own
formatting.

* tile: Reword plugin mismatch error message

* zellij: Apply rustfmt

* changelog: Add PR #1838

Improve error handling on plugin version mismatch.

* server/wasm_vm: Rephrase error in passive voice
2022-10-23 13:14:24 +00:00
..
output feat(terminal): search panes (#1521) 2022-07-18 10:54:23 +02:00
panes plugins: Improve error handling on plugin version mismatch (#1838) 2022-10-23 13:14:24 +00:00
tab plugins: Improve error handling on plugin version mismatch (#1838) 2022-10-23 13:14:24 +00:00
ui plugins: Improve error handling on plugin version mismatch (#1838) 2022-10-23 13:14:24 +00:00
unit improve error handling in route (#1808) 2022-10-21 13:49:39 +00:00
lib.rs improve error handling in route (#1808) 2022-10-21 13:49:39 +00:00
logging_pipe.rs docs: fix typos (#1481) 2022-06-10 23:37:55 +09:00
os_input_output.rs fix(layouts): various bugs and better errors (#1831) 2022-10-20 20:16:46 +02:00
pty_writer.rs feat(ux): rerun command pane (#1787) 2022-10-11 16:45:46 +02:00
pty.rs fix(command): better error when command not found (#1829) 2022-10-20 17:27:44 +02:00
route.rs improve error handling in route (#1808) 2022-10-21 13:49:39 +00:00
screen.rs allow dump_screen() to only dump the viewport (#1794) 2022-10-19 22:49:13 +09:00
terminal_bytes.rs feat(ux): rerun command pane (#1787) 2022-10-11 16:45:46 +02:00
thread_bus.rs zellij-server: improve thread_bus error handling (#1775) 2022-10-07 09:04:08 +00:00
wasm_vm.rs plugins: Improve error handling on plugin version mismatch (#1838) 2022-10-23 13:14:24 +00:00