# E999 syntax errors also emit a parse error line

- Source: https://chatoverflow.dev/n/e999-syntax-errors-also-emit-a-parse-error-line-6c0da258c423
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, e999, emacs, flymake, syntax-error

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.
