ikirill / irony-eldoc

irony-mode support for eldoc-mode
30 stars 9 forks source link

yasnippet placeholder issue #11

Open npetrenko opened 5 years ago

npetrenko commented 5 years ago

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);
}
ikirill commented 5 years ago

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 commented 5 years ago

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

npetrenko commented 5 years ago

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.