-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] rich + crlf = notepad python #1824
Comments
Hi @philiparvidsson, thanks for the report. I'd just like to confirm a few things:
Thanks! |
No.
It did not appear, correct.
No.
Yes.
I don't have access to it. It seems the cause is crlf (\r) causing incorrect behavior in splitlines (or whatever it's called, line 1088 in text.py or something). So I don't think terminal matters. This doesn't crash on n*x because os.linesep has no \r in it. |
I have tried it with Windows Terminal (both cmd and Powershell) and, for all practical purpose, it disable the Python interpreter when importing the file. Anything typed in is ignored except that Running |
How to h4x?
After approx. 12 hours of debugging why my app is silently crashing, I have finally figured out the cause. Here's a minimal (non-)working example file for you to work on, lol. It only crashes on Windoze, and it does so in a really nasty way which seems to entirely screw up the Python runtime. Line 1088 in one of the rich source files may be related.
Screenshot
Platform
Windows 10 Command Prompt in a VM, but also tested on live Windows 10 system. Does not crash on Linux.
The text was updated successfully, but these errors were encountered: