Exafunction / codeium.nvim

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

[bug] config file permission issue #3

Closed towry closed 1 year ago

towry commented 1 year ago
截屏2023-01-29 22 07 17 截屏2023-01-29 22 08 09 截屏2023-01-29 22 09 04
towry commented 1 year ago

Maybe related to https://github.com/jcdickinson/codeium.nvim/issues/5, random guess.

jcdickinson commented 1 year ago

This is weird. What does stat ~/.cache/nvim/codeium/config.json give you? You can also override config_path in setup as a workaround.

towry commented 1 year ago

Another reading issue:

Error detected while processing InsertEnter Autocommands for "*":                          
                                                                                            │Failed to load Codeium API key                                                             
                                                                                            │[codeium] [ERROR 08:56:59] ...owry/workspace/git-repos/codeium.nvim/lua/codeium/io.lua:94: 
                                                                                            │could not open  /Users/towry/.cache/nvim/codeium/config.json :  EACCES: permission denied: 
                                                                                            │/Users/towry/.cache/nvim/codeium/config.json  
towry commented 1 year ago

This is weird. What does stat ~/.cache/nvim/codeium/config.json give you? You can also override config_path in setup as a workaround.

16777220 190157834 ---------x 1 towry staff 0 51 "Jan 30 08:56:33 2023" "Jan 30 08:56:28 202│                                                                                           
3" "Jan 30 08:56:28 2023" "Jan 30 08:56:28 2023" 4096 8 0 config.json 
jcdickinson commented 1 year ago

Totally my mistake, I created the file with permissions of 1! You'll need to fix this by:

sudo chmod 666 $HOME/.cache/nvim/codeium/config.json

Please let me know if that works for you. My most recent commit addresses the issue.

towry commented 1 year ago

fixed.