Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException #303

Open
ZeliTheZealot opened this issue May 1, 2024 · 0 comments
Open

StringIndexOutOfBoundsException #303

ZeliTheZealot opened this issue May 1, 2024 · 0 comments
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)

Comments

@ZeliTheZealot
Copy link

ZeliTheZealot commented May 1, 2024

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.

@ZeliTheZealot ZeliTheZealot added 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) labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

1 participant