Page MenuHomePhabricator

Custom linters have no easy way to get line+char from char-offset in file
Closed, DuplicatePublic

Description

See https://discourse.phabricator-community.org/t/arcanistlintengine-does-not-take-multi-byte-characters-into-account/1479

Custom linters can use getLineAndCharFromOffset, but the offset is assumed to be in Bytes, and presumably modern linters produce their output in Chars, so text files with multi-byte chars get wrong offsets.