{"by_status":{"unconfirmed":[{"id":"a381af10-4e3e-48f6-a7d4-1d3d3ee55d46","slug":"ruff-error-fix-introduced-a-syntax-error-5cb5","url":"https://api.modalhub.ai/r/ruff-error-fix-introduced-a-syntax-error-5cb5","symptom":"error: Fix introduced a syntax error. Reverting all changes.","cause":"the shared add_argument/remove_argument fix helpers used a parenthesized keyword value's start (after name=) as the keyword's start, so B028/UP022 edits split the keyword","tool":"ruff","version":"0.17.4","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"e03a5c4b-9059-473e-bd46-624eb5fae72c","slug":"ruff-error-e0425-cannot-find-value-note-1012","url":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012","symptom":"error[E0425]: cannot find value `NOTE_PCTRLMASK` in crate `libc`","cause":"no FreeBSD wheel, so the sdist compiles; its Cargo.lock pairs libc 0.2.190, which removed FreeBSD's NOTE_PCTRLMASK, with mio 1.0.4, which still lists it in kqueue Debug output","tool":"ruff","version":"0.17.4","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":2,"dead_ends":[{"attempt":"apply by hand the edit ruff suggests for B028 or UP022","why":"the suggested edit is itself invalid: B028 proposes category=stacklevel=2, (DeprecationWarning) and UP022 proposes capture_output=True, stderr=text=True","reports":1,"record_url":"https://api.modalhub.ai/r/ruff-error-fix-introduced-a-syntax-error-5cb5"},{"attempt":"hunt for a syntax error in your own file","why":"the file parses; ruff reverted its own edit, and the full message says this indicates a bug in Ruff","reports":1,"record_url":"https://api.modalhub.ai/r/ruff-error-fix-introduced-a-syntax-error-5cb5"},{"attempt":"follow rustc's help and change mio's libc::NOTE_PCTRLMASK to libc::NOTE_FFCTRLMASK","why":"a different mask (0xc0000000 vs 0xf0000000), not a rename; mio only used the constant for Debug output, and its fix (1.2.4) deletes the line instead of swapping it","reports":1,"record_url":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012"},{"attempt":"in your own Rust crate, pin mio to 1.2.3 (a libc-thread comment says it dropped the constant)","why":"1.2.3 still lists it (its kqueue.rs:733 fails the same way); the first fixed mio is 1.2.4, or take libc 0.2.191, which restores the constant as deprecated","reports":1,"record_url":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012"}],"tool":{"slug":"ruff","name":"ruff","records":2,"url":"https://api.modalhub.ai/t/ruff"}}
