This problem is very straight forward: When I use PDFLaTeX in Texmaker 5.1.3 when I have not checked the box "Use a 'build' subdirectory for output files", the output to the following tex code is as one would expect, with the minted code showing on the document:
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[cache=false, newfloat]{minted}
\begin{document}
begin code
\begin{minted}{python}
def test:
pass
\end{minted}
end code
\end{document}
Output:
But when I check the box , the pdf ignores the code section altogether:
The command of PDFLaTeX defined in the configuration of Texmaker is:
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex
Any idea on how to solve this? I don't like having generated files sitting around next to my main doc so unchecking the option is not a viable answer.