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
Unknown Object (File)
Sun, Dec 22, 12:03 AM
Unknown Object (File)
Fri, Dec 20, 8:52 PM
Unknown Object (File)
Fri, Dec 20, 6:56 PM
Unknown Object (File)
Tue, Dec 17, 6:13 AM
Unknown Object (File)
Tue, Dec 17, 5:26 AM
Unknown Object (File)
Sun, Dec 15, 1:47 AM
Unknown Object (File)
Thu, Dec 12, 7:54 AM
Unknown Object (File)
Mon, Dec 9, 4:51 PM
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.