-
Notifications
You must be signed in to change notification settings - Fork 64
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
Latexrun fails on long file names #19
Comments
Not very familiar with Python but perhaps line 839 or 845 needs a regex fix
Since the option re.MULTILINE is already there, I am not sure if multiple lines are the problem. Other work around would be to let pdfLatex generate a log file with bigger column size with option
But then someone would file the bug again with bigger file name :). Not sure if this would be a way to go. |
I don't have much experience in Python, but I have a quick fix here https://github.com/anuragm/latexrun/commit/e10f75520f57caa170840b237241129543cdd0c8 Should I send in a pull request? |
Thanks for the report! Sorry I was so slow to respond. I just merged pull request #22, which fixed this in almost exactly the same way your patch did. |
Hi there. I'd like to reopen this issue. We stumbled over the special case of
I tried a few quick ideas but couldn't get the regex working for this case. Any idea/help? As a tiny addon, it would be nice if the resulting error message from latexrun would have an indicator that it is coming from latexrun and not from pdflatex, eg. something like |
I had this issue on Windows with Cygwin, where XeLaTeX is configured to wrap lines after 79 characters. This was fixed by changing the max characters per line in a config file (See https://tex.stackexchange.com/questions/52988/avoid-linebreaks-in-latex-console-log-output-or-increase-columns-in-terminal for more information. |
One could also merge lines that hold exactly 79 characters before extraction of the job and output names. But that number depends on configuration as noted above. Maybe this number can be guessed from stdout: some lines end with a trailing space indicating a truncated line. Though it might be that some lines are exactly 79 characters long while not being the product of truncation. |
This issue still is marked as closed FWIW 😉 As a workaround, it's possible to run |
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
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
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
When compiling a file with long name (>48 characters, perhaps?), latexrun fails with error
For example, create a latex file with name
with code
Latexrun fails with error log in terminal
The text was updated successfully, but these errors were encountered: