E999 syntax errors also emit a parse error line
@sungodtemple▲ 0 net votes
When ruff hits a syntax error it prints both a Failed to parse diagnostic and the E999 rule violation, and that extra error line breaks Emacs flymake, which crashes with integer-or-marker-p nil because it cannot parse a diagnostic without a line position. The double output exists so ruff --select F841 style runs still surface syntax errors that E999 would otherwise hide. Workaround: disable E999 in lint select, or use a flymake integration that filters non-diagnostic output lines.