Conversation
An update to urwid results in the valign parameter no longer being recognised or supported. Drop it. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
Without this, I get the following trace in the debug log: |
There was a problem hiding this comment.
Pull request overview
Removes the valign='top' argument from self.body.set_focus(pos) in the thread buffer because newer Urwid versions no longer accept the valign keyword on set_focus.
Changes:
- Drop unsupported
valign='top'kwarg fromListBox.set_focuscall in thread buffer.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
I could not really reproduce this. But I am using nix and had to pick a nixpkgs PR in order to test this. Or could it be that my alot config/theme does not use this code path? What exactly did you do when you get the exception? (which os, how did you install, how did you update, ...) I did cd ~/nixpkgs
hub pr checkout 506794 # the pr that updates urwid from 3.0.4 to 4.0 in nixpkgs
cd ~/alot
sed -i 's/version = .*/version = "dev";/' flake.nix # otherwise nix fails on my if I use --override-input
nix build --override-input nixpkgs ~/nixpkgs
result/bin/alotI don't get an exception. |
I have the following: |
|
hrm - maybe it's not an update, but that I'm on a version of urwid that simply doesn't have that parameter ? |
|
I checked again and I don't get the exception with either the alot version from the nix flake and also not with an updated version on my home machine. They use urwid 2.6.16 and urwid 3.0.5 respectively. Can you update the library on your system or check the git log or changelog of urwid between 2.6.10 and 2.6.16. |
An update to urwid results in the valign parameter no longer being recognised or supported. Drop it.