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

Give precedence to directories in .latexmkrc over those in TexLab settings #1265

Open
anwaralameddin opened this issue Nov 7, 2024 · 0 comments

Comments

@anwaralameddin
Copy link

When either of the files .texlabroot or .texlabroot is present in a directory that also contains .latexmkrc, TexLab reads relevant directories, like aux_dir and out_dir, from its configs rather than .latexmkrc. A conflict between .latexmkrc and TexLab settings, e.g. if $out_dir is used in .latexmkrc and texlab.build.pdfDirectory is not set, results in a failure when calling some of the methods and commands textDocument/forwardSearch, textDocument/publishDiagnostics, texlab.cleanAuxiliary and texlab.cleanArtifacts. The exact method(s) or command(s) affected depends on the conflicting variables and settings and whether texlab.build.executable is set to latexmk. This conflicts with the explanation in the Configuration wiki entry.

Given that TexLab configurations could be set "globally" in the editor's settings, and TexLab only detects .latexmkrc for the project, it may be more intuitive to alter ProjectRoot::walk_and_find to give precedence to directories in .latexmkrc over those in TexLab settings when texlab.build.executable is set to latexmk.

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

No branches or pull requests

1 participant