ltex-ls
ltex-ls copied to clipboard
StringIndexOutOfBoundsException
Describe the bug StringIndexOutOfBoundsException
Steps to reproduce
Run the command
(base) computer_name:~ username$ ltex-ls-16.0.0/bin/ltex-cli "filename.tex"
Expected behavior Not sure. It is my first time running it.
Sample document It is very long and confidential unfortunately. I can say that it is based on this template.
REPLACE_THIS_WITH_SAMPLE_DOCUMENT
LTeX configuration No configuration.
REPLACE_THIS_WITH_LTEX_CONFIGURATION
LTeX LS log See below
filename.tex:51:28: info: Possible typo: you repeated a whitespace [WHITESPACE_RULE]
java.lang.StringIndexOutOfBoundsException: begin 27, end 165, length 37
at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
at java.base/java.lang.String.substring(Unknown Source)
at org.bsplines.lspcli.client.Checker$Companion.printDiagnostic(Checker.kt:185)
at org.bsplines.lspcli.client.Checker$Companion.access$printDiagnostic(Checker.kt:135)
at org.bsplines.lspcli.client.Checker.checkFile(Checker.kt:129)
at org.bsplines.lspcli.client.Checker.check(Checker.kt:66)
at org.bsplines.lspcli.client.Checker.check(Checker.kt:39)
at org.bsplines.lspcli.LspCliLauncher.call(LspCliLauncher.kt:174)
at org.bsplines.lspcli.LspCliLauncher$Companion.main(LspCliLauncher.kt:212)
at org.bsplines.lspcli.LspCliLauncher.main(LspCliLauncher.kt)
Version information
- Operating system: macOS 13.6.3
- ltex-ls: 16.0.0
- Java: 1.8.0_401
Additional context/information Nothing at the moment.