Open jmelahman opened 4 years ago
Actually, your issue seems not to be related to the issue you mentioned. lualatex.fls
is an output file, rather than an input file. That lualatex.fls
is missing only tells you the build failed.
Furthermore, I think the actual error message is missing from your build output. Since the output just tells the build failed, not exactly which error (or maybe warning?) caused the build to fail.
I attempted to reproduce your issue, I copied the output PDF of the example report to the example folder and updated my_report.tex
to:
\documentclass[a4paper]{report}
\usepackage{pdfpages}
\title{Bazel rules for LaTex example}
\author{Prodrive Technologies}
\date{2019-11-13}
\begin{document}
\maketitle
\input{example/chapters/introduction}
\includepdf[pages=-]{example.pdf}
\end{document}
The BUILD.bazel
changed to:
load("@bazel_latex//:latex.bzl", "latex_document")
latex_document(
name = "my_report",
srcs = glob([
"chapters/*.tex",
]) + [
":example.pdf",
"@bazel_latex//packages:calc",
"@texlive_texmf__texmf-dist__tex__generic__ifxetex",
"@texlive_texmf__texmf-dist__tex__generic__oberdiek",
"@texlive_texmf__texmf-dist__tex__latex__pdfpages",
"@texlive_texmf__texmf-dist__tex__latex__eso-pic",
"@texlive_texmf__texmf-dist__tex__latex__graphics",
"@texlive_texmf__texmf-dist__tex__latex__oberdiek",
],
main = "my_report.tex",
)
The build then fails mentioning [color] No driver specified
, [graphics] No driver specified
and Cannot find file example.pdf
. However, when running bazel query 'kind("source file", deps(//example:my_report))'
the example.pdf
seems to be included in the package. I'm not totally sure what the pdfpages package is doing which causes the build to exit with these errors.
Do you encounter the same or different errors? Please let me know so we can look into this issue a bit more.
So, I've created a branch to add the pdfpages
package. I was able to reproduce the same No driver specified
issue above by running bazel build //packages:all
.
After a little googling, seems I might have missed a few dependent packages, namely @texlive_texmf__texmf-dist__tex__latex__graphics-cfg
and @texlive_texmf__texmf-dist__tex__latex__graphics-def
. Still not sure why my example wasn't giving me these errors, but adding those seemed to resolve that issue for both my branch and the original example.
However, now both are failing for,
texmf/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty:537: error: [pdftexcmds] Wrong version of lua module
Wondering if this could be resolved by upgrading to texlive 2020? If you're interested, I think I started generating the tarballs last week and would be happy to assist if possible (the 2020 update added the dejavu font which I'd like to use haha).
Yes, it looks like it would. But: updating the oberdiek bundle alone won't solve this. Because the community is making the oberdiek bundle more maintainable, some packages were removed. Unfortunately, the newer version of pdftexcmds is not included in the newest oberdiek bundle (I didn't check a not-so-new oberdiek bundle version). So, updating the oberdiek bundle won't solve your problem straight-away, rather it requires some additional work.
You could also just include the newer pdftexcmds package from its new location rather than dealing with updating the whole oberdiek bundle and mainly fixing all dependencies. The latter would - obviously - be a much nicer/neater solution.
If the newest oberdiek bundle contains a lot of improvements compared to the current version, I would like to update the oberdiek bundle. Otherwise including the newer pdftexcmds package seems fine to me as well.
Couldn't get pdfpages
to work as well. Any chance for the core team to create the correct latex_package
?
BUILD
cover_letter_resume.tex
Possibly a dupe/related to https://github.com/ProdriveTechnologies/bazel-latex/issues/20?