-
Notifications
You must be signed in to change notification settings - Fork 1
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
Required files not found during build (e.g., noun_Key_1785639_crop.svg
, noun_Email_3027864_ltgreen_svg-tex.pdf
).
#11
Comments
Okay, this is happening now with another file, in two different builds, and one of those builds I know was working for James (because he built the doc and shipped it days ago). Here's that error:
Clearly this is about Copying the .svg file into the current working directory where I'm building the doc doesn't solve the problem. And I remember that James and I encountered an error message like this one, mentioning "shell escape" and "write18", earlier, and that James solved it recently. Looking into this now. |
Oh very interesting: If I revert commit aaf0281 (i.e., if I add back the
Here's what the relevant portion of
I'll bet if I copy Next, let's test the other part of the hypothesis: If I leave those files in place in the build directory, So, there are really two bugs here:
Also, our |
noun_Key_1785639_crop.svg
not found during first-time build.noun_Key_1785639_crop.svg
, noun_Email_3027864_ltgreen_svg-tex.pdf
).
A thought: as part of the fix, we could pre-build the needed .pdf files. That is, just version them in the |
The following script can be used to temporarily fix builds. Note it passes
|
We used to have write18 enabled (that's what shell-escape does) but you were of the opinion that it was a security issue, so we removed it since we didn't think we needed it. Turns out it was doing something useful after all. I do think your security concerns make sense. The right answer here is to do the svg->pdf conversion in a separate process (perhaps using image magick instead of inkscape) and then make that pdf available to latex. That might mean changing the source to look include pdf images instead of svg. How to do all this I haven't yet solved, but I propose that as the general shape of a solution. |
Well, adding back the shell-escape solves part of the problem (as this comment notes), but there's still some problem left after that. I mean, we'd still have the security concern anyway, and I agree that it should be taken seriously and that doing the conversion in a separate process is the solution. But there's a bug here independently of that, according to my tests earlier at least. |
Closing in favor of issue #15. |
On the
jinjification
branch (which is soon to be merged to master), some recent letterhead changes (probably commit cb9f802) made it so that the first time you build a doc you may get an error about filenoun_Key_1785639_crop.svg
not being findable. Actually, the error will say something likenoun_Key_1785639_crop_svg-tex.pdf
or something like that, because it's an intermediate file; unfortunately, I can't reproduce the error anymore ever since I successfully built by puttingnoun_Key_1785639_crop.svg
in the current directory. Still, we should figure out what it was and fix it.(Update: I figured out how to reproduce the error, and also why it intermittently wasn't reproducing. See subsequent comments.)
The text was updated successfully, but these errors were encountered: