ltex-cli: out of bounds exception for errors than span multiple lines #277
Labels
1-bug 🐛
Issue type: Bug report (something isn't working as expected)
2-unconfirmed
Issue status: Bug that needs to be reproduced (all new bugs have this label)
The command line interface (
ltex-cli
) raises anStringIndexOutOfBoundsException
when it finds an error spanning multiple lines. The problem looks like a mistake when computing the line/column positions in the source file and extracting the tex of the error.Here is a simple example triggering the bug:
I get an exception as follows (LTex-ls 16.0.0.0 binary release on linux x64):
The problem seems a bit harder to trigger with English text for some reason, but here is a (contrived) example triggering the bug:
I get the following exception:
LTeX configuration
Please paste all configuration settings starting with
ltex.
from yoursettings.json
. You can help us by temporarily removing some irrelevant settings from yoursettings.json
and see if the bug still occurs.Version information
List here the version information of the relevant software.
The text was updated successfully, but these errors were encountered: