Page MenuHomePhabricator

When a linter raises a message at a nonexistent line, don't fatal during rendering
ClosedPublic

Authored by epriestley on Jun 12 2020, 7:11 PM.
Tags
None
Referenced Files
F19912238: D21357.id50837.diff
Thu, Apr 2, 5:49 PM
F19822378: D21357.diff
Mar 7 2026, 5:00 AM
F19800669: D21357.diff
Feb 28 2026, 5:17 PM
F19694716: D21357.id.diff
Feb 10 2026, 11:14 AM
F19686222: D21357.id50836.diff
Feb 9 2026, 12:13 PM
F18868644: D21357.id50836.diff
Nov 4 2025, 7:48 AM
F18867560: D21357.id50837.diff
Nov 4 2025, 1:11 AM
F18833904: D21357.id50835.diff
Oct 26 2025, 6:38 AM
Subscribers
None

Details

Summary

See PHI1782. If a linter raises a message at a line which does not exist in the file, render a confused warning rather than fataling.

This is a long-existing issue which was exacerbated by D21044.

Test Plan

Modified a linter to raise issues at line 99999. Before change: fatal in console rendering. After change: reasonable rendering.

Diff Detail

Repository
rARC Arcanist
Branch
lint1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24656
Build 33997: Run Core Tests
Build 33996: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 12 2020, 7:12 PM
Harbormaster failed remote builds in B24655: Diff 50835!
  • Allow a linter to raise messages just past the very end of a file.