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

Exception by empty section #68

Closed
gilbertf opened this issue Feb 12, 2019 · 2 comments
Closed

Exception by empty section #68

gilbertf opened this issue Feb 12, 2019 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@gilbertf
Copy link

gilbertf commented Feb 12, 2019

A document with empty chapter can not be checked by textidote due to the following error:
Exception in thread "main" java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:102)
at ca.uqac.lif.textidote.rules.CheckSubsectionSize.evaluate(CheckSubsectionSize.java:102)
at ca.uqac.lif.textidote.Linter.evaluateAll(Linter.java:149)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:567)
at ca.uqac.lif.textidote.Main.mainLoop(Main.java:124)
at ca.uqac.lif.textidote.Main.main(Main.java:110)

@sylvainhalle
Copy link
Owner

Hi! Thanks for your feedback. Could you provide me a minimal TeX file that produces this error please?

@gilbertf
Copy link
Author

gilbertf commented Feb 12, 2019

Yep:
\documentclass[]{scrbook}
\begin{document}
\section{A}
\chapter{B}
\chapter{C}
\end{document}

@sylvainhalle sylvainhalle added this to the v0.8 milestone Feb 22, 2019
@sylvainhalle sylvainhalle added the bug Something isn't working label Feb 22, 2019
sylvainhalle added a commit that referenced this issue Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants