-
Notifications
You must be signed in to change notification settings - Fork 308
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
Conflict with auto_pairs #559
Comments
I don't think there is any conflict. Could it be that |
I do think there's a conflict as the patch you can observe in #427 isn't exactly in the source code anymore. See, this piece of code:
|
Basically, ignore the first screenshot I provided: I may have applied the patch incorrectly. |
I also set |
Looks like since 72eabd5 that code is part of |
So, will anything be done on that? |
Well, I just hinted on what might be the reason, but I'm not using neither auto_pairs nor clang_complete at the moment, so wasn't planning to configure everything and try to come up with the fix. Sorry, should have mentioned it initially. |
Dear @xaizek |
Well, unfortunately for the project you're pretty much out of luck waiting for anyone else with push access to respond. See |
I have mixed results with e9d3283 unfortunately. Sometimes it's reporting an infinite recursion, and sometimes it just outputs The infinite recursion seems to be coming from (I made sure to check, what value "a:what" has, when I traced this): And happens, if
NOTE: Now I am not in too deep into what this fix is supposed to do actually, but I had a similar issue in another plugin once. I fixed it then by having a global semaphore, that I set to |
@fleischie, thanks for testing it. I've added 2bdcbc9 which tries to address the recursion, |
@xaizek no problem, thanks for working on this plugin. 🙇 The recursion issue seems to be solved now. Typing in int
<SNR>46_AutoPairsReturn
<SNR>46_AutoPairsReturn The first Tracing this a bit further I found, that https://github.com/Rip-Rip/clang_complete/blob/2bdcbc944b132c832a0cd0209290cd1d8004d1e9/plugin/clang_complete.vim#L540-L546 constructs and executes the command I am still not sure, why it is inserted in the first place and not evaluated. If you can give me a brief run-down of what the fix should do and what the function/the functions I am looking at are supposed to do, I can propose changes as well, that made it work for me if I can formulate them. Otherwise we can still debug it like we do now, where you would fix it and I debug it. 😄 👍 |
Looking at auto-pairs https://github.com/jiangmiao/auto-pairs/blob/f0019fc6423e7ce7bbd01d196a7e027077687fda/plugin/auto-pairs.vim#L571-L572
It seems that clang_complete mangles its mapping somehow. As if it mixes some from auto-pairs and some from clang_complete. In a newly opened buffer |
|
Looks like clang_complete turns something like this:
into
And because it's We lack |
I changed my completion plugin (from Shougo/deoplete.nvim to lifepillar/vim-mucomplete) and found a similar issue with that plugin, in that remappings of This thus seems to be an issue on |
Well, the mapping is problematic, but I'm not sure if there is a better way of writing it. auto-pairs tries to work around issues with vim-endwise and supertab. If Tim Pope couldn't write vim-endwise in a way that works, Vim probably needs to be extended somehow to support such chaining of mappings. |
For what it's worth for anyone having the same issues with AutoPairs, my solution to the following happening when hitting
Was to add the following to my
For future reference, this was from AutoPairs
(make sure to reload your |
literally solved my problem, thanks! |
The said conflict had been fixed in #427 but recently reappeared. I tried to apply the same patch they used, but it still displays error after every completion. So please, try and reapply that patch again.
The text was updated successfully, but these errors were encountered: