I have configured my TeX runs to save all aux and output files into a 'temp' subdirectory using the 'output-directory' option of lualatex in TeXlive.
Everything works wonderful, Biber and Makeglossaries are running etc. The PDF also looks nice.
But TeXstudio displays a lot of errors and warnings (without them occurring in the logfile or being actually true). There are some "undefined control sequences", "no file *.acr" (from glossaries), "undefined references", "label(s) may have changed", "please (re)run biber" and so on. As said, they only appear in TeXstudio, not in the log file. And all those references, the bibliography, the glossary and so on are perfect in the PDF.
I could just ignore them but then I miss the real warnings that I want to take care about since they are hidden between hundreds of wrong warnings.
Any ideas how to solve this?
For your insights, I run the following commands for compilation. $1 is the argument my bash script gets, meaning the master file name:
# LuaLatex
lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1
# Biber
cp ./general/literatur.bib ./temp/general
biber ./temp/$1
# Makeglossaries
makeglossaries -d ./temp $1
# LuaLatex
lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1
lualatex -synctex=1 -interaction=nonstopmode -output-directory=./temp --shell-escape $1