Exafunction / codeium.nvim

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

Error detected while processing function codeium#server#Start: #138

Closed samarth-nagar closed 5 months ago

samarth-nagar commented 5 months ago

false alarm this issue is from codeium.vim not codeium.nvim

PiyushDuggal-source commented 5 months ago

Hey @samarth-nagar, if you are using codeium.vim, just switch back to previous version, it will fix it for now.

    use({
        "Exafunction/codeium.vim",
        commit = "a1c3d6b369a18514d656dac149de807becacbdf7",
    })

This works for me ^^

samarth-nagar commented 5 months ago

thanks but where do put that commit data? im using lazy

PiyushDuggal-source commented 5 months ago

Just add a commit value, it should work I believe: eg:

{
    "repo/plugin",
    commit = "commit SHA"
    ...
}

ref: https://github.com/folke/lazy.nvim?tab=readme-ov-file#-plugin-spec

daUnknownCoder commented 5 months ago

thanks but where do put that commit data? im using lazy

  {
    "hrsh7th/nvim-cmp",
    dependencies = {
      { "Exafunction/codeium.vim", lazy = true, commit = "a1c3d6b369a18514d656dac149de807becacbdf7" },
      lazy = true,
    },
daUnknownCoder commented 5 months ago

i too am facing this issue

samarth-nagar commented 5 months ago

for anyone whos facing the same issue the fix that @PiyushDuggal-source has given is valid my code looks something like this but you must use reinstall or reload to see changes i'd recommend deleting and re installing with the commit line

return {
  'Exafunction/codeium.vim',
  commit = "a1c3d6b369a18514d656dac149de807becacbdf7",
  config = function()
    -- Change '<C-g>' here to any keycode you like.
    vim.keymap.set('i', '<C-f>', function() return vim.fn['codeium#Accept']() end, { expr = true, silent = true })
    vim.keymap.set('i', '<c-g>', function() return vim.fn['codeium#CycleCompletions'](1) end,
      { expr = true, silent = true })
    vim.keymap.set('i', '<c-d>', 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
}

but you must go to the /Exafunction/codeium.vim/issues/308 and start an issue there or like the the one issue noticing tht question

hisamafahri commented 5 months ago

+1 facing the same issue

avtotrainer commented 5 months ago

in locale

cd  ~/.vim/pack/Exafunction/start/codeium.vim
git checkout a1c3d6b369a18514d656dac149de807becacbdf7

temporary fix

fortenforge commented 5 months ago

Closing this in favor of https://github.com/Exafunction/codeium.vim/issues/308

(Note that this error is specific to codeium.vim)