Exafunction / codeium.vim

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

Codeium can't run on my Neovim (Windows 10 x64) #125

Closed Samuel-Ricardo closed 1 year ago

Samuel-Ricardo commented 1 year ago

Hi! I made installation using Packer, but at finish installation it doesn't stop to send error messages

all the plugins that i have works, just Codeium throw errors :(

I try to run the .exe, but the windows say that this can't run on my windows, maybe something about compatibility, but i am using an updated 64 bits Windows 10

*neovim version:


NVIM v0.8.2 Build type: RelWithDebInfo LuaJIT 2.1.0-beta3 Compilado por runneradmin@fv-az28-353


I can't auth to

I try to install manually by git clone repository, but i have the same issues

Have some solution to this?

*Detail: Codeium works fine on my VS Code, just in neovim i have this issue

image

image

Error messsages in neovim:


Erro detectado ao processar function codeium⁠server⁠start[36]..96_ActuallyStart: linha 14: E903: Process failed to start: unknown error: "C:\Users\Desktop/.codeium/bin/b43caa7661bde4411c6c11d3b938890bc1ea0d08/language_server_windows_x64.exe"

--

Error detected while processing function codeium⁠server⁠start[36]..96_ActuallyStart: line 14: E903: Failed to start process: unknown error: "C:\Users\Desktop/.codeium/bin/b43caa7661bde4411c6c11d3b938890bc1ea0d08/language_server_windows_x64.exe"



Erro detectado ao processar function 36[1]..96_UnzipAndStart[30]..96_ActuallyStart: linha 14: E903: Process failed to start: unknown error: "C:\Users\Desktop/.codeium/bin/b43caa7661bde4411c6c11d3b938890bc1ea0d08/language_server_windows_x64.exe"

- Error detected while processing function 36[1]..96_UnzipAndStart[30]..96_ActuallyStart: line 14: E903: Failed to start process: unknown error: "C:\Users\Desktop/.codeium/bin/b43caa7661bde4411c6c11d3b938890bc1ea0d08/language_server_windows_x64.exe"


Erro detectado ao processar function codeium#command#Command[6]..1: linha 42: E474: Unidentified byte: Um elemento desconhecido "" foi recebido. Isso pode ocorrer quando o processo remoto <82> fechado ou encerrado de forma anormal.^@ E474: Failed to parse Um elemento desconhecido "" foi recebido. Isso pode ocorrer quando o processo remoto <82> fechado ou encerrado de forma anormal.^@

- Error detected while processing function codeium#command#Command[6]..1: line 42: E474: Unidentified byte: An unknown element "" was received. This can occur when the remote process <82> closed or terminated abnormally.^@ E474: Failed to parse An unknown element "" was received. This can occur when the remote process <82> closed or terminated abnormally.^@

fortenforge commented 1 year ago

Can you try to run language_server_windows_x64.exe manually? What does it say when you try?

Can you verify that language_server_windows_x64.exe is set to executable?

Samuel-Ricardo commented 1 year ago

When i run language_server_windows_x64.exe windows show a message:

Translating: This application cannot run on your computer, to find a version for your computer, contact the software vendor

Samuel-Ricardo commented 1 year ago

it's like my computer isn't compatible, but i think that i have the specs to run it:

Windows 10 64 bits Neovim 0.8 Packer (plugin manager) git

And it runs in VS Code, so i think that maybe could be a problem in some .vim file

By the way, my Neovim is configured with lua but i dont know if this is relevant

fortenforge commented 1 year ago

Hmm, I wonder if the download of language_server_windows_x64.exe was aborted prematurely. Can you compare the size of this language_server_windows_x64.exe as compared to the equivalent binary in vscode? You should be able to see the path to the vscode binary in the Output tab of vscode (click on Codeium in the upper right dropdown).

Samuel-Ricardo commented 1 year ago

Hi again! :D

Thank you for all your help and attention, I managed to solve this problem, I'll explain it here in case someone has the same problem: 💡

I install Codeium with Packer on Neovim

First Problem: language_server_windows_x64.exe not execute ⚙️

1 - First i verify the language_server_windows_x64.exe file and i see that it has 0 kb of space, I thought it was strange

it was not running how i said before in this thread

2 - I remembered that it works correctly in VS Code, so i go to Codeium VS Code Plugin path:

3 - i find the .exe that runs on VS Code here

4 - For my surprise, this was running normally and had more than 0 kb of space :D image

So my solution 💡 was copy VS Code Executable and paste on .codeium path

I override the existing file

--

Seconde: Codeium still not running 🏃

1 - I uninstall and reinstall Codeium on neovim 1.1 - close and reopen neoviem

2 - After run :Codeium Auth it opens codeium webpage (before it can't open the page automatically) but after paste the Key and confirm it crash again, but with a different error:

This solves my problem 😃

What i think that happens 🤔





| - Remember that an antivirus don't necessarily know what is Codeium and his files, for antivirus, it's a script running on pc and trying to do something, like a body immune system in the doubt it defends your body (PC in this case) with methods acquaintances


- besides all, after install, i inspect the file with my antivirus and it doesn't find any danger > ![image](https://user-images.githubusercontent.com/63983021/236199236-1fffa308-6da7-49ce-861f-a09f29680950.png) - Afterwards, I ran a full inspection of the entire PC, restarted it in the process, and found no danger again. - I am using Codeium normally with no more problems, by the way, it's amazing to work with it, I am amazed to see AIs working
So if i am right, all this is just my antivirus commiting a misunderstanding