LaTeX warning "Please (re)run Biber on the file: main and rerun LaTeX afterwards": cause and fix

Warning Please (re)run Biber on the file: main and rerun LaTeX afterwards

biblatex has no current data from Biber for this document. Until Biber has run and LaTeX has run again, citations show the key in bold and the bibliography is empty or outdated. The name in the message is the main file without its extension.

Why it happens

How to fix it

A document that produces the message

\documentclass{article}
\usepackage{biblatex}
\addbibresource{refs.bib}
\begin{document}
The algorithm is described in \cite{knuth1984}.
\printbibliography
\end{document}

Open in the editor

File refs.bib:

@book{knuth1984,
  author = {Donald E. Knuth},
  title = {The TeXbook},
  publisher = {Addison-Wesley},
  year = {1984}
}

The corrected document

\documentclass{article}
\usepackage{biblatex}
\addbibresource{refs.bib}
\begin{document}
The algorithm is described in \cite{knuth1984}.
\printbibliography
\end{document}

Open in the editor

Both documents were compiled with pdfLaTeX from TeX Live 2023. The first produces the message, the second compiles without an error.

Finding the line in the editor

The editor lists every error and warning of a compile run with file and line. Select an entry and the cursor jumps to that line. See Error list with jump to the line.

Related pages