mypy-pycharm icon indicating copy to clipboard operation
mypy-pycharm copied to clipboard

Modifying the display, delaying or disabling "Mypy: unexpected EOF while parsing"

Open XZF0 opened this issue 5 years ago • 1 comments

PyCharm shows the error "Mypy: unexpected EOF while parsing" in a strip that it inserts at the top of the current editor window. If real-time Mypy checking is enabled (definitely a good thing), typing in new code necessarily breaks syntax until the statement being entered is completed. So the EOF error report strip keeps appearing and disappearing, jolting the text up and down.

The problem is not the error report itself (perfectly valid), just the way PyCharm displays it. I couldn't find any way to configure handling this error separately.

How could this be addressed? Perhaps by pre-allocating the space for errors and warnings at top of the window (and blanking it when there are none), so that the rest of the window is not disturbed. Or by delaying this report for, say, 30 seconds after the last keystroke (resetting the time window on new typing).

XZF0 avatar Nov 03 '19 23:11 XZF0

This issue has been automatically marked as stale because it has not had activity in the last 60 days.

stale[bot] avatar Jan 03 '20 00:01 stale[bot]