neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
10.62k stars 2.08k forks source link

TexLab setup is unable to compile successfully even on minimal TeX script #2989

Closed winstxnhdw closed 8 months ago

winstxnhdw commented 8 months ago

Description

I am on the latest version of Tectonic and I am trying to compile a simple TeX script. I have TexLab installed via Mason and I am using a minimal nvim setup. No distros, nothing. Just the lazy plugin manager. I have scoured TexLab, this repo, Reddit and StackOverflow for any hints at all but I came empty after half a day :D So I am guessing it's likely a bug.

\documentclass[12pt]{article}
\begin{document}
Hello world!
\end{document}

Yes, I can compile the script successfully outside of nvim.

tectonic -X compile test.tex --synctex --keep-logs --keep-intermediates

No, vim.lsp.set_log_level('debug') doesn't produce logs or print anything.

Yes, I am using the correct arguments according to TexLab's docs.

I have also used the V1 CLI syntax for Tectonic and tried other's 2 year old TexLab config for Tectonic that supposedly worked for them back then.

Neovim version

NVIM v0.9.5 Build type: Release LuaJIT 2.1.1702233742

Operating system and version

Arch Linux

Affected language servers

TexLab

Steps to reproduce

  1. Install Tectonic
  2. Install Texlab via Mason
  3. Paste LSP minimal config
  4. Run :TexlabBuild
  5. Cry

Actual behavior

It prints Build Error.

Expected behavior

Build successfully.

Minimal config

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

LSP log

No logs were generated.

justinmk commented 8 months ago

Thanks for your report. The configs in this repo are unsupported and provided only as a starting point. We depend on users (like you) to troubleshoot issues with their specific LSP setups and send improvements.

If you found a bug in the core Nvim vim.lsp module (not part of this repo), the best way to get it fixed is to report to Nvim (not nvim-lspconfig) with: