When longer paragraphs have no line breaks in the middle, I get the warning:
chktex: WARNING -- ChkTeX does not handle lines over 509 bytes correctly. Some errors and line numbers may be wrong in this file.
I've found a report of a similar issue at ChkTeX: warn of lines that are too long and therefore generate erroneous warnings. In their case, they used LaTeX-Workshop and also went quite far in other research. It seems likely ChkTeX is not geared for (some?) Windows environments. The OP of that post knocked up some code to identify which lines are too long.
One workaround is to manually add line breaks, but that is a pain and adds inconvenience for colleagues.
My environment:
- Windows 11
- VS Code version 1.67.1 (LaTeX extension version 1.2.0)
- One MiKTeX Utility 1.2 (MiKTeX 22.3)
- ChkTeX v1.7.6
So, my question: is there a fix or better workaround for this?