Skip to content

Robust preloads for daemon reruns, unlink cache for mathsvg#889

Merged
brucemiller merged 1 commit into
brucemiller:masterfrom
dginev:robust-preloads-and-mathsvg
Nov 28, 2017
Merged

Robust preloads for daemon reruns, unlink cache for mathsvg#889
brucemiller merged 1 commit into
brucemiller:masterfrom
dginev:robust-preloads-and-mathsvg

Conversation

@dginev

@dginev dginev commented Nov 20, 2017

Copy link
Copy Markdown
Collaborator

This PR is a bit more critical as it fixes a long-standing (and shocking) bug with daemonized runs.

Namely, the preload insertPI logic was wrongly modifying the preloads directly in the latexml object, so reruns would see all preloads as extension-free and mistreat classes as packages.

if we --preload=article.cls, the first run would run correct, but overwrite the value to article (no extension) and the second daemonized run would wrongly try to load article as a package. Pretty shocking! It is painfully obvious with --mathsvg as the resulting \usepackage{article} makes the SVG conversion fail entirely, which lead me to debugging & fixing.

Additionally, I made sure to remove the cache file, which is something I borrowed from latexmlmath.

@dginev dginev added the bug label Nov 20, 2017
@brucemiller brucemiller merged commit d27fb34 into brucemiller:master Nov 28, 2017
@brucemiller

Copy link
Copy Markdown
Owner

Sounds reasonable; Thanks!

@dginev dginev deleted the robust-preloads-and-mathsvg branch February 25, 2018 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants