-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not seeing completions in some cases #13
Comments
We definitely should expand this list, but you should still be able to get completions on languages that are not on this list. This list just helps us identify the specific language being used if Enry is unable to detect it correctly. Identifying the language lets us give more accurate completions. Can you paste more of the output of |
After
(| denotes the cursor) The logs:
|
Well, now I can't even get python-mode to work. There are some additional logs from python-mode:
|
OK interesting. So the GetCompletions requests are succeeding and the package is receiving completions, but you're not seeing them. Will look into it. |
Do you by any chance use company-mode? company caches completion requests, which is empty when you interrupt codeium.el (by pressing any key) |
No, I'm using corfu. There are some more observations: when I first press C-M-i to request completions: (sorry for screenshots) the requests all somehow get stuck, and it can take arbitrarily long time here; but when I do anything, the responses are suddenly received, along with some other errors:
|
Hmm codeium runs things like logging/ returning completions on a |
alternatively, perhaps something causes your |
try adding this to your config and see if it helps? (defun my-codeium-defer-until-no-input (state tracker func &optional args)
(when (eq tracker (codeium-state-alive-tracker state))
(with-local-quit
(apply func args))))
(advice-add 'codeium-defer-until-no-input :override #'my-codeium-defer-until-no-input) |
No luck with removing (input-pending-p). It returns correct values while I'm debugging. I found that the invocation of BTW, I'm using Emacs 29. Are you using 28 or older versions? |
I cannot reproduce this problem with emacsq. So it's more likely an issue in my config. Sorry for the disturbance. Feel free to close this issue. If I find anything valuable to add, I will comment here. |
Reread this; do the "Error getting sibling functions" also show up late? |
Closing due to inactivity. Feel free to reopen if you ever discover what the issue in your config was. |
Several users at my site ran into an issue that had very similar symptoms to this one, in particular with the completion response not appearing to be received until the user presses a key. We believe this may be caused by the following scenario:
In our case, we were able to mitigate this by simply setting Perhaps it would be reasonable to increase the default value of |
Thanks Aaron, we'll look into raising the value of |
I tried to use codeium.el on a python-ts-mode buffer, but no completions show up, and
*codeium-log*
contains:When I turned on python-mode, it works fine. I suppose codeium.el could be amended:
codeium.el/codeium.el
Lines 206 to 212 in 094b3cc
(The default value of this list seems surprisingly limited!)
The text was updated successfully, but these errors were encountered: