-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppress Codium error #19
Comments
This should be silenced already, could you provide the output from |
Sure. Here's some logs from my latest run. In the past I've also seen the error displayed even for "CODEIUM_STATE_SUCCESS"
|
These errors should be silenced with the latest commit, please let me know if they aren't. |
I get the same 'completion request failed' errors on my mac. Just tested it out with the newest commit. |
Hi @jcdickinson , thank you for the quick response, but for me it didn't seem to help :-? Another issue I now noticed is that sometimes there're errors shown up even if the state says "CODEIUM_STATE_SUCCESS"
|
@mquhuy I just pushed more improvements for silencing errors. Please let me know if that helps. |
Hi there - I'm using the latest code and I'm also getting the same error even with a status It triggers, for example, when editing my nvim files Error message
|
It looks like status code is considered an error by the http lib, but Codeium is signaling it's expect to With the following change I stop getting errors but multiline completion seems to output partial code when editing this project. For example, when typing It will output only 2 lines, which is not valid code: diff --git a/lua/codeium/api.lua b/lua/codeium/api.lua
index 2cf7c75..729d21e 100644
--- a/lua/codeium/api.lua
+++ b/lua/codeium/api.lua
@@ -253,7 +253,7 @@ function Server:new()
}, function(body, err)
request_id = 0
- if err then
+ if err and err.status ~= 100 then
if err.status == 408 then
-- Timeout error
return callback(false, nil)
@@ -271,10 +271,6 @@ function Server:new()
log.debug("completion request cancelled at the server", json.message)
return callback(false, nil)
end
- if err.status == 100 and json.code then
- log.debug("completion request failed", json)
- return callback(false, nil)
- end
end
notify.error("completion request failed", err)
|
@bltavares the code to the right of the list is exactly what Codeium suggests. This an unofficial plugin and fixing suggestions isn't something that I can do. |
Ah, thanks for letting me know. I'm trying the tool for the first time so I
was not sure whether it worked as expected or not.
…On Wed, Mar 1, 2023, 17:42 Jonathan Dickinson ***@***.***> wrote:
Closed #19 <#19> as
completed via 7d62e9d
<7d62e9d>
.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA2XIS7BVQJRUFCYMNXJGLWZ6YD3ANCNFSM6AAAAAAUSI76MM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi.
I've recently known about this plugin and it seems to match my setup much better than the official one. However, it seems to me the "completion request failed" happens way too often, and when it does, my nvim will be bombarded with all the logs, and I have no way but to press Esc several times to come back to my work.
I'm wondering if there's anyway to prevent this from happening? If the request fails for some reason, the plugin can either retry or just ignore, but not display any error on the UI?
Thank you a lot for a good plugin!
The text was updated successfully, but these errors were encountered: