James-Yu / LaTeX-Workshop

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

Lag in response AND root-file setting issue #1637

Closed werunom closed 5 years ago

werunom commented 5 years ago

Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]

You still see this issue?: Yes

Describe the bug [Required] After the recent version bump to 8.0, I have noticed a lag in response. Clarification about what I mean by lag in response: when I am working on a tex file, I noticed at regular intervals (say, of few minutes) whenever I used to hit enter, the editor was taking noticable time to move the cursor to the next line. This has never happened before in vscode and latex-workshop. Also, the tex file I am working is not that big --- it was around 13000 words. I have worked earlier with the same extension on files that are easily larger than this.

To investigate, I disabled other extensions except the present one and I observed the same issue. So, I started checking the logs to see what is happening. I observed that the lag in editor response was happening whenever the extension was finding the root files.

So, three issues/queries I have.

  1. The lag was experienced frequently, every few minutes when the extension goes hunting for the root file. Have you and others experienced something similar?

  2. The currently working tex-file has its own begin and \end{document}. Also, I have given the magic-tex command stating that the tex file itself is the root. If this is the case, why is the extension does this:

Is the extension not recognising the current file as root due to the spaces in the directory and file names? If I am working on, say, workspace/Name Folder/First Tex File.tex, then I have tried both the % !TEX root commands:

both of them did not change the extension's behaviour.

  1. While noticing the log, I found something peculiar. The current working tex file is in the third-subfolder of the workspace. Given this, the extension says the following

Why is that the currently working file was not set as the root file?

Logs

LaTeX Workshop Output [Required] [20:33:21] Linter for root file successfully finished in 0s 848ms [20:33:21] Linter log parsed with 5 messages. [20:33:21] Linter for active file successfully finished in 0s 71ms [20:33:21] Linter log parsed with 5 messages. [20:33:23] Linter for active file started. [20:33:23] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [20:33:23] Linter for active file successfully finished in 0s 78ms [20:33:23] Linter log parsed with 5 messages. [20:33:24] Linter for root file started. [20:33:24] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [20:33:24] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [20:33:24] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [20:33:24] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [20:33:25] Linter for active file started. [20:33:25] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [20:33:25] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [20:33:25] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [20:33:25] Root file changed -> cleaning up old file watcher. [20:33:25] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [20:33:25] Parsing /home/Research/Notes/Bundle/Resume.tex [20:33:25] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [20:33:25] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [20:33:25] Linter for root file successfully finished in 0s 771ms [20:33:25] Linter log parsed with 5 messages. [20:33:25] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [20:33:25] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher. [20:33:25] Linter for active file successfully finished in 0s 127ms [20:33:25] Linter log parsed with 4 messages.

Desktop [Required]:

werunom commented 5 years ago

I have few updates. Since the above testing was done in hasty, I thought of doing a clear one this time. Also present these findings more coherently.

Scenario-1 I gave % !TEX root = workspace/Name Folder/Tex\ File.tex

The logs are below. As can be observed in the logs,

  1. The extension seems to pick the right file (workspace\third-folder\present-file) as root.
    1. But after sometime, the extension goes again on hunt for the root file and picks workspace\first-folder\first-tex-file as root
[11:53:55] Found root file by magic comment: /home/Research/Notes/Writings/Philosophy\ of\ Science/Duality/Duality\ of\ Single\ Photons/Duality\ of\ Single\ Photons\ V4.tex [11:53:55] Linter for active file started. [11:53:55] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:53:55] Linter for active file successfully finished in 0s 115ms [11:53:55] Linter log parsed with 5 messages. [11:54:46] Linter for active file started. [11:54:46] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:54:46] Linter for active file successfully finished in 0s 91ms [11:54:46] Linter log parsed with 5 messages. [11:54:48] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:54:48] Linter for root file started. [11:54:48] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:54:48] Linter for root file successfully finished in 0s 112ms [11:54:48] Linter log parsed with 1 messages. [11:54:48] Linter for active file started. [11:54:48] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:54:48] Linter for active file successfully finished in 0s 114ms [11:54:48] Linter log parsed with 5 messages. [11:54:50] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:55:06] Linter for root file started. [11:55:06] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:55:06] Linter for root file successfully finished in 0s 248ms [11:55:06] Linter log parsed with 1 messages. [11:55:07] Linter for active file started. [11:55:07] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:55:07] Linter for active file successfully finished in 0s 119ms [11:55:07] Linter log parsed with 5 messages. [11:55:08] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:56:11] Linter for active file started. [11:56:11] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:56:11] Linter for active file successfully finished in 0s 76ms [11:56:11] Linter log parsed with 5 messages. [11:56:11] Linter for root file started. [11:56:11] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:56:12] Linter for root file successfully finished in 0s 89ms [11:56:12] Linter log parsed with 1 messages. [11:56:12] Linter for active file started. [11:56:12] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:56:12] Linter for active file successfully finished in 0s 91ms [11:56:12] Linter log parsed with 5 messages. [11:56:13] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:56:14] Linter for root file started. [11:56:14] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:56:14] Linter for root file successfully finished in 0s 123ms [11:56:14] Linter log parsed with 1 messages. [11:56:14] Linter for active file started. [11:56:14] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:56:14] Linter for active file successfully finished in 0s 106ms [11:56:14] Linter log parsed with 5 messages. [11:56:15] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:40] Linter for active file started. [11:57:40] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:40] Linter for active file successfully finished in 0s 82ms [11:57:40] Linter log parsed with 5 messages. [11:57:42] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:42] Linter for root file started. [11:57:42] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:57:42] Linter for root file successfully finished in 0s 101ms [11:57:42] Linter log parsed with 1 messages. [11:57:42] Linter for active file started. [11:57:42] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:42] Linter for active file successfully finished in 0s 83ms [11:57:42] Linter log parsed with 5 messages. [11:57:44] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:47] Linter for active file started. [11:57:47] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:47] Linter for active file successfully finished in 0s 81ms [11:57:47] Linter log parsed with 5 messages. [11:57:49] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:49] Linter for root file started. [11:57:49] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:57:49] Linter for root file successfully finished in 0s 116ms [11:57:49] Linter log parsed with 1 messages. [11:57:49] Linter for active file started. [11:57:49] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:49] Linter for active file successfully finished in 0s 111ms [11:57:49] Linter log parsed with 5 messages. [11:57:51] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:54] Linter for active file started. [11:57:54] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:55] Linter for active file successfully finished in 0s 82ms [11:57:55] Linter log parsed with 5 messages. [11:57:56] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:57:56] Linter for root file started. [11:57:56] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:57:56] Linter for root file successfully finished in 0s 105ms [11:57:56] Linter log parsed with 1 messages. [11:57:56] Linter for active file started. [11:57:56] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:57] Linter for active file successfully finished in 0s 88ms [11:57:57] Linter log parsed with 5 messages. [11:57:58] Linter for active file started. [11:57:58] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:59] Linter for active file successfully finished in 0s 112ms [11:57:59] Linter log parsed with 5 messages. [11:57:59] Linter for root file started. [11:57:59] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:57:59] Linter for root file successfully finished in 0s 125ms [11:57:59] Linter log parsed with 1 messages. [11:57:59] Linter for active file started. [11:57:59] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:57:59] Linter for active file successfully finished in 0s 82ms [11:57:59] Linter log parsed with 5 messages. [11:58:01] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:58:01] Linter for root file started. [11:58:01] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:58:01] Linter for root file successfully finished in 0s 116ms [11:58:01] Linter log parsed with 1 messages. [11:58:01] Linter for active file started. [11:58:01] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:58:02] Linter for active file successfully finished in 0s 131ms [11:58:02] Linter log parsed with 5 messages. [11:58:12] Linter for active file started. [11:58:12] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:58:12] Linter for active file successfully finished in 0s 84ms [11:58:12] Linter log parsed with 5 messages. [11:58:13] Linter for active file started. [11:58:13] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:58:14] Linter for active file successfully finished in 0s 107ms [11:58:14] Linter log parsed with 5 messages. [11:58:14] Linter for root file started. [11:58:14] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Bundle/Resume.tex [11:58:14] Linter for root file successfully finished in 0s 116ms [11:58:14] Linter log parsed with 1 messages. [11:58:14] Linter for active file started. [11:58:14] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [11:58:15] Linter for active file successfully finished in 0s 137ms [11:58:15] Linter log parsed with 5 messages. [11:58:16] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [11:58:19] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [11:58:19] Root file remains unchanged from: /home/Research/Notes/Bundle/Resume.tex.

Scenario-2

I gave % !TEX root = workspace/Name Folder/Tex File.tex

This time, I get the proper log reports saying the right file has been picked. So, looks like the magic-tex-root command can have spaces and better not to delimit all spaces by a backward slash. However, after sometime, it sets again the first-folder/first-file as the root.

[12:16:03] Found root file by magic comment: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:03] Looped root file by magic comment found: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex, stop here. [12:16:03] Linter for active file started. [12:16:03] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:16:03] Root file changed from: /home/Research/Notes/Bundle/Resume.tex to /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Find all dependencies. [12:16:03] Root file changed -> cleaning up old file watcher. [12:16:03] Instantiating a new file watcher for /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:03] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:03] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:16:03] Adding /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to file watcher. [12:16:04] Linter for active file successfully finished in 0s 694ms [12:16:04] Linter log parsed with 5 messages. [12:16:04] Linter for root file started. [12:16:04] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:04] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:04] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:16:04] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:16:05] Linter for active file started. [12:16:05] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:16:05] Linter for root file successfully finished in 0s 835ms [12:16:05] Linter log parsed with 5 messages. [12:16:05] Linter for active file successfully finished in 0s 86ms [12:16:05] Linter log parsed with 5 messages. [12:16:36] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [12:16:36] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [12:16:36] Root file changed -> cleaning up old file watcher. [12:16:36] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [12:16:36] Parsing /home/Research/Notes/Bundle/Resume.tex [12:16:36] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [12:16:36] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [12:16:36] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [12:16:36] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.

Scenario-3 With no tex-root command, I get the following log.

[12:24:12] Linter for active file started. [12:24:12] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:24:12] Linter for active file successfully finished in 0s 71ms [12:24:12] Linter log parsed with 5 messages. [12:24:12] Linter for root file started. [12:24:12] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:24:12] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:24:12] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:24:12] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:24:13] Linter for active file started. [12:24:13] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:24:13] Linter for root file successfully finished in 1s 10ms [12:24:13] Linter log parsed with 5 messages. [12:24:14] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [12:24:14] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [12:24:14] Root file changed -> cleaning up old file watcher. [12:24:14] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [12:24:14] Parsing /home/Research/Notes/Bundle/Resume.tex [12:24:14] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [12:24:14] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [12:24:14] Linter for active file successfully finished in 1s 15ms [12:24:14] Linter log parsed with 5 messages. [12:24:14] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [12:24:14] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.

Thought of providing another set of logs after sometime

[12:27:29] Linter for active file started. [12:27:29] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:27:29] Found root file from active editor: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:29] Root file changed from: /home/Research/Notes/Bundle/Resume.tex to /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Find all dependencies. [12:27:29] Root file changed -> cleaning up old file watcher. [12:27:29] Instantiating a new file watcher for /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:29] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:29] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:27:29] Adding /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to file watcher. [12:27:30] Linter for active file successfully finished in 0s 691ms [12:27:30] Linter log parsed with 5 messages. [12:27:32] Linter for active file started. [12:27:32] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:27:33] Linter for active file successfully finished in 0s 68ms [12:27:33] Linter log parsed with 5 messages. [12:27:33] Linter for active file started. [12:27:33] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:27:33] Linter for active file successfully finished in 0s 71ms [12:27:33] Linter log parsed with 5 messages. [12:27:35] Linter for root file started. [12:27:35] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:35] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:35] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:27:35] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:27:35] Linter for active file started. [12:27:35] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:27:35] Linter for root file successfully finished in 0s 848ms [12:27:35] Linter log parsed with 5 messages. [12:27:36] Linter for active file successfully finished in 0s 88ms [12:27:36] Linter log parsed with 5 messages. [12:31:10] Linter for active file started. [12:31:10] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:10] Linter for active file successfully finished in 0s 72ms [12:31:10] Linter log parsed with 5 messages. [12:31:11] Linter for active file started. [12:31:11] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:11] Linter for active file successfully finished in 0s 81ms [12:31:11] Linter log parsed with 5 messages. [12:31:11] Linter for active file started. [12:31:11] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:11] Linter for active file successfully finished in 0s 69ms [12:31:11] Linter log parsed with 5 messages. [12:31:13] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [12:31:13] Linter for root file started. [12:31:13] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:13] Linter for root file successfully finished in 0s 73ms [12:31:13] Linter log parsed with 5 messages. [12:31:13] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:13] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:31:13] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:14] Linter for active file started. [12:31:14] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:15] Linter for active file successfully finished in 0s 926ms [12:31:15] Linter log parsed with 5 messages. [12:31:15] Linter for root file started. [12:31:15] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:15] Linter for root file successfully finished in 0s 72ms [12:31:15] Linter log parsed with 5 messages. [12:31:15] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:15] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:31:15] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:16] Linter for active file started. [12:31:16] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:17] Linter for active file successfully finished in 0s 785ms [12:31:17] Linter log parsed with 5 messages. [12:31:17] Linter for active file started. [12:31:17] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:17] Linter for active file successfully finished in 0s 67ms [12:31:17] Linter log parsed with 5 messages. [12:31:19] Linter for root file started. [12:31:19] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:19] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:19] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [12:31:19] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [12:31:20] Linter for active file started. [12:31:20] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [12:31:20] Linter for root file successfully finished in 0s 906ms [12:31:20] Linter log parsed with 5 messages. [12:31:20] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [12:31:20] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [12:31:20] Root file changed -> cleaning up old file watcher. [12:31:20] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [12:31:20] Parsing /home/Research/Notes/Bundle/Resume.tex [12:31:20] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [12:31:20] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [12:31:20] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [12:31:20] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher. [12:31:20] Linter for active file successfully finished in 0s 90ms [12:31:20] Linter log parsed with 5 messages.

Observations

  1. Only in scenario-3, the response-lag was observed. This can readily be seen in the time taken for lintering the root file --- most of the time-period recorded for Linter for root file successfully finished are close to 1 second. This corresponds with I observing the lag in editor not responding when I hit enter

  2. In all the scenarios, eventually the root-file gets changed. This is surprising because the present working file has its own begin and end document.

werunom commented 5 years ago

Update: lag in response was observed even with the command % !TEX root = workspace/Name Folder/Tex File.tex

Below are the logs. You can see towards the end the unusual long time for Linter for root file successfully finished...

Again not sure why the present the file is not getting picked as root even with the magic-tex-root command!

[13:14:06] Linter for active file successfully finished in 0s 121ms [13:14:06] Linter log parsed with 5 messages. [13:14:07] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:15:04] Linter for active file started. [13:15:04] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:04] Linter for active file successfully finished in 0s 109ms [13:15:04] Linter log parsed with 5 messages. [13:15:05] Linter for active file started. [13:15:05] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:05] Linter for active file successfully finished in 0s 104ms [13:15:05] Linter log parsed with 5 messages. [13:15:07] Linter for active file started. [13:15:07] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:08] Linter for active file successfully finished in 0s 100ms [13:15:08] Linter log parsed with 5 messages. [13:15:09] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:15:09] Linter for root file started. [13:15:09] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:09] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:09] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [13:15:09] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:10] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:15:10] Linter for active file started. [13:15:10] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:11] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:15:11] Linter for root file successfully finished in 2s 79ms [13:15:11] Linter log parsed with 5 messages. [13:15:11] Linter for active file successfully finished in 1s 43ms [13:15:11] Linter log parsed with 5 messages. [13:15:12] Linter for active file started. [13:15:12] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:12] Linter for active file successfully finished in 0s 88ms [13:15:12] Linter log parsed with 5 messages. [13:15:12] Linter for root file started. [13:15:12] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:12] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:12] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [13:15:12] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:15:13] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:15:13] Linter for active file started. [13:15:13] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:15:14] Linter for root file successfully finished in 2s 112ms [13:15:14] Linter log parsed with 5 messages. [13:15:14] Linter for active file successfully finished in 1s 79ms [13:15:14] Linter log parsed with 5 messages. [13:15:14] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex [13:15:14] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [13:15:14] Root file changed -> cleaning up old file watcher. [13:15:14] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [13:15:14] Parsing /home/Research/Notes/Bundle/Resume.tex [13:15:14] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [13:15:14] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [13:15:14] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [13:15:14] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.

Another log-sample with high linting time for root file

[13:19:38] Linter for active file started. [13:19:38] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:19:39] Cannot parse /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Fall back to regex-based completion. [13:19:39] Linter for root file started. [13:19:39] Linter for root file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-f%f:%l:%c:%d:%k:%n:%m ,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [13:19:39] Linter for active file successfully finished in 1s 223ms [13:19:39] Linter log parsed with 5 messages. [13:19:39] Linter for root file successfully finished in 0s 132ms [13:19:39] Linter log parsed with 5 messages. [13:19:39] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [13:19:39] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [13:19:39] Root file changed -> cleaning up old file watcher. [13:19:39] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [13:19:39] Parsing /home/Research/Notes/Bundle/Resume.tex [13:19:39] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [13:19:39] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [13:19:39] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [13:19:39] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher. [13:19:39] Linter for active file started. [13:19:39] Linter for active file running command chktex with arguments -wall,-n22,-n30,-e16,-q,-n8,-n44,-n38,-I0,-f%f:%l:%c:%d:%k:%n:%m [13:19:39] Linter for active file successfully finished in 0s 78ms [13:19:39] Linter log parsed with 52 messages.
James-Yu commented 5 years ago

You are stating that the root file search is problematic, which is not directly caused by the size of the tex files. If so, please provide a minimal working example. I cannot reproduce this problem.

In addition, when providing log, please disable linting if possible as it is producing a lot of noise. I am also not clear about what lag your are mentioning in the messages. In between which lines the lag happened? What did you do that might trigger a re-root-finding (e.g., typing)?

werunom commented 5 years ago

Excuse for being unclear.

Initial hunch

  1. The initial motivation for checking the logs was lag in response. As mentioned in the first comment, when I am working on a tex file, I noticed at regular intervals (say, of few minutes) whenever I used to hit enter, the editor was taking noticable time to move the cursor to the next line.

  2. To check if there are aspects that I can check in the logs, I noticed that the extension was repeatedly checking for root file. In all the logs given above, re-root-finding was triggered when I am just typing in the active-tex-file.

Since these two were happening, I presumed that the lag in response was due to re-root-finding operation. I might be wrong here.

Re-root-finding issue

Having said that, I thought of exploring the re-root-finding further. When checking for different scenarios, I noticed that the current active file, which was initially considered as the root file, was later considered not as the root, but some other file (present in different folder) was considered as the root. Hence thought of reporting these findings.

To reproduce this with MWE, consider test.tex

% !TEX root = <absolute-path>/test.tex

\begin{document}

\section{first}

\section{second}

\end{document}

When this file is active, below is the log generated. (I have switched off the linter as you suggested). In this log, between [15:11:31] and [15:12:23], I kept the editor idle --- did not do anything. As you can see, the re-root-finding got triggered and the root file was changed. Is this expected?

[15:11:31] Found root file by magic comment: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex [15:11:31] Looped root file by magic comment found: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex, stop here. [15:11:31] Root file changed from: /home/Research/Notes/Bundle/Resume.tex to /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex. Find all dependencies. [15:11:31] Root file changed -> cleaning up old file watcher. [15:11:31] Instantiating a new file watcher for /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex [15:11:31] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex [15:11:31] Adding /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex to file watcher. [15:12:23] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [15:12:23] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [15:12:23] Root file changed -> cleaning up old file watcher. [15:12:23] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [15:12:23] Parsing /home/Research/Notes/Bundle/Resume.tex [15:12:23] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [15:12:23] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [15:12:23] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [15:12:23] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.

As mentioned, I presumed that this re-root-finding might have something to do with lag-in-response. This might not be the case.

James-Yu commented 5 years ago

No, it was not expected. Looking into this issue as I accidentially re-produced it. Yet my triggering this bug involves changing the active editor to a non-tex editor (e.g., log, pdf). This will be fixed shortly. Does your provided log requires such an action?

James-Yu commented 5 years ago

@werunom Please try the latest main branch @ 376360198456b2f24824554e23b92e4643026333 and see if the root file changing problem persists. If it is addressed, I will go on with the lag.

werunom commented 5 years ago

No, it was not expected. Looking into this issue as I accidentially re-produced it. Yet my triggering this bug involves changing the active editor to a non-tex editor (e.g., log, pdf). This will be fixed shortly. Does your provided log requires such an action?

In my case, the re-root-finding was also triggered in other scenarios --- editing the tex file, clicking on the log, etc.

Coming to the latest fix, can you please guide me of how to use the latest build in vscode. I have not done this before.

James-Yu commented 5 years ago

Try this. There are some additional logs in the dev console.

latex-workshop-8.0.6.vsix.zip


Unzip this file to get a vsix file. In vscode, extension -> three dots -> Install from VSIX ...

werunom commented 5 years ago

Thanks. I will do so and get back to you with log results.

werunom commented 5 years ago

The updated fix did not solve the problem. Below is the log. Just by opening a tex file, (i) made it the root file and (ii) immediately the root file was changed

[17:24:24] Instantiating a new file watcher for /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:24:24] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:24:24] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:24:24] Adding /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to file watcher. [17:24:29] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex [17:24:29] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [17:24:29] Root file changed -> cleaning up old file watcher. [17:24:29] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [17:24:29] Parsing /home/Research/Notes/Bundle/Resume.tex [17:24:29] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [17:24:29] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [17:24:29] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [17:24:29] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.
James-Yu commented 5 years ago

I cannot find the reason, nor can I reproduce with the minimal working example. Need to wait for others' analysis.

It seems that at :29 a re-find is triggered at no explicit user action. I sincerely don't understand why this happened.

werunom commented 5 years ago

Update: I was bit more observant this time.

  1. I opened a file, and continued to work on it for sometime (writing, copy-pasting, etc.)

  2. Then, I opened the log. That is when the re-root-finding got triggered.

I have separated these two events by ==== in the below log.

[17:32:43] Found root file by magic comment: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:32:43] Looped root file by magic comment found: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex, stop here. [17:32:43] Root file changed from: /home/Research/Notes/Bundle/Resume.tex to /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex. Find all dependencies. [17:32:43] Root file changed -> cleaning up old file watcher. [17:32:43] Instantiating a new file watcher for /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:32:43] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:32:43] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:32:43] Adding /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to file watcher. [17:33:48] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:33:48] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:33:48] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:12] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:12] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:34:12] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:15] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:15] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:34:15] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:19] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [17:34:19] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [17:34:19] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex =============== [17:34:20] Found files that might be root, choose the first one: /home/Research/Notes/Bundle/Resume.tex,/home/Research/Notes/Writings/Archaeoastronomy/Teotihuacan.tex,/home/Research/Notes/Writings/Uncertainty of technology/Analysis of Substantial Equivalence.tex,/home/Research/Notes/Writings/Uncertainty of technology/Technological Uncertainty.tex,/home/Research/Notes/Philosophy Readings/Metaphysics/Objects - Quine.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 6.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 7.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 5.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 3.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 9.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 4.tex,/home/Research/Notes/Writings/Phd/Progress Reports/Progress report 8.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 2 - Non-spatiotemporal interpretation of matter & causality in quantum physics.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 1 - Material as Concrete V2.tex,/home/Research/Notes/Writings/Phd/Proposals/Proposal 4 - Physicality of quantum entities.tex,/home/Research/Notes/Writings/Phd/Thesis/0-Main.tex,/home/Research/Notes/Philosophy Readings/Philosophy of Science/Scientific objects/Scientific objects-Unobservables-theoretical.tex,/home/Research/Notes/Bundle/Configuration/latex/TitlePage.tex,/home/Research/Notes/Bundle/Configuration/latex/Tikz.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/Physical Structure of Entities - bkp.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 4.tex,/home/Research/Notes/Writings/Phd/Writing/Physicality/An enquiry of physicality 3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/test.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single photons V1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V3.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4 - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Substantial analysis of duality claims/Substantial analysis of duality claims of photon.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Different notions of duality/Different notions of duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Interpretations of wave-particle duality - Einstein Planck Dirac.tex,/home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of radiation/Survey of wave-particle duality.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Theoretical and Physical interpretations of light quantum.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Analysis of photons in AC and MZ/Analysis of photons in AC and MZ.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - bkp - 1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/How to talk about photons/How to talk about photons - 2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp1.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V1 - outline - bkp.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2 - outline - bkp3.tex,/home/Research/Notes/Writings/Philosophy of Science/Scientific entities/Photons/Superposition and Interference/Interference of photons V2-bkp.tex [17:34:20] Root file changed from: /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex to /home/Research/Notes/Bundle/Resume.tex. Find all dependencies. [17:34:20] Root file changed -> cleaning up old file watcher. [17:34:20] Instantiating a new file watcher for /home/Research/Notes/Bundle/Resume.tex [17:34:20] Parsing /home/Research/Notes/Bundle/Resume.tex [17:34:20] Parsing /home/Research/Notes/Bundle/Configuration/latex/config.tex [17:34:20] Found .bib file /home/Research/Notes/Bundle/Configuration/Bibliographies.bib [17:34:20] Adding /home/Research/Notes/Bundle/Resume.tex to file watcher. [17:34:20] Adding /home/Research/Notes/Bundle/Configuration/latex/config.tex to file watcher.

Realising that the root file changes only when log is opened probably indicates that --- if I had continued to work, the re-rooting would not have happened. Probably that also answers why the re-find is triggered at no explicit user action. Would this make sense?

Since I was not aware of it, probably all the above claims are false-alarms since all of them involves opening the logs and thus triggering the activity of re-rooting.

werunom commented 5 years ago

After working with the Master-version for sometime, I can confirm that the re-finding of root is triggered only when I open the log.

Going back to the main issue which started all these, I still observe the lag. And this has been --- as the below logs show --- largely due to parsing of the tex file on every small change.

Just thinking out loud: Has this implementation tested for performance? The current tex file is around 13000 words. Would not the lagging be more severe for a larger file?

[19:30:43] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:30:47] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:30:47] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:30:47] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:30:55] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:30:55] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:30:55] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:01] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:01] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:01] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:07] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:07] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:07] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:10] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:10] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:10] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:18] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:18] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:18] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:22] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:22] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:22] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:24] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:24] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:24] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:46] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:46] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:46] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:55] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:55] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:55] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:58] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:31:58] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:31:58] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:32:01] Parsing /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex [19:32:01] Found .bib file /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/references.bib [19:32:01] File watcher: responding to change in /home/Research/Notes/Writings/Philosophy of Science/Duality/Duality of Single Photons/Duality of Single Photons V4.tex
James-Yu commented 5 years ago

@tamuratak It seems that the parsing at line 712 of manager.ts is not done asynchronously. I did not find a way to resolve this. Can you please take a look?

tamuratak commented 5 years ago

If you use the same value of timeout for latexParser.parse in manager.ts and setTimeout in main.ts, the parser is always running in the worst case. So, the value for latexParser.parse should be a half or a third of the one for setTimeout in main.ts.

James-Yu commented 5 years ago

That is not the key problem. The parser takes ~500ms to parse my ongoing tex, which renders a 8-page IEEE paper, with a beefy desktop. That means constant stutters between typing. What I was asking was on the possibility of making the parser faster, not how to fine tune the timeout: we are far from fine tuning things.

James-Yu commented 5 years ago

If there is no way of making it asynchronous to the main thread of the extension, and making it faster, then we can always set the timeout to something like 100ms to minimize the visual distraction.


edit: but that just loses the reason of using a syntax parser instead of regex, which seems to be implemented with C, thus quite fast.

tamuratak commented 5 years ago

I am not sure what you mean by asynchronous to the main thread of the extension. Node.js does not support multi-thread programming. Only the main thread always exists in the process of node.js. Worker Threads is still experimental.

You can run the parser in a different process using Cluster if you want.

edit: Using Child Process might be simpler in this case.

tamuratak commented 5 years ago

See #1647, an example of using workerpool package to make the parser run in a child process.

jlelong commented 5 years ago

Just a side remark. I think we should add a configuration setting to deactivate parsing on document change and to delegate parsing to the file watcher, ie when the file is saved. It is important to make sure the extension remains little CPU demanding. As far as I am concerned I would rather have parsing triggered by save.

James-Yu commented 5 years ago

I agree with you @jlelong . Will add the config soon.

In the meantime, This still cannot resolve the stutter upon saving, though less frequently. I am thinking of a three-step process to alleviate the issue:

How do you think of this?


A side note: I noticed a --cache flag in PEG.js CLI. Will this change the efficiency of the parser? @tamuratak

tamuratak commented 5 years ago

No as far as I tried. An error, Maximum call stack size exceeded, sometimes happens if enabled.

tamuratak commented 5 years ago

@James-Yu have you tried #1647?

James-Yu commented 5 years ago

Not yet. I am investigating child_process.fork to see if that works.

James-Yu commented 5 years ago

@tamuratak just checked the PR and it works really well! Feel free to merge when you think it is ready as it is still tagged as draft.

James-Yu commented 5 years ago

The lag will be fixed in the next release. @werunom

werunom commented 5 years ago

@James-Yu @tamuratak --- Thanks for fixing this!

IgorKrupenja commented 5 years ago

Am I correct to assume that the fix is in 8.0.7? I was having similar issues with 8.0.x but not since updating to 8.0.7.

werunom commented 5 years ago

@krupenja - even though 8.0.7 had some attempts, the positive fix was provided in 8.1.0. See the change-log for reference.