Exafunction / codeium.nvim

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

Codeium Server Crashed #179

Open Alan-TheGentleman opened 2 months ago

Alan-TheGentleman commented 2 months ago

Hi ! first of all... I LOVE Codeium, moving on:

Since the last update I can't run it !

Everytime a new auto complete tries to run, I'm being received with a "Codeium server crashed" message and an empty message "[codeium/codeium.log] }"

I can't seem to find the error location, I'm using LazyVim, tried custom plugin installation and also with LazyExtras, same error.

324250946-ee300ddf-29f8-4616-8beb-d312243601cd 324250745-5262dc0c-66da-4d5f-bb84-ae2af0d99fb8

Sazzad-Anwar commented 2 months ago

I am also facing the same issue. I am not getting any auto complete suggestion and after a while just getting crashed notification.

nepta1998 commented 2 months ago

I'm having the same issue when modify a very large file

Errors:

Screenshot from 2024-04-22 10-46-12

[WARN lun 22 abr 2024 10:39:17] /home/neptali/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:314: failed to cancel in-flight request { code = 0, out = '{"code":"unknown","message":"no session for {apiKey: apikey here sessionId:}"}', response = { body = '{"code":"unknown","message":"no session for {apiKey: apikey here sessionId:}"}', exit = 0, headers = { "Accept-Encoding: gzip", "Content-Type: application/json", "Vary: Origin", "Date: Mon, 22 Apr 2024 14:39:09 GMT", "Content-Length: 102", "", "" }, status = 500 }, status = 500 } [ERROR lun 22 abr 2024 10:43:08] /home/neptali/.local/share/nvim/lazy/codeium.nvim/lua/codeium/notify.lua:14: codeium server crashed: { code = 1 }

amoschristian commented 2 months ago

@nepta1998 yeah i had this error as well, exactly the same, i dont really know what to do with the issue for now Seeing in bug #20 it looks like it still happening, only in large files with lots of line

aliaksandr-trush commented 2 months ago

In recent update, I've added "other_documents" argument for GetCompletion request, that is attaching buffers content during request to Codeium Server. So, it is possible that too much data are sending to the server. Could you try to comment out this line https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/api.lua#L328 and check if it will improve stability?

Alan-TheGentleman commented 2 months ago

In recent update, I've added "other_documents" argument for GetCompletion request, that is attaching buffers content during request to Codeium Server. So, it is possible that too much data are sending to the server. Could you try to comment out this line https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/api.lua#L328 and check if it will improve stability?

Same issue :( it happens every single time I start typing and it's trying to give me a suggestion

amoschristian commented 2 months ago

In recent update, I've added "other_documents" argument for GetCompletion request, that is attaching buffers content during request to Codeium Server. So, it is possible that too much data are sending to the server. Could you try to comment out this line https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/api.lua#L328 and check if it will improve stability?

I just tried it and i dont think it help in any way, still same error

btw the file that i open is a ~250KB - 3500 line JSON file

but with smaller line of code its working

aliaksandr-trush commented 2 months ago

In recent update, I've added "other_documents" argument for GetCompletion request, that is attaching buffers content during request to Codeium Server. So, it is possible that too much data are sending to the server. Could you try to comment out this line https://github.com/Exafunction/codeium.nvim/blob/main/lua/codeium/api.lua#L328 and check if it will improve stability?

I just tried it and i dont think it help in any way, still same error

btw the file that i open is a ~250KB - 3500 line JSON file

but with smaller line of code its working

In this case it could be related to server version that was updated in https://github.com/Exafunction/codeium.nvim/commit/4d4e2a6cdc35cdd344d1dcc8ae7846aca6db897d

amoschristian commented 2 months ago

@aliaksandr-trush so in other words, is there any way to fix this? i mean there must be a lot of people out there who gonna has this issue right

aliaksandr-trush commented 2 months ago

@aliaksandr-trush so in other words, is there any way to fix this? i mean there must be a lot of people out there who gonna has this issue right

JFYI I am not Codeium developer :)

Also, I am unable to reproduce the issue on my projects.

But definitely it will be easier to resolve the issue if somebody will provide exact steps to reproduce:

  1. Project URL that is failing
  2. Files where Neovim is failing

If it is failing on private projects, that it could be useful to understand what change introduced this issue:

  1. Changes in codeium.nvim plugin
  2. or Language server version change
mitya-murakhouski commented 2 months ago

Having same issue with yml files. Have to restart vim all the time