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
F14074903: D21357.id50835.diff
Thu, Nov 21, 9:11 AM
Unknown Object (File)
Wed, Oct 30, 11:50 PM
Unknown Object (File)
Thu, Oct 24, 9:48 PM
Unknown Object (File)
Oct 9 2024, 1:34 PM
Unknown Object (File)
Oct 9 2024, 5:00 AM
Unknown Object (File)
Oct 7 2024, 8:01 AM
Unknown Object (File)
Oct 2 2024, 2:14 AM
Unknown Object (File)
Sep 12 2024, 9:12 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.