Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autobuild fails in subfolders in 8.7.0+ #1971

Closed
jmussman opened this issue Feb 29, 2020 · 1 comment
Closed

Autobuild fails in subfolders in 8.7.0+ #1971

jmussman opened this issue Feb 29, 2020 · 1 comment
Labels
question Issue represents a question

Comments

@jmussman
Copy link

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:

  1. Make sure the -cd option is added to the latexmk recipe.
  2. Start with my template project: https://github.com/nextstepitt/standard-course-template.
  3. Open Workbook/01_Rename_Me/section-0.tex.
  4. Change and save the file.

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]

[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!

jlelong added a commit that referenced this issue Mar 1, 2020
@jlelong
Copy link
Collaborator

jlelong commented Mar 1, 2020

This is related to #1972.

As explained in the wiki, we use two strategies to discover all included files

  1. 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
  2. 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.

@jlelong jlelong closed this as completed Mar 1, 2020
@tamuratak tamuratak added the question Issue represents a question label Jun 3, 2021
Repository owner locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Issue represents a question
Projects
None yet
Development

No branches or pull requests

3 participants