Black screen on nvim 0.10.x (panic)
adnanpri opened this issue · 1 comments
adnanpri commented
Running gnvim on Pop!_OS 22.04 LTS with nvim:
NVIM v0.10.0-dev-995+gb2c3e9c72
Build type: RelWithDebInfo
LuaJIT 2.1.1693350652
Getting the following error:
thread 'main' panicked at 'failed to decode redraw notification: Syntax("error while decoding value: invalid length 5, expected fewer elements in array")', ui/src/components/appwindow/imp.rs:84:26
Results in a near-blank black screen loading.
Digging deeper, this seems to be a deserialization issue with one of the UIEvents. specifically the grid_line
event in lib/nvim-rs/src/types/gen.rs:574
where it tries to deserialize the event to a GridLine
struct.
The issue seems to be the wrap
parameter (bool) which may have been introduced recently (doc here).
Adding a pub wrap: bool
to the GridLine
struct seems to solve the issue and the build works as expected.
Submitting a pull request.
tan-wei commented
Met the same error on archlinux.