Exafunction / codeium.nvim

A native neovim extension for Codeium
MIT License
638 stars 49 forks source link

.zshenv error? #200

Open Garamogui opened 1 week ago

Garamogui commented 1 week ago

Codeium was working just fine for a feel months.

After sometime and some configuration at my system, it simply stopped. However, I have not made any changes to my nvim config and its related files.

After that, codeium stopped working and I simply tried to remove and reinstall codeium via lazy.nvim. And some time after some trial and error, it worked after launching nvim from bash? (I normally use zsh.)

Codeium Auth, up to that point returned this:

Navigating to https://www.codeium.com/profile?response_type=token&redirect_uri=vim-show-auth-token&state=a&scope=openid%20profile%20ema
il&redirect_parameters_type=query                                                                                                      
Paste your token here: ****************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
**************************************Error detected while processing function codeium#command#Command[6]..1:                          
line   66:                                                                                                                             
E474: Unidentified byte: █████╗ ██╗   ██╗███████╗     ██████╗██╗  ██╗██████╗ ██╗███████╗████████╗^@██╔══██╗██║   ██║██╔════╝    ██╔════
╝██║  ██║██╔══██╗██║██╔════╝╚══██╔══╝^@███████║██║   ██║█████╗      ██║     ███████║██████╔╝██║███████╗   ██║   ^@██╔══██║╚██╗ ██╔╝██╔═
═╝      ██║     ██╔══██║██╔══██╗██║╚════██║   ██║   ^@██║  ██║ ╚████╔╝ ███████╗    ╚██████╗██║  ██║██║  ██║██║███████║   ██║   ^@╚═╝  ╚
═╝  ╚═══╝  ╚════<e2><95>                                                                                                               
E474: Failed to parse  █████╗ ██╗   ██╗███████╗     ██████╗██╗  ██╗██████╗ ██╗███████╗████████╗^@██╔══██╗██║   ██║██╔════╝    ██╔════╝█
█║  ██║██╔══██╗██║██╔════╝╚══██╔══╝^@███████║██║   ██║█████╗      ██║     ███████║██████╔╝██║███████╗   ██║   ^@██╔══██║╚██╗ ██╔╝██╔══╝
      ██║     ██╔══██║██╔══██╗██║╚════██║   ██║   ^@██║  ██║ ╚████╔╝ ███████╗    ╚██████╗██║  ██║██║  ██║██║███████║   ██║   ^@╚═╝  ╚═╝
  ╚═══╝  ╚═════<e2>

After that, and realizing that this error looks like my ascii art in the .zshenv, I commented the following line in my .zshenv file:

 # toilet -t -f "ANSIShadow" -d /usr/share/figlet/fonts  "Ave Christus Rex"

It works fine after that...

Why does codeium have to check my .zsenv file????

milanglacier commented 4 days ago

Note that the error message suggests vimscript function. Seems like this is a codeium.vim issue, not codeium.nvim issue.

aliaksandr-trush commented 3 days ago

Codeium.vim issues that's point to the same code part: https://github.com/Exafunction/codeium.vim/issues/362.

@Garamogui probably it's better to describe your issue in the mentioned thread, since your issue does not relate to codeium.NVIM plugin.