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

texlab.auxDirectory and texlab.build.auxDirectory behave differently #911

Closed
puppe opened this issue Aug 4, 2023 · 2 comments · Fixed by #914
Closed

texlab.auxDirectory and texlab.build.auxDirectory behave differently #911

puppe opened this issue Aug 4, 2023 · 2 comments · Fixed by #914

Comments

@puppe
Copy link

puppe commented Aug 4, 2023

I call latexmk with -output-directory=latexmk. Consequently, the PDF file is created in the latexmk sub-directory. I used to set
texlab.auxDirectory to "latexmk" and everything worked as expected. TexLab was able to find the compiled PDF file and passed it correctly to my PDF viewer for forward search. In the latest version, 5.8.0, texlab.auxDirectory has been deprecated. I tried replacing it with texlab.build.auxDirectory but then TexLab looks for the PDF file in the root directory. I haven‘t been able to reproduce the old bevahiour without using the old, deprecated option. Was this intended? What is the proper way to tell TexLab the location of the compiled PDF file?

@pfoerster
Copy link
Member

@puppe
Prior to 5.8.0, texlab was using texlab.auxDirectory as the directory containing all build artifacts (.aux, .log and .pdf files). However, this is not flexible enough because you can change the .aux directory without changing the other directories (#906). That's why I splitted it up in texlab.build.logDirectory and texlab.build.auxDirectory. texlab.auxDirectory still exists as a fallback for backwards compatibility but the new settings take precedence if they are set.

The PDF file is searched in texlab.build.logDirectory currently, but I think it is more clear if we introduce an additional texlab.build.pdfDirectory setting (see #914).

pfoerster added a commit that referenced this issue Aug 5, 2023
@puppe
Copy link
Author

puppe commented Aug 5, 2023

I have since replaced -output-directory with -auxdir, which is what I actually wanted. Previously, I had an extra rule in my Makefile that copied the PDF to the root directory. So, I guess I learned something useful about latexmk in the process. Didn‘t know about -auxdir.

Thanks for acting so quickly on this! Looking forward to #914 being merged. Feel free to close this issue whenever you like.

pfoerster added a commit that referenced this issue Aug 6, 2023
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Nov 15, 2023
## [5.11.0] - 2023-11-05

### Added

- Add `texlab.inlayHints.labelDefinitions` and `texlab.inlayHints.labelReferences` options ([#753](latex-lsp/texlab#753))
- Display inlay hints for label references by default ([#753](latex-lsp/texlab#753))

### Fixed

- Moving the build logs to the recycle bin will now clear the diagnostics ([texlab-vscode/#825](latex-lsp/texlab-vscode#825))
- Fix false positive when reporting syntax errors for BibTeX accents ([#945](latex-lsp/texlab#945))

## [5.10.1] - 2023-10-10

### Fixed

- Fix regression when renaming commands ([#936](latex-lsp/texlab#936))

## [5.10.0] - 2023-09-30

### Added

- Allow passing additional arguments to `ChkTeX` using `texlab.chktex.additionalArgs` ([#927](latex-lsp/texlab#927))

### Fixed

- Fix loading bibliographies from `kpathsea` search path ([#923](latex-lsp/texlab#923))
- Don't report duplicate results when using goto definition on includes ([#924](latex-lsp/texlab#924))
- Fix project detection when there exist files with the same name ([#923](latex-lsp/texlab#923))
- Do not report parse errors with `$` in paths ([#931](latex-lsp/texlab#931))

## [5.9.2] - 2023-08-14

### Fixed

- Don't crash when using comments inside `\include`-like commands ([#919](latex-lsp/texlab#919))
- Folding ranges include only the contents instead of the entire range of the structure.
  For example, the folding range of an environment will start after the `\begin` and stop before the `\end`
  ([#915](latex-lsp/texlab#915))

## [5.9.1] - 2023-08-11

### Fixed

- Improve performance when completing BibTeX entries ([#493](latex-lsp/texlab#493))
- Don't report unused entries for very large bibliographies
- Avoid redundant reparses after saving documents

## [5.9.0] - 2023-08-06

### Added

- Use bibliographies found in `BIBINPUTS` environment variable ([#493](latex-lsp/texlab#493))
- Add `texlab.build.pdfDirectory` setting ([#911](latex-lsp/texlab#911))

### Fixed

- Fix search path for aux files when using `\include` instead of `\input` ([#906](latex-lsp/texlab#906))

## [5.8.0] - 2023-07-30

### Added

- Report diagnostics for unused and undefined labels
- Report diagnostics for unused BibTeX entries and undefined citations
- Report diagnostics for duplicate BibTeX entries
- Report diagnostics for duplicate labels
- Add `texlab.build.auxDirectory` and `texlab.build.logDirectory` settings ([#906](latex-lsp/texlab#906))

### Deprecated

- Deprecate `texlab.auxDirectory` in favor of `texlab.build.auxDirectory`

### Fixed

- Fix parsing paths with `|` ([#568](latex-lsp/texlab#568))
- Fix parsing LaTeX identifiers with `=` ([#568](latex-lsp/texlab#568))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants