Exafunction / codeium.nvim

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

Completion requests fail with .go files #13

Closed meinside closed 1 year ago

meinside commented 1 year ago

I see the following error message repeatedly while editing go files:

[ERROR Tue Jan 31 14:10:40 2023] ...ocal/share/nvim/lazy/codeium.nvim/lua/codeium/notify.lua:14: completion request failed:  {
  code = 0,
  out = '{"code":"invalid_argument","message":"invalid GetCompletionsRequest.EditorOptions: embedded message failed validation | caused by: invalid EditorOptions.TabSize: value must be greater than 0"}',
  response = {
    body = '{"code":"invalid_argument","message":"invalid GetCompletionsRequest.EditorOptions: embedded message failed validation | caused by: invalid EditorOptions.TabSize: value must be greater than 0"}',
    exit = 0,
    headers = { "Accept-Encoding: gzip", "Content-Type: application/json", "Vary: Origin", "Date: Tue, 31 Jan 2023 05:10:40 GMT", "Content-Length: 192", "", ""},
    status = 400
  },
  status = 400
}

Fails both on neovim v0.8.2 and v0.9.0-dev-834+g4c90a84c6, and the plugin is up-to-date.

I tried without this go plugin, but there was no change.

jcdickinson commented 1 year ago

Please let me know if the above merged PR worked for you.

meinside commented 1 year ago

It is now working okay :-)