Comments (11)
@haoming-li-ling Have you tried setting texlab.build.pdfDirectory
to the same value as the outdir
passed to latexmk
?
from texlab.
Ah, didn't see that option. However, with the following, forward search still doesn't work:
auxDirectory = "./output",
pdfDirectory = ".",
build = {
args = {
"-lualatex",
"-interaction=nonstopmode",
"-synctex=1",
"-auxdir=./output",
"-outdir=.",
"%f",
},
from texlab.
Can you try adding an empty .texlabroot
file to the directory containing the main TeX file? Maybe, the project detection isn't working here (see https://github.com/latex-lsp/texlab/wiki/Project-Detection)
from texlab.
from texlab.
I have the same issue. I have set auxdir
to equal texlab.build.auxDirectory
and the same for outdir
, texlab.build.logDirectory
and texlab.build.pdfDirectory
, according to the wiki. Here are the relevant settings:
auxDirectory = ".aux/",
logDirectory = ".out/",
pdfDirectory = ".out/",
build = {
args = {
"-pdf",
"-auxdir=./.aux",
"-outdir=./.out",
"-interaction=nonstopmode",
"-synctex=1",
"%f",
},
},
TexlabForward
just errors with Search error
. When all the directories are the same, everything works as expected.
from texlab.
@joedavid0
I think there is something wrong with your settings. It should be
build = {
auxDirectory = ".aux/",
logDirectory = ".out/",
pdfDirectory = ".out/",
args = {
"-pdf",
"-auxdir=./.aux",
"-outdir=./.out",
"-interaction=nonstopmode",
"-synctex=1",
"%f",
},
},
Can you try again with these settings, please?
from texlab.
Can you try again with these settings, please?
You're right, I missed that auxDirectory
was moved under build
. However, the issue still persists.
Texlab seems to look for the PDF in the project root, i.e. when I manually copy the PDF to ./
, Texlab opens it there.
from texlab.
@joedavid0 This might be a problem with the root directory detection. Can you try adding an empty .texlabroot
file to the project? Then, it should look roughly like this:
<project folder>
- .texlabroot
- document.tex
- .aux
- document.aux
- .out
- document.log
- document.pdf
from texlab.
Still the same problem
from texlab.
@joedavid0 Can you try running #988 and post the additional log statements (they start with DEBUG - [FwdSearch]
)? These should be helpful to find out why the server looks into the wrong directory.
from texlab.
Ok this is kind embarrassing, but the error was on my part. The PR didn't have the issue, so I checked when the changes to config were introduced. Then I noticed that the version of Texlab on Arch Linux is surprisingly very outdated and doesn't have the new options yet... so that was the issue.
Sorry for wasting your time
from texlab.
Related Issues (20)
- Disabling individual warnings HOT 1
- Allow extending label commands (not just ref)
- Lsp panics after deleting last line of a file HOT 4
- Forward search broken with empty latexmkrc
- project detection: .latexmkrc in higher level parent directory HOT 2
- texlab reports dublicate and unused label in macro definition
- Feature request: support apastyle prenotes
- BibLaTeX globbing patterns (`\addbibresource[glob]{}`) do not seem to read the `.bib` files under `nvim` HOT 1
- Diagnostics not displayed with `$aux_dir`
- Texlab lsp server exits on unicode letter 1F582 HOT 4
- ignore single warnings/errors HOT 1
- Compile on save doesn't work in neovim HOT 2
- Add user-defined prefixes to custom label reference and definition commands HOT 1
- Bib reference error for subimports HOT 8
- The LSP stops working as soon as I try to type something HOT 2
- [BUG] Undefined reference even though its defined in tabularray HOT 1
- Cannot disable reference inlay hints HOT 1
- Need some help setting up preview on windows HOT 2
- \begin snippet for environments with arguments HOT 2
- False undefined reference error with thebibliography
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from texlab.