Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
4.05k stars 145 forks source link

Codeium plugin not finding language server binary on NixOS #159

Closed Doodler8888 closed 1 year ago

Doodler8888 commented 1 year ago

Hello,

I'm experiencing an issue with the Codeium plugin on NixOS where the language server binary is not found.

Operating System: NixOS

Neovim version: 0.9.1

Problem Description:

After installing the Codeium plugin, I get the following error message:

_Error detected while processing function codeium#server#Start[36]..60_ActuallyStart: line 16: E903: Process failed to start: no such file or directory: "/home/username/.codeium/bin/66a388b22123fb8993f88544cb1a6ab557259b3f/language_server_linuxx64"

However, the language server binary file does exist at the above location, and it is executable:

_❯ /home/username/.codeium/bin/66a388b22123fb8993f88544cb1a6ab557259b3f ❯ la 66a388b22123fb8993f88544cb1a6ab557259b3f total 94716 drwxr-xr-x 2 username users 4096 Jun 19 16:18 . drwxr-xr-x 3 username users 4096 Jun 19 16:18 .. -rwxr-xr-x 1 username users 96979560 Jun 19 16:18 language_server_linuxx64

But when I try to run the binary directly, it also says "no such file or directory":

_❯ /home/username/.codeium/bin/66a388b22123fb8993f88544cb1a6ab557259b3f/language_server_linux_x64 zsh: no such file or directory: /home/username/.codeium/bin/66a388b22123fb8993f88544cb1a6ab557259b3f/language_server_linuxx64

This problem does not occur on other distributions like Fedora, so it seems to be specific to NixOS. I also tried to install nix package 'legacyPackages.x86_64-linux.vimPlugins.codeium-vim (2023-06-15)'. The result was essentially the same.

fortenforge commented 1 year ago

I think for NixOS you'll need to do something like what's mentioned in this PR: https://github.com/Exafunction/codeium.vim/pull/149

EricTheMagician commented 11 months ago

another option is to enable nix-ld with programs.nix-ld.enable. It's a little overkill, but less than having steam