Exafunction / codeium.vim

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

feat(server): add filter arm64 while install server #144

Closed ftamhar closed 1 year ago

ftamhar commented 1 year ago

I'm using mbp m2 and I faced wrong server download (its windows_x64.exe) problem, so in my locale I updated like this

pqn commented 1 year ago

Thanks! I'm curious, if it mis-detected arm, were you actually downloading the x64 Mac build? I don't follow how it might have gotten to Windows based on the logic.

ftamhar commented 1 year ago

Thanks! I'm curious, if it mis-detected arm, were you actually downloading the x64 Mac build? I don't follow how it might have gotten to Windows based on the logic.

I download the windows_x64.exe, because if I exec uname -m in terminal it show arm64 not arm, so it will choose the default choice which is windows_x64.exe

pqn commented 1 year ago

stridx is a substring search, so the arm64 case should already be covered. Maybe something else is going on?

Shougo commented 1 year ago

@ftamhar You should debug the code. It should work.

:echo stridx('arm64', 'arm')

ftamhar commented 1 year ago

hmm, after deleting the ~/.codeium folder, last night I downloaded the windows_x64.exe, but now I downloaded macos_arm after I deleted this PR code

This is really weird