Closed choadrocker closed 6 months ago
Hi @choadrocker - thanks for reporting this! I've seen this issue before and honestly, I don't see why it's happening. It seems like it's a bug in Rich's Syntax
module, but I'm not quite sure. Is it easily reproducible for you? I've only ran into it once.
I can reproduce it
What will be helpful to provide?
That's a good question because the traceback doesn't show me what line of Dolphie itself is causing the issue, heh. Since it's easily reproducible for you, any chance you can change the code to not use Syntax
and see if that fixes it?
Ill give it a shot and let you know. It also may have choked on binary data
That's a good point @choadrocker - it could be binary data. The more I think about it, I don't think Syntax
is at fault because all queries are processed with it to format in processlist panel. I wish the traceback told us what code in Dolphie is at fault...
@choadrocker - I think I fixed this. Can you try it out on your end?
Please do these steps:
poetry install
poetry run dolphie
with your normal parameters@choadrocker - following up on this with you as I'd like to get this fix pushed to a new version if it works. Any chance you can test on your end soon?
@choadrocker - pinging you one last time for your input before I release a new version with this fix
This has been pushed to 5.0.2
Sorry I missed these! Thanks for the help!
No worries - did you by chance get to test the change and verify it fixes your issue?
On large queries and or large windows, dolphie crashes with:
AttributeError: 'NoneType' object has no attribute 'splitlines'
I have attached a traceback
And thanks for the great tool!