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

Conflict between options --read-all and --output singleline #257

Open
christophe-gouel opened this issue Jun 10, 2024 · 0 comments
Open

Comments

@christophe-gouel
Copy link

I have a problem when I combine 2 options: --read-all and --output singleline. I get the following java error:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at ca.uqac.lif.textidote.render.SinglelineAdviceRenderer.renderExcerpt(SinglelineAdviceRenderer.java:93)
at ca.uqac.lif.textidote.render.SinglelineAdviceRenderer.render(SinglelineAdviceRenderer.java:68)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:690)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:128)
at ca.uqac.lif.textidote.Main.main(Main.java:114)

This problem does not always happen, but regularly enough that I cannot configure textidote properly with emacs (I know the snippet in the README but it is for flycheck and I am trying to make textidote work for the default emacs checker flymake). A simple example is to apply it to the example file in the repo:

java -jar ~/.local/jar/textidote.jar --read-all --output plain example.tex

works well, but

java -jar ~/.local/jar/textidote.jar --read-all --output singleline example.tex

leads to the error.

I need to use the --read-all option because all my tex files are separated between the preamble and the text.

I am using textidote version 0.9 on Windows 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant