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.
When either of the files
.texlabroot
or.texlabroot
is present in a directory that also contains.latexmkrc
,TexLab
reads relevant directories, likeaux_dir
andout_dir
, from its configs rather than.latexmkrc
. A conflict between.latexmkrc
andTexLab
settings, e.g. if$out_dir
is used in.latexmkrc
andtexlab.build.pdfDirectory
is not set, results in a failure when calling some of the methods and commandstextDocument/forwardSearch
,textDocument/publishDiagnostics
,texlab.cleanAuxiliary
andtexlab.cleanArtifacts
. The exact method(s) or command(s) affected depends on the conflicting variables and settings and whethertexlab.build.executable
is set tolatexmk
. This conflicts with the explanation in the Configuration wiki entry.Given that
TexLab
configurations could be set "globally" in the editor's settings, andTexLab
only detects.latexmkrc
for the project, it may be more intuitive to alterProjectRoot::walk_and_find
to give precedence to directories in.latexmkrc
over those inTexLab
settings whentexlab.build.executable
is set tolatexmk
.