Closed mnchsmn closed 3 years ago
Initializing LaTeX Workshop
. It is very important to identify problems.When all of the above is done, we will reopen this issue if needed.
I have updated my post with the logs
I cannot reproduce the issue with VS Code 1.57
. Coud you update VS Code and provide a minimal example to reproduce the issue if it still exists?
However on the next update, around 17:57-58, it didn't work. I can't cite the newest entry via the citation browser.
It is surprising because there is no log from the bib file watcher with this timestamp. Do you confirm that you saved the .bib
file during this interval and that the bib watcher did not notice it?
Plese try setting latex-workshop.latex.watch.usePolling to true
and restart VS Code.
I would prefer to not usePolling and I think that this functionality should work without it, right? I personally am fine with just reloading the window as a workaround, but I still believe that you might have an interest in fixing this.
I updated VS Code to 1.57 and the issue persists. I reproduced it in a MWE:
main.tex
\documentclass{article}
\usepackage[
backend=biber,
natbib=true,
]{biblatex}
\bibliography{library}
\begin{document}
\citep{chenIsolatingSourcesDisentanglement2019}
\end{document}
library.bib
@online{chenIsolatingSourcesDisentanglement2019,
title = {Isolating {{Sources}} of {{Disentanglement}} in {{Variational Autoencoders}}},
author = {Chen, Ricky T. Q. and Li, Xuechen and Grosse, Roger and Duvenaud, David},
date = {2019-04-23},
url = {http://arxiv.org/abs/1802.04942},
urldate = {2020-11-04},
abstract = {We decompose the evidence lower bound to show the existence of a term measuring the total correlation between latent variables. We use this to motivate our \$\textbackslash beta\$-TCVAE (Total Correlation Variational Autoencoder), a refinement of the state-of-the-art \$\textbackslash beta\$-VAE objective for learning disentangled representations, requiring no additional hyperparameters during training. We further propose a principled classifier-free measure of disentanglement called the mutual information gap (MIG). We perform extensive quantitative and qualitative experiments, in both restricted and non-restricted settings, and show a strong relation between total correlation and disentanglement, when the latent variables model is trained using our framework.},
archiveprefix = {arXiv},
eprint = {1802.04942},
eprinttype = {arxiv},
file = {/Users/simonkibler/Zotero/storage/Z9GTRM37/Chen et al. - 2019 - Isolating Sources of Disentanglement in Variationa.pdf;/Users/simonkibler/Zotero/storage/MXZ4ITPJ/1802.html},
keywords = {bertrand,disentanglement,key,total correlation,vae},
primaryclass = {cs, stat}
}
Compile this and open the Latex Workspace log. Then add entries one by one to the .bib file using a different editor e.g. TextEdit. The first change is recognized and parsed, the second and any following ones are not.
Here are the entries I used:
@online{choiDiscondVAEDisentanglingContinuous2020,
title = {Discond-{{VAE}}: {{Disentangling Continuous Factors}} from the {{Discrete}}},
shorttitle = {Discond-{{VAE}}},
author = {Choi, Jaewoong and Hwang, Geonho and Kang, Myungjoo},
date = {2020-09-16},
url = {http://arxiv.org/abs/2009.08039},
urldate = {2020-12-22},
abstract = {We propose a variant of VAE capable of disentangling both variations within each class and variations shared across all classes. To represent these generative factors of data, we introduce two sets of continuous latent variables, private variable and public variable. Our proposed framework models the private variable as a Mixture of Gaussian and the public variable as a Gaussian, respectively. Each mode of the private variable is responsible for a class of the discrete variable.},
archiveprefix = {arXiv},
eprint = {2009.08039},
eprinttype = {arxiv},
file = {/Users/simonkibler/Zotero/storage/GUBLYMVD/Choi et al. - 2020 - Discond-VAE Disentangling Continuous Factors from.pdf},
keywords = {discrete and continuous latents,disentanglement},
langid = {english},
primaryclass = {cs, stat}
}
@online{camutoTheoreticalUnderstandingRobustness2021,
title = {Towards a {{Theoretical Understanding}} of the {{Robustness}} of {{Variational Autoencoders}}},
author = {Camuto, Alexander and Willetts, Matthew and Roberts, Stephen and Holmes, Chris and Rainforth, Tom},
date = {2021-01-29},
url = {http://arxiv.org/abs/2007.07365},
urldate = {2021-02-03},
abstract = {We make inroads into understanding the robustness of Variational Autoencoders (VAEs) to adversarial attacks and other input perturbations. While previous work has developed algorithmic approaches to attacking and defending VAEs, there remains a lack of formalization for what it means for a VAE to be robust. To address this, we develop a novel criterion for robustness in probabilistic models: r-robustness. We then use this to construct the first theoretical results for the robustness of VAEs, deriving margins in the input space for which we can provide guarantees about the resulting reconstruction. Informally, we are able to define a region within which any perturbation will produce a reconstruction that is similar to the original reconstruction. To support our analysis, we show that VAEs trained using disentangling methods not only score well under our robustness metrics, but that the reasons for this can be interpreted through our theoretical results.},
archiveprefix = {arXiv},
eprint = {2007.07365},
eprinttype = {arxiv},
file = {/Users/simonkibler/Zotero/storage/8FFHJZR2/Camuto et al. - 2021 - Towards a Theoretical Understanding of the Robustn.pdf},
keywords = {key},
langid = {english},
primaryclass = {cs, stat}
}
this functionality should work without it, right?
No, it does not work in some cases.
Please answer whether setting latex-workshop.latex.watch.usePolling
to true
solves the issue.
I confirm the behaviour described by @mnchsmn when using TextEdit to edit the .bib
file. However, everything works fine when editing the .bib
file with Vim or VS Code for instance.
The issue is not related to LW for to https://github.com/paulmillr/chokidar, which is used to watch file changes.
this functionality should work without it, right?
No, it does not work in some cases.
Please answer whether setting
latex-workshop.latex.watch.usePolling
totrue
solves the issue.
Setting latex-workshop.latex.watch.usePolling
to true
does seem to solve the issue.
@jlelong We had better not tell inexperienced users the library we use. They would open an issue at the repository and disturb the library's author.
This is our issue. chokidar
uses fsevents
by default on macOS. However, we don't ship the extension with it because fsevents
includes a binary library file, and it would terminate the extension host in some cases.
Preliminary questions [Required]
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 [Required]
I am just using a regular .bib file in the root directory of my project. Generally everything works fine. Whenever the .bib file is updated (using zoteros 'keep up to data' function), the citation browser doesn't register the changes. Cleaning aux files does not help. I can copy the citation key by hand and cite it and it will build just fine, however even after that, the citation browser doesn't find the citation. What helps is executing the VS Code "Developer: Reload Window" command (Or jsut restarting VS Code)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It would be expected to have the new entry available in the citation browser
Logs [Required]
Please paste the whole log messages here, not parts of ones. The log should start with
Initializing LaTeX Workshop
. It is very important to identify problems.LaTeX Workshop Output [Required]
At 17:51 it worked once as expected. This is where .bib file gets parsed also in the log. However on the next update, around 17:57-58, it didn't work. I can't cite the newest entry via the citation browser.
Developer Tools Console [Required]
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop [Required]
Please write exact version numbers. Please don't write
latest
instead of exact numbers.Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
Additional context