irony-eldoc icon indicating copy to clipboard operation
irony-eldoc copied to clipboard

yasnippet placeholder issue

Open npetrenko opened this issue 6 years ago • 3 comments

Hi! I'm having an issue which I cannot trace back to its origin. The issue is described here. Through trial and error I've discovered that disabling irony-eldoc solves it completely.

It is not present in any other mode which I use, except C++. Also yasnippet snippets by themselves work OK, even when both company-irony and irony-eldoc are enabled. The problem appears solely during autocompletion when irony-eldoc is enabled

The issue reproduces quite reliably now, you can find my configuration here. It is completely auto-installable, so you can try out yourself

Example result (the method must have 2 arguments):

#include <vector>

int main () {
    std::vector<int> test_vec{1,2,3,4,5};
    test_vec.assign(10size_type __n, 10);
}

npetrenko avatar Jan 29 '19 14:01 npetrenko

Does it go away if you wrap irony-eldoc-documentation-function in save-match-data? I don't really use it any more, and I don't have any ideas either.

ikirill avatar Feb 22 '19 11:02 ikirill

I.e., replace the code of (defun irony-eldoc-documentation-function () "" ...) with (defun irony-eldoc-documentation-function () "" (save-match-data ...))

ikirill avatar Feb 22 '19 11:02 ikirill

I'm also not using irony-mode any more -- switched to ccls, because it seems to be a lot faster and less buggy. Thanks for an attempt to help, but I don't have time/incentive to solve this issue.

npetrenko avatar Mar 15 '19 10:03 npetrenko