Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
644 stars 50 forks source link

Codeium language server executable throws error on Windows #111

Closed andreadev-it closed 6 months ago

andreadev-it commented 8 months ago

Hello, Today I've updated my plugins in neovim and now whenever I start neovim, this error gets thrown:

Error/s executing function codeium#server#Start[36]..<SNR>54_ActuallyStart:
riga   16:
E903: Process failed to start: unknown error: "C:\Users\Test/.codeium/bin/39080e89780bea461f7a46e6dc1026d80a3a353a/language_server_windows_x64.exe"

I tried moving the bin directory to force a regeneration, and even though it was recreated, the language server still fails to start. I tried also to just execute that binary from the powershell, but it states that "the specified executable is not a valid application for this operating system":

Impossibile eseguire il programma 'language_server_windows_x64.exe': L'eseguibile specificato non è un'applicazione valida per questo sistema operativo.In riga:1 car:1
+ .\language_server_windows_x64.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
In riga:1 car:1
+ .\language_server_windows_x64.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

The folder containing the language server is: 39080e89780bea461f7a46e6dc1026d80a3a353a

Is there somthing else I can try?

pqn commented 8 months ago

What's your operating system/architecture?

andreadev-it commented 8 months ago

I've got Windows 10 pro (10.0.19045) I'm using the Windows Terminal with neovim v. 0.8.0-1210

andreadev-it commented 7 months ago

I've just updated to the latest version and it started working again

pqn commented 6 months ago

Great, feel free to create a new issue if you have errors.

LeonardoMor commented 1 month ago

Getting exactly the same thing with the enterprise version. I'm on Windows 11 with the latest version of Codeium

Guru521 commented 1 month ago

@LeonardoMor Hi,

I'm a Codeium.vim user and encountered the same problem. I was able to resolve it by:

  1. Visiting this page
  2. Downloading language-server-v1.8.45.
  3. Replacing the file at %homepath%/.codeium/bin/{ID}/language_server_windows_x64.exe with the downloaded version.

I hope this helps!

PS. Remove %homepath%/.codeium/bin/{ID}/language_server_windows_x64.exe and restart neovim also worked for me.