Textualize / toolong

A terminal application to view, tail, merge, and search log files (plus JSONL).
https://www.textualize.io/
MIT License
3.2k stars 58 forks source link

Not compatible with recent versions of textual #58

Open wookayin opened 1 month ago

wookayin commented 1 month ago

As of toolong==1.5.0, textualize is pinned to be at 0.58 but this is too old (latest: textual==0.80.1). With textual==0.80.1, tl cannot launch:

$ echo 'hi' | tl

...
AttributeError: 'UI' object has no attribute 'namespace_bindings'

.../toolong/log_view.py:244 in watch_can_tail
244     await self.mount_keys()
.../toolong/log_view.py:206 in mount_keys
206     for (_, binding) in self.app.namespace_bindings.values()

Also toolong should support and remain compatible with recent versions of textual, relaxing dependency requirements as many downside applications that depend on textual may have incompatible ranges of versions and conflicting dependency. Ideally toolong should be free of breaking changes, but since breaking changes are inevitable during the development cycle, it'd be great if we can catch up with textual changes more often; or a better (semantic) version scheme of textual will be also beneficial.

bluefing commented 3 weeks ago

See this PR https://github.com/Textualize/toolong/pull/63

Would be great if you could test that it works for you. This fork https://github.com/scirenihil/toolong is the source of the PR