Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
3.68k stars 124 forks source link

too many curl processes with neovim #368

Open FulanXisen opened 1 month ago

FulanXisen commented 1 month ago
PID:▲ User │ TTY CPU MEM CPU Time │ Command
67000 flxs │     0.0 0.0 00:00:00 │ curl -sSL -D /tmp/plenary_curl_cb9c41a5.headers -X POST -H Content-Type: application/json -d @/tmp/lua_mjIzLH http://127.0.0.1:57808/exa.language_server_pb.LanguageServerServi>
67013 flxs │     0.0 0.0 00:00:00 │ curl -sSL -D /tmp/plenary_curl_b69140fb.headers -X POST -H Content-Type: application/json -d @/tmp/lua_1l6eYT http://127.0.0.1:57808/exa.language_server_pb.LanguageServerServi>

Look at above lines: there are about 4000+ curl processes and my OS was broken. In the command, I think "exa.language_server_pb.LangaugeServerServi" can confirm that these curl processes are created by codeium.

FYI: I use lazynvim to enable codeium plugin.

Do you know how to fix this problem.

AlejandroSuero commented 3 weeks ago

@FulanXisen the problem may be here but I don't use vimscript and for me is hard to follow, if anyone knows better, feel free to comment your opinions.

https://github.com/Exafunction/codeium.vim/blob/289eb724e5d6fab2263e94a1ad6e54afebefafb2/autoload/codeium/server.vim#L64-L101

If you are using Neovim, @FulanXisen (assuming from using lazynvim), wouldn't be better to use codeium.nvim?