Closed brunojoao closed 7 months ago
Are you able to share any big files in which this happens?
yes, an old legacy project, a php file with an array of 5 thousand lines for example. 293Kb file .php
module.config.php.tar.gz This happens for example when I click on "return" and remove a letter and try to add more, but in other smaller files this does not happen and works normally.
Thanks for the sample. I've just updated the extension with a newer language server version. Can you try again to see if the problem is still around? Also, in the original post, can you paste the full red error message? The yellow warning message is probably benign.
Yes, I updated bringing the full error.
I tried again with the last commit, but the error persists, maybe I have a wrong nvim-cmp configuration? the standard I found is the file size, unfortunately there are files with more than 5k lines in PHP.
this is my configuration nvim-cmp https://github.com/brunojoao/astronvim_monster/blob/main/plugins/nvim-cmp.lua
in small files works fine:
after update i receive this error:
Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:166: /home/develop/.cache/nvim/codeium: É um diretório
stack traceback:
[C]: in function 'assert'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:166: in function <.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:121>
...ocal/share/nvim/lazy/codeium.nvim/lua/codeium/notify.lua:14: in function 'error'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:310: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
[codeium] [ERROR 22:23:58] /home/develop/.local/share/nvim/lazy/codeium.nvim/lua/codeium/notify.lua:14: completion request failed: {
[codeium] code = 0,
[codeium] out = '{"code":"unknown","message":"unable to get language from file: unrecognized language"}',
[codeium] response = {
[codeium] body = '{"code":"unknown","message":"unable to get language from file: unrecognized language"}',
[codeium] exit = 0,
[codeium] headers = { "Accept-Encoding: gzip", "Content-Type: application/json", "Vary: Origin", "Date: Tue, 28 Nov 2023 01:23:58 GMT", "Content-Length: 86", "", "" },
[codeium] status = 500
[codeium] },
[codeium] status = 500
[codeium] }
... but my file is index.php, unrecognized
when stats nvim now:
[codeium] [DEBUG 23:01:31] /home/develop/.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:206: 19804: I1127 23:01:29.371191 19804 main.go:533] Starting language server manager with pid 19804
Aperte ENTER ou digite um comando para continuar
Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:166: /home/develop/.cache/nvim/codeium: É um diretório
stack traceback:
[C]: in function 'assert'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:166: in function 'debug'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:206: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
astronvim / lubuntu 22.04
I'm also hitting the same Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/plenary.nvim/lua/plenary/log.lua:166: /path/to/.cache/nvim/codeium: It is a directory
error.
I hit this error a few times in the past but the issue eventually resolved itself so I figured maybe it was just something with my setup.
I confirmed the bad commit is 1b87c86686fe65561cf993f9bb06dad3c56184e0
since rolling back to 822e762567a0bf50b1a4e733c8c93691934d7606
resolved the issues and I'm not hitting any errors anymore.
Hope this bit of context helps!
Also, in my particular case the issue was not dependent on whether the file was small or large; I would hit the error on every file regardless of size.
Is this the same bug as #20?
Is this the same bug as #20?
@brunolpsousa
Personally, I'd say the 2 bugs are not the same but I'm also not 100% sure.
Apologies, I wish I had a more helpful answer I could give you.
The original issue seems similar to #20. The issue that @cleong14 is encountering is #121. The issue that @brunojoao is encountering in https://github.com/Exafunction/codeium.nvim/issues/115#issuecomment-1828916083 after an upgrade is also #121. I will close this issue as a duplicate of #20. (We can continue the discussion there.)
Linking the directory issue fix here for convenience: https://github.com/Exafunction/codeium.nvim/issues/121#issuecomment-1832819652
job.lua:405: Failed to spawn process:
this is my load lazy astronvim config
this happen in big files only, in small files works perfectly.
Full error: