question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failure to run texlab

See original GitHub issue

Here is what I get after :CocInstall coc-texlab :

|| [coc.nvim] Server TexLab failed to start: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| [coc.nvim] error: Uncaught exception: Error: spawn /home/teto/.config/coc/extensions/coc-texlab-data/texlab ENOENT
||     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
||     at onErrorNT (internal/child_process.js:415:16)
||     at process._tickCallback (internal/process/next_tick.js:63:19)
|| [coc.nvim] error: UnhandledRejection: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| Error: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
||     at LatexLanuageClient.createMessageTransports (/nix/store/msw262zm4fsp7mrjms6x9kkldjigrlvd-vimplugin-coc-nvim-0.0.73/share/vim-plugins/coc-nvim/build/index.js:72369:23)
|| [coc.nvim] Installed extension: coc-texlab
|| [coc.nvim] error: UnhandledRejection: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| Error: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
||     at LatexLanuageClient.createMessageTransports (/nix/store/msw262zm4fsp7mrjms6x9kkldjigrlvd-vimplugin-coc-nvim-0.0.73/share/vim-plugins/coc-nvim/build/index.js:72369:23)
|| UnhandledRejection: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| Error: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
||     at LatexLanuageClient.createMessageTransports (/nix/store/msw262zm4fsp7mrjms6x9kkldjigrlvd-vimplugin-coc-nvim-0.0.73/share/vim-plugins/coc-nvim/build/index.js:72369:23)
|| [coc.nvim] Server TexLab failed to start: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| [coc.nvim] error: Uncaught exception: Error: spawn /home/teto/.config/coc/extensions/coc-texlab-data/texlab ENOENT
||     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
||     at onErrorNT (internal/child_process.js:415:16)
||     at process._tickCallback (internal/process/next_tick.js:63:19)
|| UnhandledRejection: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
|| Error: Launching server using command /home/teto/.config/coc/extensions/coc-texlab-data/texlab failed.
||     at LatexLanuageClient.createMessageTransports (/nix/store/msw262zm4fsp7mrjms6x9kkldjigrlvd-vimplugin-coc-nvim-0.0.73/share/vim-plugins/coc-nvim/build/index.js:72369:23)

and the file

file /home/teto/.config/coc/extensions/coc-texlab-data/texlab                                                                                                                                                                                                     
/home/teto/.config/coc/extensions/coc-texlab-data/texlab: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=50bdeb375c70028854fce2768ffa250cc3b62a09, with debug_info, not stripped

Do I miss a binary ? I am not familiar with the nodejs ecosystem, can it be due to a version mismatch ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
doronbeharcommented, Nov 13, 2019

@teto texlab is now packaged in NixOS, see https://github.com/NixOS/nixpkgs/pull/73087 . Hence it shouldn’t be a problem running it if installed with nix-env. However, From some reason coc-texlab still doesn’t detect texlab in my $PATH and so the workaround I’ve come up with was linking ~/.nix-profile/bin/texlab to ~/.config/coc/extensions/coc-texlab-data/texlab

BTW, I really like coc-texlab so far, it’s so much faster then coc-vimtex!

0reactions
sumnerevanscommented, Nov 19, 2020

I got it to work on NixOS using the following in my shell.nix file:

    shellHook = let
      # CoC Config
      cocConfig = {
        "texlab.path" = "${pkgs.texlab}/bin/texlab";
      };
    in
      ''
        mkdir -p .vim
        echo '${builtins.toJSON cocConfig}' | ${pkgs.jq}/bin/jq > .vim/coc-settings.json
      '';

See: https://gitlab.com/sumner/lug-gui-toolkits/-/commit/0fb53c85a5ce955d18123fdfdeebcf1598c4ad90#1c8850d899c3d82e376483b81036f45e579d8afe for full context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Texlab LSP server crashes on launch : r/neovim - Reddit
texlab version is 4.3.2, and running texlab -vvvv --log-file gives no output in the file, ... Kate LSP configuration error: failed to start...
Read more >
Eglot Failed to completion for commands defined in specified ...
I successfully use Eglot with Digestif[1]. I would try TexLab[2] that Joost mentioned as well but it's not as easy for me to...
Read more >
Troubleshooting - LSP Mode - LSP support for Emacs
If lsp-mode is unable to find the binary but it is on the path it is probably caused by the fact that emacs...
Read more >
LaTeX | Nova Extensions - Panic Inc.
The easiest way to install TexLab is to first install Homebrew and then run brew install texlab in a terminal. If no language...
Read more >
Texas Labor Code - Workers' Compensation Act
SUSPENSION OR REVOCATION OF CERTIFICATE FOR FAILURE TO ... Department of Insurance to administer and operate the workers' compensation system of this state ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found