latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.54k stars 52 forks source link

`TexLab` is not compiling with `Tectonic`, but has no problem with `latexmk` #1009

Closed winstxnhdw closed 8 months ago

winstxnhdw commented 8 months ago

I have the following minimal config for this.

require('lspconfig').texlab.setup({
    settings = {
        texlab = {
            build = {
                executable = 'tectonic',
                args = { '-X', 'compile', '%f', '--synctex', '--keep-logs', '--keep-intermediates' },
                onSave = true
            }
        }
    }
})

If I use latexmk, I am able to at least get the auxillary files. I can compile PDFs just fine with tectonic on my CLI.

winstxnhdw commented 8 months ago

On Arch Linux, LSP logs are found in ~/.local/state/nvim. My issue was that tectonic was trying to find openssl1.1 for some reason, even though I have no problem compiling it outside of nvim.