You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug
Some tools (for example https://github.com/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.
To Reproduce
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
I expect changes to the bibliography beyond the first to be detected.
[felipe.nasc-touchbar]: Command `workbench.action.toggleSidebarVisibility` appears multiple times in the `commands` section.
abstractExtensionService.ts:899 [felipe.nasc-touchbar]: Command `workbench.action.togglePanel` appears multiple times in the `commands` section.
abstractExtensionService.ts:899 [felipe.nasc-touchbar]: Command `workbench.action.showCommands` appears multiple times in the `commands` section.
abstractExtensionService.ts:899 [felipe.nasc-touchbar]: Command `editor.action.toggleRenderWhitespace` appears multiple times in the `commands` section.
abstractExtensionService.ts:899 [felipe.nasc-touchbar]: Command `workbench.action.openGlobalSettings` appears multiple times in the `commands` section.
console.ts:137 [Extension Host] (node:15421) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Code Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
Desktop
Please write exact version numbers. Please don't write latest instead of exact numbers.
OS: macOS Catalina (10.15.4)
VS Code version: 1.59.0
Extension version: 8.20.2
TeX distribution version: TeX Live 2020
Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
I think this is a problem in this extension because writing using create-and-move is not an unreasonable use case. Possible solutions I see is enabling useFsEvents, or watching for changes on directory level instead of on file level.
The text was updated successfully, but these errors were encountered:
Preliminary questions
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug
Some tools (for example https://github.com/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.
To Reproduce
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
I expect changes to the bibliography beyond the first to be detected.
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Desktop
Please write exact version numbers. Please don't write
latest
instead of exact numbers.Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
No
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
I first created an issue in the repository for the tool that writes the .bib-file: retorquere/zotero-better-bibtex#1886. In that issue there is also a minimal example reproducing this bug (with code extracted from https://github.com/James-Yu/LaTeX-Workshop/blob/master/src/components/managerlib/bibwatcher.ts). Setting
useFsEvents: true
when watching the file seems to solve this problem. Also, turning on polling solves the problem (for this there is even a settinglatex-workshop.latex.watch.usePolling
).I think this is a problem in this extension because writing using create-and-move is not an unreasonable use case. Possible solutions I see is enabling useFsEvents, or watching for changes on directory level instead of on file level.
The text was updated successfully, but these errors were encountered: