Exafunction / codeium.nvim

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

Error downloading `codeium` server via `plenary.nvim` on Windows #44

Closed CharlesChiuGit closed 9 months ago

CharlesChiuGit commented 1 year ago

Here's the error: 圖片

So I trace back to plenary.nvim and found a relative issue It seems like curl with --compressed is not supported on curl 8.0.1 (I install curl via scoop) 圖片

I not sure if this error should be upstream to plenary or not.

jcdickinson commented 1 year ago

I can prevent it from using --compressed, and will look into that this weekend.

CharlesChiuGit commented 1 year ago

tks!

jcdickinson commented 1 year ago

Please let me know if this has been fixed with the latest commit.

CharlesChiuGit commented 1 year ago

Thanks for the quick fix! Codeium server could now be installed on Windows now. Thanks! 圖片

CharlesChiuGit commented 1 year ago

Hmmm, unfortunately it seems like sth else is still broken. Every time I re-open neovim, codeium.nvim keeps downloading the server as the above image.

Also when I tried to auth, it won't work. Here's the error log: 圖片

Error executing Lua callback: ...cal/nvim-data/site/lazy/plenary.nvim/lua/plenary/job.lua:106: uuidgen: Executable not found

stack traceback:
        ...cal/nvim-data/site/lazy/plenary.nvim/lua/plenary/job.lua:106: in function 'job'
        ...ocal/nvim-data/site/lazy/codeium.nvim/lua/codeium/io.lua:191: in function 'get_command_output'
        ...ocal/nvim-data/site/lazy/codeium.nvim/lua/codeium/io.lua:315: in function 'generate_uuid'
        ...cal/nvim-data/site/lazy/codeium.nvim/lua/codeium/api.lua:76: in function 'authenticate'
        ...al/nvim-data/site/lazy/codeium.nvim/lua/codeium/init.lua:20: in function <...al/nvim-data/site/lazy/codeium.nvim/lua/codeium/init.lua:17>
stack traceback:
        [C]: in function 'error'
        ...cal/nvim-data/site/lazy/plenary.nvim/lua/plenary/job.lua:106: in function 'job'
        ...ocal/nvim-data/site/lazy/codeium.nvim/lua/codeium/io.lua:191: in function 'get_command_output'
        ...ocal/nvim-data/site/lazy/codeium.nvim/lua/codeium/io.lua:315: in function 'generate_uuid'
        ...cal/nvim-data/site/lazy/codeium.nvim/lua/codeium/api.lua:76: in function 'authenticate'
        ...al/nvim-data/site/lazy/codeium.nvim/lua/codeium/init.lua:20: in function <...al/nvim-data/site/lazy/codeium.nvim/lua/codeium/init.lua:17>
BogdanArvinte commented 1 year ago

Hi,

I ran into the same issue and followed these instructions. Make sure the uuidgen executable is in the path, I had to manually add in the environment variables.

I can now use :Codeium Auth which tells me that the API key was saved. I can also confirm I'm seeing Codeium server being downloaded every time the plugin loads.

pqn commented 9 months ago

I've updated the README to indicate uuidgen is necessary on Windows: https://github.com/Exafunction/codeium.nvim/pull/100

I'll close this for now, feel free to create another issue if something else blocks usage.