-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ALE's completion source for deoplete prevents you from pressing enter sometimes #2492
Comments
Use |
This is not really working. Even with the completion_enabled = 0, there seems to be some kind of hijacking happening on the completion menu. https://asciinema.org/a/qmNGrVXR260LOYSxMUNJEiBtH You can see that with ALE enabled when i type "set" and enter, it doesn't matter how many times i press enter, it never leaves the line and do the enter. Even with the option set. As soon as I disable ALE, it works. |
Which version of Vim are you using? That shouldn't happen. |
Neovim 0.3.5 |
Does it stop happening when you use |
Nope, still happens. :( |
Have you tried setting |
We spoke about this on IRC. A minimal config for repeating this bug is here: https://gist.github.com/edgard/8bb9c4d7596cc20a645f1f690c19007d The problem appears to be caused by I've pushed that change now. Let me know if it fixes the bug. |
If that fixes the bug, then I'll also throw in a check later to disable the source if there aren't any language server linters available for the current filetype that ALE can use to provide completion information. That will prevent some more issues in the future. |
Yep! Updated from repo and re-added noinsert to completeopt and now it seems to be working properly! Awesome! Thanks! |
Great! Thank you for letting me know about the bug. Later on, someone can tweak the completion source to not even try to provide completion data if the buffer doesn't have any ALE linters enabled which can provide completion data. |
So.... Hate to be the bearer of bad news, but... This update for whatever reason bricked ale's completion completely for me. Completion from ale is no longer listed at all. |
And I just confirmed that reverting the |
@dsifford Okay, do you want to fix it? Try to make it work without also causing the issue brought up here. |
Can't dig into it until maybe sometime next week. But just for the time being, can you or @edgard confirm that you're even able to get ale to completions through deoplete anymore? Because if we "fixed" the issue of having to hit enter twice to insert a newline by bricking the ale completions completely, I'd consider that more of a regression than a fix and it should be reverted immediately until the real issue can be found. |
I'd rather not include Deoplete integration than have it cause problems for people. I think the easiest way to fix this would be to add the check to see if the buffer has linters enabled, and then return |
@w0rp You are the master. 🥇 After trying it for a minute or two, it seems to be working as expected again for me. I'll report back if something turns up, but looks like it should be good now. 🙏 |
Great! 👍 I'll wait for a response from @edgard before closing this. |
Just to confirm that it still works! Thank you!! :) |
Okay, thank you for letting me know. 👍 |
I'm hitting this bug again right now, after having updated my plugins. As far as I can see the latest commit which is supposedly "fixing" this issue was included in the update. I also run Deoplete and Ale side-by-side. Forcefully disabling Ale (just commenting |
Would you like to try and fix it? |
@w0rp Absolutely, what should I do? |
Okay, I'm going to remove the Deoplete completion source until someone can fix it. |
For context, we had a chat on IRC and "solved" it by disabling deoplete as a completion source |
I remove Deoplete support completely for now, until this can be fixed. |
I'm currently using deoplete for my completion needs. While it mostly works together with ale, there are still some annoyances that happens when the two are loaded in.
For example, right now, if a complete is started, i can't double-enter to just enter the word without any completion. ALE hijacks the menu and keeps it open.
Is there a way to complete disable all completion integration/functions on ALE?
The text was updated successfully, but these errors were encountered: