You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]
You still see this issue?: Yes, and all other extensions have been left disabled during testing.
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug [Required]
On my computer a build will not automatically run when a file in a subfolder is saved. It does work for the master document in the root folder. This happens on any version from 8.7.0 forward. I've checked 8.5.0 and 8.6.0 on my computer and they work properly. The build folder is never created. latex-workshop.latex.autoBuild.run is set to onFileChanged. The file is on the local disk. I've tried setting latex-workshop.latex.watch.usePolling to true, no effect. latex-workshop.latex.search.rootFiles.include is set to the default of **/*.tex. latex-workshop.latex.rootFile.useSubFile is set to true. latex-workshop.latex.rootFile.doNotPrompt is set to true (applies to 8.7.2 only of course).
To Reproduce
Steps to reproduce the behavior:
Make sure the -cd option is added to the latexmk recipe.
I expect a subfile with a .tex extension to be compiled when the file is saved.
Logs [Required]
Please paste the whole log messages here, not parts of ones. It is very important to identify problems.
LaTeX Workshop Output [Required]
[18:01:53] Initializing LaTeX Workshop.
[18:01:53] Creating file watcher for .pdf files.
[18:01:53] Creating LaTeX Workshop http and websocket server.
[18:01:53] LaTeX Workshop initialized.
[18:01:53] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Root file changed from: undefined to /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex. Find all dependencies.
[18:01:53] Instantiating a new file watcher for /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Creating file watcher for .bib files.
[18:01:53] Parsing /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Could not resolve included file undefined
[18:01:53] Server created on 127.0.0.1:64895
[18:01:53] Adding /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex to file watcher.
[18:01:53] Snippet data loaded.
[18:01:53] LaTeX Workshop version: 8.7.2
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:54] Could not resolve included file undefined
[18:01:56] LOG command invoked.
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Could not resolve included file undefined
[18:02:21] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:02:21] Found root file of this subfile from active editor: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex
[18:02:21] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:02:21] Root file remains unchanged from: /Shared/Projects/Course Projects/NS70000 Software Engineering/NS70500 Software Development Tools/NS70501 Software Development Tools/Workbook/workbook.tex.
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
[18:02:28] Could not resolve included file undefined
Developer Tools Console [Required]
ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop [Required]
OS: MacOS 10.14.6
VS Code version: 1.42.1
Extension version: 8.7.2
TeX distribution version: [e.g. TeX Live 2019/MiKTeX 2.9.7250]
Additional questions
Are you using LaTeX Workshop with VS Code Remote?
No
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
Remote Containers/Remote SSH/Remote WSL
Remote Extension Version: [e.g. 0.48.0]
Additional context
I would be the first to suspect that I have missed something about a new setting or change in 8.7.0 but I have been over and over the ones I see related to the watcher and subfiles and I haven't found it even after experimenting with changes. My apologies if I did miss something :(
Is there any chance this is related to the change made after #1895? It does not seem likely because it commences with 8.7.0, but it is clearly a subfolder issue. Please note in the log that a watcher is never created for section-0.tex even though it is opened, changed, and saved!
The text was updated successfully, but these errors were encountered:
As explained in the wiki, we use two strategies to discover all included files
the rootFile is parsed to discover all the files it includes using input, include, InputIfFileExists, subfile, import and subimport and the process goes on recursively. Unfortunately, this does not work when the included file name contains a TeX macro. Hence, the second approach
When a .fls file with the same basename as the root file exists, it is used to compute the full list of dependencies. This file is produced by pdflatex thanks to the -recorder option automatically parsed by latexmk.
As noted in #1972, there was an error in the path resolution of files listed in rootFile.fls, hence the issue.
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]
You still see this issue?: Yes, and all other extensions have been left disabled during testing.
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: Yes
Describe the bug [Required]
On my computer a build will not automatically run when a file in a subfolder is saved. It does work for the master document in the root folder. This happens on any version from 8.7.0 forward. I've checked 8.5.0 and 8.6.0 on my computer and they work properly. The build folder is never created. latex-workshop.latex.autoBuild.run is set to onFileChanged. The file is on the local disk. I've tried setting latex-workshop.latex.watch.usePolling to true, no effect. latex-workshop.latex.search.rootFiles.include is set to the default of **/*.tex. latex-workshop.latex.rootFile.useSubFile is set to true. latex-workshop.latex.rootFile.doNotPrompt is set to true (applies to 8.7.2 only of course).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect a subfile with a .tex extension to be compiled when the file is saved.
Logs [Required]
Please paste the whole log messages here, not parts of ones. It is very important to identify problems.
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop [Required]
Additional questions
Are you using LaTeX Workshop with VS Code Remote?
No
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
Additional context
I would be the first to suspect that I have missed something about a new setting or change in 8.7.0 but I have been over and over the ones I see related to the watcher and subfiles and I haven't found it even after experimenting with changes. My apologies if I did miss something :(
Is there any chance this is related to the change made after #1895? It does not seem likely because it commences with 8.7.0, but it is clearly a subfolder issue. Please note in the log that a watcher is never created for section-0.tex even though it is opened, changed, and saved!
The text was updated successfully, but these errors were encountered: