James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.55k stars 522 forks source link

Edits to bib file will not update intellisense suggestions, faq is empty and polling does not exist anymore #4166

Closed nickelswitte closed 6 months ago

nickelswitte commented 6 months ago

Please fill the following fields with a star (*) and provide as much related information as possible.

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • [ ] The issue has not been reported in this repository.
  • [x] The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • [x] The FAQ cannot address the issue.
  • [x] The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.

Environment*

Please write exact version numbers instead of descriptors such as latest.

  • Operating System: [e.g. Windows 10]
  • Visual Studio Code Version: [e.g. 1.41.0]
  • LaTeX Workshop Version: [e.g. 8.5.0]
  • TeX Distribution Version: [e.g. TeX Live 2019 / MiKTeX 2.9.7250]

Please list the environment and version number if you are using VSCodium, Snap or Flatpack versions of Visual Studio Code, and/or Visual Studio Code Remote Containers/SSH/WSL.

  • I am using XXX whose version is YY.ZZ

The Issue*

Please briefly describe the issue you come across.

  • Changes in the bib file are not updated in the intellisense suggestions.
  • Another issue on this exists here, but I cannot reopen it
  • All suggested fixes are not available anymore. The FAQ section does not exist and the latex-workshop.latex.watch.usePolling does not exist anymore (at least not for me)

Here is the original problem description: Some tools (for example retorquere/zotero-better-bibtex) that work with .bib files export them using create-and-move. That is, they first write to a temporary file and then swap the old file for the temporary file. This seems to confuse the file watcher in LaTeX workshop so that changes to this file are only detected once. This means that Intellisense suggestions for citations are not updated until vs code is restarted.

Reproduction Steps

Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration. Create an tex document with a bibliography. Change the bibliography several times using a tool that uses create-and-move for example using the Better BibLaTeX extension for Zotero above)

Expected Behavior

That updates in the bib file will also reflect in the intellisense suggestions

Logs

LaTeX Workshop Output*

Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered.

[Paste the log here. Do not remove the surrounding backquotes (`).]

Developer Tools Console

Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.

[Paste the log here. Do not remove the surrounding backquotes (`).]

Anything Else?

Add any other context about the problem below.

nickelswitte commented 6 months ago

Can you quickly elaborate how this commit will solve my issue? Is there a certain setting I have to set in a specific way?