codeium.vim icon indicating copy to clipboard operation
codeium.vim copied to clipboard

Wrong Language Server

Open guilhermeyo opened this issue 1 year ago • 4 comments

Hello, I had an M1, and after putting in my nvim plugins:

{
    'Exafunction/codeium.vim',
    config = function ()
      -- Change '<C-g>' here to any keycode you like.
      vim.keymap.set('i', '<C-g>', function () return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-;>', function() return vim.fn['codeium#CycleCompletions'](1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-,>', function() return vim.fn['codeium#CycleCompletions'](-1) end, { expr = true, silent = true })
      vim.keymap.set('i', '<c-x>', function() return vim.fn['codeium#Clear']() end, { expr = true, silent = true })
    end
  },

Intall the plugin:

My nvim starts with this error:

Error detected while processing function codeium#server#Start[58]..<SNR>49_ActuallyStart:
line   19:
E903: Process failed to start: Unknown system error -8: "/Users/guilherme/.codeium/bin/c9ee08628270937c0e7c7740dd6931363217942f/language_server_windows_x64.exe"

Why language_server_windows_x64.exe? How do I set it to use language_server_macos_arm?

nvim config

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1713773202

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Macbook M1 OS Sonoma

Thanks, Guilherme

guilhermeyo avatar May 26 '24 22:05 guilhermeyo

What do uname and uname -m get you?

https://github.com/Exafunction/codeium.vim/blob/289eb724e5d6fab2263e94a1ad6e54afebefafb2/doc/codeium.txt#L97-L110

pqn avatar May 30 '24 03:05 pqn

Have you solved this problem?

Barmaley0 avatar Jun 02 '24 10:06 Barmaley0

uname gives me Darwin. It works fine with vim. but nvim lazy downloads .exe file and then we get above message. This is on x86 macOS

> uname
Darwin

aranjan7 avatar Jul 21 '24 02:07 aranjan7

Any updates? I got this error on Mac OS Sequoia. I'm using LazyVim with the default config

  {
    "Exafunction/codeium.vim",
    event = "BufEnter",
  },

uname -m command throws

x86_64

uname command throws

Darwin

PS: Nerver mind, I solved the issue. Just open LazyVim -> Config and add this to the lua/config.options.lua file

vim.g.codeium_os = 'Darwin'
vim.g.codeium_arch = 'x86_64'

hadnet avatar Feb 21 '25 22:02 hadnet