Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
804 stars 60 forks source link

Codeium not working after update (lazyvim) #232

Open julien-h2 opened 1 month ago

julien-h2 commented 1 month ago

Hello, I updated my plugins today and codeium is now broken and keeps spamming me with notifications "Code completion request failed".

I use LazyVim without custom configuration.

I collected the logs, attaching them here. codeium.log.log

iamxiaojianzheng commented 1 month ago

Same problem, after the update has been reported error.

work-in-progress-danny commented 1 month ago

For now if you need to get some work done. You can pin the version to a commit from a few days ago (just guessing that something recent broke the plugin)

Add commit to your codeium plugin config per the lazy spec Choosing 937667b2cadc7905e6b9ba18ecf84694cf227567 because it's seemingly the last stable version (just guessing that something in the last week broke). see

return {
    "Exafunction/codeium.nvim",
    commit = "937667b2cadc7905e6b9ba18ecf84694cf227567", -- just guessing the commit sha here
-- ... rest of your config
}

And if you don't want to set and forget this pinned version add check_pinned per default config example

checker = {
    check_pinned = true, -- 
    -- ... rest of your config
},
iamxiaojianzheng commented 1 month ago

After I switch to commit 937667b, codeium.nvim reports an error that changes to codeium server crashed.

work-in-progress-danny commented 1 month ago

After I switch to commit 937667b, codeium.nvim reports an error that changes to codeium server crashed.

You'll need to run :Lazy update to get the older version of the plugin

iamxiaojianzheng commented 1 month ago

I manually switched the branch of codeium.nvim to 937667b

image

And export no_proxy was configured as prompted by other issues.

Before the update, everything was going well.

!Note: codeium server crashed error exists, headache.

codeium.log

aliaksandr-trush commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR https://github.com/Exafunction/codeium.nvim/pull/233 ?

iamxiaojianzheng commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Which version of commit are you based on?

work-in-progress-danny commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Seemingly is working for me, will update if not

work-in-progress-danny commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Which version of commit are you based on?

You'll have to use @aliaksandr-trush's fork of the plugin

return {
    "aliaksandr-trush/codeium.nvim", -- forked repo
    dependencies = {
        "nvim-lua/plenary.nvim",
        "hrsh7th/nvim-cmp",
    },
    config = function()
        require("codeium").setup({})
    end,
}
aliaksandr-trush commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Which version of commit are you based on?

You'll have to use @aliaksandr-trush's fork of the plugin

return {
  "aliaksandr-trush/codeium.nvim", -- forked repo
  dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp",
  },
  config = function()
      require("codeium").setup({})
  end,
}

You also need to specify correct branch name: branch = "update_server_version"

work-in-progress-danny commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Which version of commit are you based on?

You'll have to use @aliaksandr-trush's fork of the plugin

return {
    "aliaksandr-trush/codeium.nvim", -- forked repo
    dependencies = {
        "nvim-lua/plenary.nvim",
        "hrsh7th/nvim-cmp",
    },
    config = function()
        require("codeium").setup({})
    end,
}

You also need to specify correct branch name: branch = update_server_version

Pretty sure your branch doesn't exist on the main repo codeium.nvim branches. It'll only exist here

iamxiaojianzheng commented 1 month ago

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Tried the latest language-server version on my local and it looks more stable for me. Could you try this PR #233 ?

Which version of commit are you based on?

You'll have to use @aliaksandr-trush's fork of the plugin

return {
  "aliaksandr-trush/codeium.nvim", -- forked repo
  dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp",
  },
  config = function()
      require("codeium").setup({})
  end,
}

This fork solves the problem, so great.

iamxiaojianzheng commented 1 month ago

After experimenting locally, I found that when I switched to this commit, problems began to occur. 891439a

pqn commented 1 month ago

Are you on Windows by any chance?

iamxiaojianzheng commented 1 month ago

Are you on Windows by any chance?

no any change. just switch commit.

saranshsaini commented 1 month ago

Thanks for bearing with us as we sort this out. looks like windows users were having issues. We merged in a change, if you all could update and let me know if things work, that would be awesome.

work-in-progress-danny commented 1 month ago

Are you on Windows by any chance?

Mac

julien-h2 commented 1 month ago

@pqn I am on windows 11. I have attached the logs in the original post.

melMass commented 1 month ago

I had the issue on mac and windows. https://github.com/Exafunction/codeium.nvim/commit/17bbefff02be8fd66931f366bd4ed76a76e4a57e fixed it on windows, testing mac now spoke too soon: https://github.com/Exafunction/codeium.nvim/issues/225#issuecomment-2380880628

melMass commented 1 month ago

Pretty sure your branch doesn't exist on the main repo codeium.nvim branches. It'll only exist here

A fork also has branches... his main is 5months old

zigotica commented 1 month ago

Thanks for bearing with us as we sort this out. looks like windows users were having issues. We merged in a change, if you all could update and let me know if things work, that would be awesome.

mac user here. not sure what you fixed but commmits after 937667b2 show this issue https://github.com/Exafunction/codeium.nvim/issues/236, pinning install to that commit fixes the problem

saranshsaini commented 3 weeks ago

There have been a series of updates to the nvim extension recently, please try updating to the latest.

panboo0106 commented 5 days ago

This is my lazyvim configuration and it works very well.

return {
  {
    "Exafunction/codeium.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "hrsh7th/nvim-cmp",
    },
    config = function()
      require("codeium").setup({
        enable_cmp_source = true,
        virtual_text = {
          enabled = false,
        },
      })
    end,
  },
}
return {
  {
    "nvim-cmp",
    opts = function(_, opts)
      table.insert(opts.sources, 1, {
        name = "codeium",
        group_index = 1,
        priority = 200,
      })
    end,
  },
}