Open ArthurHoaro opened 2 months ago
please provide output of toot diag
command. I want to see what versions of urwidgets and urwid you are running.
➜ toot diag
## Toot Diagnostics
Current Date/Time: 2024-08-28 16:29:26 UTC
Toot version: 0.44.1
Platform: Linux-5.15.0-119-generic-x86_64-with-glibc2.35
Distro: Ubuntu 22.04.4 LTS
Python version: 3.10.12
Dependency versions:
* beautifulsoup4: 4.10.0
* click: 8.1.7
* flake8: 7.0.0
* pillow: 10.4.0
* pytest: not installed
* requests: 2.25.1
* setuptools: 72.1.0
* term-image: 0.7.2
* tomlkit: 0.13.0
* typing-extensions: 4.12.2
* urwid: 2.6.15
* urwidgets: 0.2.0
* vermin: not installed
* wcwidth: 0.2.5
Settings file path: /home/arthur/.config/toot/settings.toml
Config file path: /home/arthur/.config/toot/config.json
@AnonymouX47 this is with Urwidgets 0.2.0, any thoughts?
Hello!
I looked into the issue and found out it was due to the presence of the U+2029 (Paragraph Separator) codepoint in the user's bio (between "." and "she/her"), as I initially suspected. This is a really uncommon edge case but still deserves attention.
So, I dug further and realised the exception raised was due to the use of urwid.Text.pack()
(which happens to be buggy with the use of Unicode line breaks; reported in https://github.com/urwid/urwid/issues/924) for width computation by TextEmbed
.
I've now switched to using urwid.calc_width()
instead and released v0.2.1. This issue should now be fixed with the new version.
Thank you very much. :smiley:
This error happens when I try to open this account from a post in the main timeline, using "A".
It looks the same as this issue (solved), but for an account and not a post. I'm guessing it's because of accented characters in the profile/hashtags.
Account:
@juliette@mastodon.green
From post:https://mastodon.green/@juliette/113039496315816199
Stacktrace: