texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.75k stars 342 forks source link

Log shows no error but compilation fails #275

Open bonanza123 opened 6 years ago

bonanza123 commented 6 years ago

This is probably not a bug, but rather some feature request.

For some weird reason, tikz externalization is sometimes producing 0byte PDFs which let e.g. lualatex drop the following error

! error: (file tikz/abc.pdf) (pdf backend): reading image file failed ! ==> Fatal error occurred, no output PDF file produced!

However, this error is not visible in the texstudio log in the normal config (where the stdout is not shown). Meaning the workaround is to enable stdout printing and see the error. It would be more convenient if texstudio could parse such kind of errors as well and shown them in issues pane.

sunderme commented 6 years ago

test case ...

bonanza123 commented 6 years ago

The same effect is observable via:

\documentclass{article}

\usepackage{filecontents,graphicx}
\begin{filecontents*}{test.pdf}
\end{filecontents*}

\begin{document}
    \includegraphics{test.pdf}
\end{document}