I've decided to move my thesis from overleaf to my local pc. After some finagling, everything compiles as it should, except for minted
Specifically, I'm getting these two stubborn errors:
/run/media/andrea/Data/TESI/main.tex:15: Package minted Error: You must invoke LaTeX with the -shell-escape flag. /run/media/andrea/Data/TESI/main.tex:27: Package minted Error: You must have `pygmentize' installed to use this package. I'm compiling with LuaLaTeX, I have pygmentize installed (I checked) and I followed this guide to add the --shell-escape flag in the settings.json file for all possible latex engine I could find there (latex, pdf, xe and lua), I've also tried -shell-escape (that's what it mentions in the error, though cli flags like that should have a double dash).
This thesis is about AI so I will need minted to show some code at some point, and it's the only thing breaking the compilation. What should I do? Though I mention it in the title, Im working in VSCode using the LaTeX Workshop addon
--arguments can be used with-(and it's probably not a good idea to globally allow shell-escape, unless you are very trusting) but the error shows you had called latex without--shell-escape(or-shell-escape) You could show the start of the log.