Closed rzippo closed 4 years ago
Hi, without a MWE meaning a pure LaTeX file and the corresponding log file it's quite impossible for me to do any testing in order to explore the possible error. I am not willing to use your complete development environment as this is outside the scope of the package. Nevertheless, if you would provide a minimal file producing this error, I will see what I can do.
BTW: The file name svg-raw.pdf
seems a little strange as package svg
should generate either <imagename>_svg-raw.pdf
or <imagename>_svg-tex.pdf
.
If you want to try out a previous version of package svg
just try to use one of https://github.com/mrpiggi/svg/releases and copy the .sty
files into your project folder.
Running latexmk -lualatex -latexoption="-shell-escape" issue19
with the following example works as expected, at least on Windows. The used graphic svg-example.svg
can be found under texmf-dist/doc/latex/svg
or at CTAN.
% latexmk -lualatex -latexoption="-shell-escape" issue19
\listfiles
\documentclass{article}
\usepackage{iftex}
\iftutex
\usepackage{fontspec}
\else
\usepackage[T1]{fontenc}
\usepackage[ngerman=ngerman-x-latest]{hyphsubst}
\fi
\usepackage{svg}
\begin{document}
\includesvg[latex=false]{svg-example.svg}
\includesvg{svg-example.svg}
\end{document}
The file name svg-raw.pdf seems a little strange as package svg should generate either
_svg-raw.pdf or _svg-tex.pdf.
That is what I meant, sorry if it was confusing.
If you want to try out a previous version of package svg just try to use one of https://github.com/mrpiggi/svg/releases and copy the .sty files into your project folder.
Does this make the local version to be used in place of the CTAN version?
Does this make the local version to be used in place of the CTAN version?
Yes, but this would just be a temporary workaround. Let me know, if this solves your problem.
I used your example to run some tests, adding only random characters to force rebuild.
The first attempt with the latest version worked, giving the following log
However, running again the same build, it failed
I tried the same with version 2.02d
, and got the same behavior.
Are you sure, that ./svg-inkscape/svg-example_svg-raw.pdf was generated? I am especially concerned about the lines ** (inkscape:14): CRITICAL **:
in the very first log. And please update your distribution as some packages are out of date. Additionally, your first log states svg.sty 2019/10/22 v2.02d (include SVG pictures)
...
Are you sure, that ./svg-inkscape/svg-example_svg-raw.pdf was generated?
Yes, I checked in between each run.
I am especially concerned about the lines (inkscape:14): CRITICAL : in the very first log.
I looked this up first, but did not find anything useful. Most issues are about the fact it is printed at all, it does not seem to mean that inkscape failed to run.
And please update your distribution as some packages are out of date. Additionally, your first log states svg.sty 2019/10/22 v2.02d (include SVG pictures)...
This was a good heads-up, thanks. I did took for granted that they were updated since tlmgr update --all
is executed during build, but I found out that for some reason tlmgr
cannot detect any package as installed. This however is about the docker image, not your package.
I am closing this issue while I deal with that, will reopen later if it still does not work.
I found relevant issues reported for Docker Desktop that explain my problem. It just so happened that your package was the one triggering those, in my use case.
Sorry for wasting your time.
No problem, don't worry.
First of all, thanks for your work.
I am having issues with a project that stopped working, after a month from the last build and with no changes in-between. Given the error log and the timing of your last update, I guess it is this package to be the source of the problem.
Environment
I edit my sources (.tex and .svg files) on Windows, but run the building process on docker. I use this VS Code extension and this docker image. Note that to do this, the project folder is mounted with
docker run -v
, but the files are still hosted on Windows. The tools used arelatexmk
andLuaTex
.Error
The build fails with
error: (pdf inclusion): file has changed
on a_svg-raw.pdf
file. This happens at each new attempt, even if the file was already correctly converted and present in thesvg-inkscape
folder when building started.I have verified this in two different Windows PCs; both are instead able to build other documents which do not use the
svg
package, using the same setup. I also verified that the same setup hosted on an Ubuntu machine successfully builds.I was unable to try the setup with a precedent version of this package, since CTAN hosts only the latest one. So, while I think the error may be related to detecting updates to a file hosted under Windows, I cannot say if this is due
svg
or Docker Desktop, which also got an update recently (version 2.2). My guess is on the former since onlysvg
file conversions are affected in my case.