Open
Description
Hi 👋
It looks like my installation of codeium in neovim cannot extract the downloaded server gzip file. I saw in another issue that it is supposed to find out if it's currently using powershell and in that case use a script to extract the downloaded archive, but in my case it just fails with the following message:
Error executing vim.schedule lua callback: ...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:108:
gzip: Executable not found stack traceback:
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:108: in function 'job'
...ata/Local/nvim-data/lazy/codeium.nvim/lua/codeium/io.lua:305: in function 'gunzip'
...Local/nvim-data/lazy/codeium.nvim/lua/codeium/update.lua:130: in function 'unpack'
...Local/nvim-data/lazy/codeium.nvim/lua/codeium/update.lua:149: in function 'callback'
...ata/Local/nvim-data/lazy/codeium.nvim/lua/codeium/io.lua:395: in function 'fn'
vim/_editor.lua:351: in function <vim/_editor.lua:350>
stack traceback:
[C]: in function 'error'
...ta/Local/nvim-data/lazy/plenary.nvim/lua/plenary/job.lua:108: in function 'job'
...ata/Local/nvim-data/lazy/codeium.nvim/lua/codeium/io.lua:305: in function 'gunzip'
...Local/nvim-data/lazy/codeium.nvim/lua/codeium/update.lua:130: in function 'unpack'
...Local/nvim-data/lazy/codeium.nvim/lua/codeium/update.lua:149: in function 'callback'
...ata/Local/nvim-data/lazy/codeium.nvim/lua/codeium/io.lua:395: in function 'fn'
vim/_editor.lua:351: in function <vim/_editor.lua:350>
I am using Windows 11 and Powershell Core 7.4.3
$PSVersionTable
Name Value
---- -----
PSVersion 7.4.3
PSEdition Core
GitCommitId 7.4.3
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I checked if maybe I had some gzip command, and it looks like that is not the case:
Get-Command gzip
Get-Command: The term 'gzip' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I checked in neovim's cmdline trying to find gzip :lua print(vim.fn.executable("gzip"))
and it returns 0
.
My installation is pretty straightforward, it's basically the same as in the README with the cmp source configured.
return {
"Exafunction/codeium.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require("codeium").setup({})
end,
}
For now, in my local installation I did a small change to fix it.
diff --git a/lua/codeium/io.lua b/lua/codeium/io.lua
index 9f447df..8b1796d 100644
--- a/lua/codeium/io.lua
+++ b/lua/codeium/io.lua
@@ -301,7 +301,8 @@ function M.generate_uuid()
end
function M.gunzip(path, callback)
- if M.executable("gzip") then
+ local gzipAvailable = vim.fn.executable("gzip") == 1
+ if gzipAvailable then
M.job({
"gzip",
"-d",
Cheers
Metadata
Assignees
Labels
No labels