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

Auto-regeneration enters infinite loop on TeX compilation error #1

Open
paolobrasolin opened this issue Oct 1, 2017 · 3 comments
Open
Assignees
Labels

Comments

@paolobrasolin
Copy link
Owner

When an Antex::Command throws an error (e.g. caused by invalid TeX code), if we're using incremental builds with the jekyll server, a rebuilding loop is entered.

@paolobrasolin paolobrasolin self-assigned this Oct 1, 2017
@paolobrasolin
Copy link
Owner Author

paolobrasolin commented Oct 7, 2017

Antex caching causes the loop, because Jekyll is listening to the cache folder too.
A solution is adding an exclusion to _config.yml:

exclude:
 - .antex-cache/'

A better solution would be to exclude the folder automatically using values from

antex:
  dirs:
    work: .antex-cache
    dest: .antex-cache/antex

@paolobrasolin
Copy link
Owner Author

Another solution could be to simply put the cache folder outside of the project root. E.g.:

antex:
  dirs:
    work: /home/username/.antex-cache
    dest: /home/username/.antex-cache/antex

Note the tilde ~ cannot be expanded, so you must use the full home path if you need it.

@paolobrasolin
Copy link
Owner Author

OK, let's just close the issue after documenting this.

@paolobrasolin paolobrasolin added wontfix and removed bug labels Sep 4, 2018
@paolobrasolin paolobrasolin changed the title jekyll serve regeneration loops on error Auto-regeneration enters infinite loop on TeX compilation error Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant