You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
$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.
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
The text was updated successfully, but these errors were encountered:
BTW, while I'm not too familiar with lua and vim functions, I was testing in the cmdline how lua evaluates vim.fn.executable in an if. It looks like it results in a unintuitive result on Windows, because when vim.fn.executable returns 0 it gets evaluated as true and 1 gets evaluated as false. I think it's necessary to force the comparison to the expected result, e.g. vim.fn.executable("gzip") == 1.
If I'm wrong, just ignore my comment, but I saw others if statements relying on vim.fn.executable as well that probably need some review.
I solved it by enabling gzip as executable from CMD. You can install cygwin and add to PATH. Also you can install it with following command: choco install cygwin
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:
I am using Windows 11 and Powershell Core 7.4.3
I checked if maybe I had some gzip command, and it looks like that is not the case:
I checked in neovim's cmdline trying to find gzip
:lua print(vim.fn.executable("gzip"))
and it returns0
.My installation is pretty straightforward, it's basically the same as in the README with the cmp source configured.
For now, in my local installation I did a small change to fix it.
Cheers
The text was updated successfully, but these errors were encountered: