tikz/externo: Erro ao gravar arquivos

tikz/externo: Erro ao gravar arquivos

O código a seguir funcionava antes, mas agora está tendo problemas para gravar arquivos de saída no destino. Qual é o problema aqui?

  • Solução tentada deesseproblema, mas não funcionou

comando:

lualatex
--synctex=0
--shell-escape
--output-dir=.build
--interaction=nonstopmode
--file-line-error
main.tex

Árvore de arquivos:

Árvore de arquivos

principal.log:

Package tikz Error: Sorry, the system call 
'lualatex -shell-escape -halt-on-error -interaction=batchmode -jobname "./.build/figures/figure.0.0.0" "\def\tikzexternalrealjob{main}\input{main}"'
did NOT result in a usable output file 
'./.build/figures/figure.0.0.0' (expected one of .pdf:.jpg:.jpeg:.png:). 
Please verify that you have enabled system calls. 
For pdflatex, this is 'pdflatex -shell-escape'. 
Sometimes it is also named 'write 18' or something like that. 
Or maybe the command simply failed? 
Error messages can be found in './.build/figures/figure.0.0.0.log'. 
If you continue now, I'll try to typeset the picture.

main.tex (MWE):

\documentclass{standalone}

% ========================= Tikz ========================= %
\usepackage{tikz}\usetikzlibrary{babel}
% ===================== External lib ===================== %
% \usepackage{shellesc} % Solution from similar question (doesnt work)
\usetikzlibrary{external}
\tikzsetfigurename{figure.\arabic{part}.\arabic{section}.} % set figure names
\tikzset{external/system call={%
    lualatex \tikzexternalcheckshellescape
    -halt-on-error
    -interaction=batchmode
    -jobname "\image" "\texsource"
    % --jobname "\image" \subfilename
}}

\tikzexternalize[
    up to date check={simple}, % faster check
    figure list={true}, % generate list of figures file
    prefix={./.build/figures/}
] % turn externalization on/off
% Fix background
\NewCommandCopy\oldtikzpicture\tikzpicture
\RenewDocumentCommand\tikzpicture{O{}}{\oldtikzpicture[#1]\nopagecolor}

\begin{document}

\tikzset{external/remake next=true}
\begin{tikzpicture}
    
    \draw[->, thick, blue!60!]
    ( 0,  0)--node[anchor=south west]{\( A \)}
    (-1,0.5);
    
\end{tikzpicture}

\end{document}

Responder1

Acontece que \tikzsetexternalprefix{...}começa como arquivo raiz já dentro .builddo diretório, então a configuração \tikzsetexternalprefix{./figures/}resolveu o problema.

informação relacionada