LaTeX-Workshop: Auto-completion for bibliography keys is not working

Hi guys,

I am using VS Code 1.40 with Latex-Workshop in the latest version 8.3.1 with default settings.

I have a large tex document with two bibliographies.

I recently changed the bibliography backend from bibtex (with multibib) to biblatex using

\usepackage[backend=biber,defernumbers,maxnames=10, sorting=ynt]{biblatex} \addbibresource{own.bib} \addbibresource{related.bib}

The latex project is compiled with xelatex: "xelatex", "biber", "xelatex", "xelatex"

The project comprises multiple .tex files that are included in the main .tex file.

Since I changed the bibliography backend to biblatex the auto-completion of the \cite{} is not working anymore. In particular, no references are shown while typing \cite{ and the bibliography key needs to be inserted manually.

This was not the case while working with bibtex and all references popped up as suggestion for the auto-completion via the \cite{}command.

Yet, there are no compile errors and the references are resolved and the two bibliographies show up as expected in the PDF.

There are no additional custom settings applied.

Thanks in advance for your help!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 3
  • Comments: 25 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I unfortunately have no further information to add, other than this happened for me as well - same MO, changing from bibtex to biblatex.

\usepackage[style=ieee]{biblatex} \addbibresource{bib/mybib.bib}

I do not have any of the incompatible extensions installed either.

It’s on a mac, if that matters.

====== Edit below: ====== I hereby provide a MWE:

Structure: main.tex preamble.tex mybib.bib

Contents of main.tex:

\input{preamble}
\begin{document}
Test. \cite{sartorius2012}

\printbibliography
\end{document}

Contents of preamble.tex

\documentclass{article}
\usepackage{biblatex}
\addbibresource{mybib.bib}

Contents of mybib.bib

@article{sartorius2012,
  title = {sartorius reference},
  author = {Sartorius, Bernd and Stanze, Dennis and G\"obel, Thorsten and Schmidt, Detlef and Schell, Martin}
}
@article{test2019,
  title = {tester},
  author = {Sartorius, Bernd and Stanze, Dennis and G\"obel, Thorsten and Schmidt, Detlef and Schell, Martin}
}

The breaking change is to have the entire preamble in the preamble file. Moving the \addbibresource{mybib.bib} to the main like so fixed it:

\input{preamble}

\addbibresource{mybib.bib}
\begin{document}
Test. \cite{sartorius2012}
\printbibliography
\end{document}

It fixed it for the MWE, but it did also fix it for my large project. (+150 pages).