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

Failing to build with long filenames #50

Closed
Kernald opened this issue Feb 15, 2021 · 0 comments · Fixed by #98
Closed

Failing to build with long filenames #50

Kernald opened this issue Feb 15, 2021 · 0 comments · Fixed by #98

Comments

@Kernald
Copy link
Collaborator

Kernald commented Feb 15, 2021

While adding support to https://ctan.org/pkg/beamertheme-metropolis, I ended up having a weird issue when building the test:

Output written on beamertheme_metrop_beamertheme_metropolis_test.tex.pdf (3 pag
es, 11581 bytes).
Transcript written on beamertheme_metrop_beamertheme_metropolis_test.tex.log.

failed to extract output name from latex log

Note the name of the file: beamertheme_metrop_beamertheme_metropolis_test.tex.pdf. If I remove one letter, it works just fine. If I add more, it keeps failing. My guess is that part of lualatex uses a regex to match that output name, based on matching a line ending with \d+ page, which starts failing here.

Is it something that should:

  1. Be documented?
  2. Be avoided, by enforcing smaller file names?

What pattern should we use for test cases having too long of a name?

Kernald added a commit to Kernald/bazel-latex that referenced this issue Aug 3, 2021
latexrun doesn't properly parse LaTeX's output when the filename doesn't
fit in a single line - see
aclements/latexrun#19. This forces it to use
MAX_INT as a max line length, effectively leaving the line-wrapping job
up to the terminal (which should be its responsibility, not LaTeX's),
and works around this issue.

Fixes ProdriveTechnologies#50
Kernald added a commit to Kernald/bazel-latex that referenced this issue Aug 3, 2021
latexrun doesn't properly parse LaTeX's output when the filename doesn't
fit in a single line - see
aclements/latexrun#19. This forces it to use
480 as a max line length, effectively working around this issue.

Fixes ProdriveTechnologies#50
Kernald added a commit to Kernald/bazel-latex that referenced this issue Aug 11, 2022
latexrun doesn't properly parse LaTeX's output when the filename doesn't
fit in a single line - see
aclements/latexrun#19. This forces it to use
480 as a max line length, effectively working around this issue.

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

Successfully merging a pull request may close this issue.

1 participant