pdflatex hangs indefinitely without "-interaction=nonstopmode" when launched with subprocess
pdflatex is used by default in tex.py, and works fine being launched by subprocess when there are no issues - but hangs indefinitely when there is a mistake in the file being built, i.e., incorrect syntax. This is because, by default, pdflatex responds interactively waiting for you to fix the issue, unless the flag "-interaction=nonstopmode" is used.
Hence, it no longer hangs when Line 32 of tex.py, is changed to:
cmd = f"{settings.build_engine} -interaction=nonstopmode {settings.source}"
Not sure how to fit this in with alternative build backends and flags etc., but this needs to be included by default somewhere. I am also not sure where else pdflatex or packages with similar functionality may be used.